Class SelfServiceUserUiRolePredicate

  • All Implemented Interfaces:
    com.google.common.base.Predicate<org.forgerock.services.context.Context>, Predicate<org.forgerock.services.context.Context>, UiRolePredicate

    public class SelfServiceUserUiRolePredicate
    extends Object
    implements UiRolePredicate
    Determines if the user can access the self-service pages within the UI.
    • Constructor Detail

      • SelfServiceUserUiRolePredicate

        @Inject
        public SelfServiceUserUiRolePredicate​(Config<SessionService> sessionService,
                                              @Named("frRest")
                                              Debug logger)
    • Method Detail

      • getRole

        public String getRole()
        Specified by:
        getRole in interface UiRolePredicate
        Returns:
        The UI role that this predicate is associated with.
      • apply

        public boolean apply​(org.forgerock.services.context.Context context)
        Specified by:
        apply in interface com.google.common.base.Predicate<org.forgerock.services.context.Context>