Class AuthorizerFactory
java.lang.Object
de.xima.fc.security.authorization.AuthorizerFactory
Builder for different types of
IAuthorizer
s.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic IAuthorizer
allClientPermissions
(IAccessProperty... accessProps) static IAuthorizer
allClientRole
(String... roles) static IAuthorizer
allSystemPermissions
(IAccessProperty... accessProps) static IAuthorizer
allSystemRole
(String... roles) static IAuthorizer
and
(IAuthorizer... authorizers) static IAuthorizer
anyClientPermissions
(IAccessProperty... accessProps) static IAuthorizer
anyClientRole
(String... roles) static IAuthorizer
anySystemPermissions
(IAccessProperty... accessProps) static IAuthorizer
anySystemRole
(String... roles) static IAuthorizer
static IAuthorizer
static IAuthorizer
clientOrSystem
(IAuthorizer clientAuthorizer, IAuthorizer systemAuthorizer) Creates a new authorizer that delegates to either the given client or system authorizer, depending on whether aclient
is present.static IAuthorizer
defaultClientViewAuthorizer
(IAccessProperty... requiredAccessProperties) static IAuthorizer
defaultSystemViewAuthorizer
(IAccessProperty... requiredAccessProperties) static IAuthorizer
static IAuthorizer
hasUserProfile
(boolean allowInvitedUser) static IAuthorizer
not
(IAuthorizer authorizer) static IAuthorizer
or
(IAuthorizer... authorizers) static IAuthorizer
static IAuthorizer
static IAuthorizer
static 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 aclient
is 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
-