Class ThreeRolesAuthorizationConfiguration
java.lang.Object
org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
org.apache.jackrabbit.oak.spi.security.ConfigurationBase
org.apache.jackrabbit.oak.exercise.security.authorization.models.simplifiedroles.ThreeRolesAuthorizationConfiguration
- All Implemented Interfaces:
ThreeRolesConstants
,AuthorizationConfiguration
,SecurityConfiguration
public class ThreeRolesAuthorizationConfiguration
extends ConfigurationBase
implements AuthorizationConfiguration, ThreeRolesConstants
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
SecurityConfiguration.Default
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration
NAME
Fields inherited from interface org.apache.jackrabbit.oak.exercise.security.authorization.models.simplifiedroles.ThreeRolesConstants
MIX_REP_THREE_ROLES_POLICY, NAMES, NT_REP_THREE_ROLES_POLICY, REP_3_ROLES_POLICY, REP_EDITORS, REP_OWNERS, REP_READERS, SUPPORTED_PERMISSIONS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull AccessControlManager
getAccessControlManager
(@NotNull Root root, @NotNull NamePathMapper namePathMapper) @NotNull Context
@NotNull String
getName()
Returns the name of this security configuration.@NotNull PermissionProvider
getPermissionProvider
(@NotNull Root root, @NotNull String workspaceName, @NotNull Set<Principal> principals) @NotNull List<ProtectedItemImporter>
@NotNull RepositoryInitializer
Returns a repository initializer for this security configuration.@NotNull RestrictionProvider
@NotNull List<? extends ValidatorProvider>
getValidators
(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker) Returns the list of validators that need to be executed for the specified workspace name.void
setParameters
(@NotNull ConfigurationParameters config) Methods inherited from class org.apache.jackrabbit.oak.spi.security.ConfigurationBase
getParameters, getRootProvider, getSecurityProvider, getTreeProvider, setRootProvider, setSecurityProvider, setTreeProvider
Methods inherited from class org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
getCommitHooks, getConflictHandlers, getWorkspaceInitializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
getCommitHooks, getConflictHandlers, getMonitors, getParameters, getWorkspaceInitializer
-
Constructor Details
-
ThreeRolesAuthorizationConfiguration
public ThreeRolesAuthorizationConfiguration()
-
-
Method Details
-
getAccessControlManager
@NotNull public @NotNull AccessControlManager getAccessControlManager(@NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) - Specified by:
getAccessControlManager
in interfaceAuthorizationConfiguration
-
getRestrictionProvider
- Specified by:
getRestrictionProvider
in interfaceAuthorizationConfiguration
-
getPermissionProvider
@NotNull public @NotNull PermissionProvider getPermissionProvider(@NotNull @NotNull Root root, @NotNull @NotNull String workspaceName, @NotNull @NotNull Set<Principal> principals) - Specified by:
getPermissionProvider
in interfaceAuthorizationConfiguration
-
getName
Description copied from interface:SecurityConfiguration
Returns the name of this security configuration.- Specified by:
getName
in interfaceSecurityConfiguration
- Overrides:
getName
in classSecurityConfiguration.Default
- Returns:
- The name of this configuration.
-
getRepositoryInitializer
Description copied from interface:SecurityConfiguration
Returns a repository initializer for this security configuration. If this configuration doesn't require any specific repository initializationRepositoryInitializer.DEFAULT
should be returned.- Specified by:
getRepositoryInitializer
in interfaceSecurityConfiguration
- Overrides:
getRepositoryInitializer
in classSecurityConfiguration.Default
- Returns:
- An instance of
RepositoryInitializer
.
-
getValidators
@NotNull public @NotNull List<? extends ValidatorProvider> getValidators(@NotNull @NotNull String workspaceName, @NotNull @NotNull Set<Principal> principals, @NotNull @NotNull MoveTracker moveTracker) Description copied from interface:SecurityConfiguration
Returns the list of validators that need to be executed for the specified workspace name.- Specified by:
getValidators
in interfaceSecurityConfiguration
- Overrides:
getValidators
in classSecurityConfiguration.Default
- Parameters:
workspaceName
- The name of the workspace.principals
- The set of principals associated with the subject that is committing modifications.moveTracker
- The move tracker associated with the commit.- Returns:
- A list of validators.
-
getProtectedItemImporters
- Specified by:
getProtectedItemImporters
in interfaceSecurityConfiguration
- Overrides:
getProtectedItemImporters
in classSecurityConfiguration.Default
- Returns:
- The list of protected item importers defined by this configuration.
-
getContext
- Specified by:
getContext
in interfaceSecurityConfiguration
- Overrides:
getContext
in classSecurityConfiguration.Default
- Returns:
- The context defined by this configuration.
-
setParameters
- Overrides:
setParameters
in classConfigurationBase
-