Package org.forgerock.openam.core.rest
Class SelfServiceUserUiRolePredicate
- java.lang.Object
-
- org.forgerock.openam.core.rest.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 Summary
Constructors Constructor Description SelfServiceUserUiRolePredicate(Config<SessionService> sessionService, Debug logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply(org.forgerock.services.context.Context context)StringgetRole()
-
-
-
Constructor Detail
-
SelfServiceUserUiRolePredicate
@Inject public SelfServiceUserUiRolePredicate(Config<SessionService> sessionService, @Named("frRest") Debug logger)
-
-
Method Detail
-
getRole
public String getRole()
- Specified by:
getRolein interfaceUiRolePredicate- Returns:
- The UI role that this predicate is associated with.
-
apply
public boolean apply(org.forgerock.services.context.Context context)
- Specified by:
applyin interfacecom.google.common.base.Predicate<org.forgerock.services.context.Context>
-
-