Class AuthorizerFactory
java.lang.Object
de.xima.fc.security.authorization.AuthorizerFactory
Builder for different types of
IAuthorizers.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic IAuthorizerallClientPermissions(IAccessProperty... accessProps) static IAuthorizerallClientRole(String... roles) static IAuthorizerallSystemPermissions(IAccessProperty... accessProps) static IAuthorizerallSystemRole(String... roles) static IAuthorizerand(IAuthorizer... authorizers) static IAuthorizeranyClientPermissions(IAccessProperty... accessProps) static IAuthorizeranyClientRole(String... roles) static IAuthorizeranySystemPermissions(IAccessProperty... accessProps) static IAuthorizeranySystemRole(String... roles) static IAuthorizerstatic IAuthorizerstatic IAuthorizerclientOrSystem(IAuthorizer clientAuthorizer, IAuthorizer systemAuthorizer) Creates a new authorizer that delegates to either the given client or system authorizer, depending on whether aclientis present.static IAuthorizerdefaultClientViewAuthorizer(IAccessProperty... requiredAccessProperties) static IAuthorizerdefaultSystemViewAuthorizer(IAccessProperty... requiredAccessProperties) static IAuthorizerstatic IAuthorizerhasUserProfile(boolean allowInvitedUser) static IAuthorizernot(IAuthorizer authorizer) static IAuthorizeror(IAuthorizer... authorizers) static IAuthorizerstatic IAuthorizerstatic IAuthorizerstatic IAuthorizer
-
Method Details
-
authenticated
-
allClientPermissions
-
anyClientPermissions
-
allSystemPermissions
-
anySystemPermissions
-
clientAccess
-
projectEditor
-
projectViewer
-
formRecordInboxAccess
-
hasUserProfile
-
clientOrSystem
public static IAuthorizer clientOrSystem(IAuthorizer clientAuthorizer, IAuthorizer systemAuthorizer) Creates a new authorizer that delegates to either the given client or system authorizer, depending on whether aclientis present.- Parameters:
clientAuthorizer- Authorizer to use for a client scope.systemAuthorizer- Authorizer to use for the system scope.- Returns:
- An authorizer that checks whether a client is present and delegates to one of the given authorizers.
-
defaultSystemViewAuthorizer
-
anyClientRole
-
allClientRole
-
anySystemRole
-
allSystemRole
-
systemAdminRole
-
superUserRole
-
defaultClientViewAuthorizer
-
and
-
or
-
not
-