Class AuthorizerFactory
- java.lang.Object
-
- de.xima.fc.security.authorization.AuthorizerFactory
-
public class AuthorizerFactory extends Object
Builder for different types ofIAuthorizer
s.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Method Summary
-
-
-
Method Detail
-
authenticated
public static IAuthorizer authenticated()
-
allClientPermissions
public static IAuthorizer allClientPermissions(IAccessProperty... accessProps)
-
anyClientPermissions
public static IAuthorizer anyClientPermissions(IAccessProperty... accessProps)
-
allSystemPermissions
public static IAuthorizer allSystemPermissions(IAccessProperty... accessProps)
-
anySystemPermissions
public static IAuthorizer anySystemPermissions(IAccessProperty... accessProps)
-
clientAccess
public static IAuthorizer clientAccess()
-
projectEditor
public static IAuthorizer projectEditor()
-
projectViewer
public static IAuthorizer projectViewer()
-
formRecordInboxAccess
public static IAuthorizer formRecordInboxAccess()
-
hasUserProfile
public static IAuthorizer hasUserProfile(boolean allowInvitedUser)
-
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
public static IAuthorizer defaultSystemViewAuthorizer(IAccessProperty... requiredAccessProperties)
-
anyClientRole
public static IAuthorizer anyClientRole(String... roles)
-
allClientRole
public static IAuthorizer allClientRole(String... roles)
-
anySystemRole
public static IAuthorizer anySystemRole(String... roles)
-
allSystemRole
public static IAuthorizer allSystemRole(String... roles)
-
systemAdminRole
public static IAuthorizer systemAdminRole()
-
superUserRole
public static IAuthorizer superUserRole()
-
defaultClientViewAuthorizer
public static IAuthorizer defaultClientViewAuthorizer(IAccessProperty... requiredAccessProperties)
-
and
public static IAuthorizer and(IAuthorizer... authorizers)
-
or
public static IAuthorizer or(IAuthorizer... authorizers)
-
not
public static IAuthorizer not(IAuthorizer authorizer)
-
-