Class CugConfiguration
java.lang.Object
org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
org.apache.jackrabbit.oak.spi.security.ConfigurationBase
org.apache.jackrabbit.oak.spi.security.authorization.cug.impl.CugConfiguration
- All Implemented Interfaces:
AuthorizationConfiguration,SecurityConfiguration
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
SecurityConfiguration.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the hidden property that stores information about nested CUG policy nodes.static final StringThe name of the hidden property that stores information about the number of CUG roots located close to the root node.static final StringThe name of the mixin type that defines the CUG policy node.static final StringThe primary node type name of the CUG policy node.static final StringName of the configuration option that specifies if CUG content must be respected for permission evaluation.static final StringName of the configuration option that specifies the subtrees that allow to define closed user groups.static final StringThe name of the CUG policy node.static final StringThe name of the property that stores the principal names that are allowed to access the restricted area defined by the CUG (closed user group).Fields inherited from interface org.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidbindExclude(CugExclude exclude) voidbindMountInfoProvider(MountInfoProvider mountInfoProvider) @NotNull AccessControlManagergetAccessControlManager(@NotNull Root root, @NotNull NamePathMapper namePathMapper) @NotNull List<? extends CommitHook>getCommitHooks(@NotNull String workspaceName) Returns the list of commit hooks that need to be executed for the specified workspace name.@NotNull Context@NotNull StringgetName()Returns the name of this security configuration.@NotNull PermissionProvidergetPermissionProvider(@NotNull Root root, @NotNull String workspaceName, @NotNull Set<Principal> principals) @NotNull List<ProtectedItemImporter>@NotNull RepositoryInitializerReturns 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.protected voidvoidsetParameters(@NotNull ConfigurationParameters config) voidunbindExclude(CugExclude exclude) voidunbindMountInfoProvider(MountInfoProvider mountInfoProvider) Methods inherited from class org.apache.jackrabbit.oak.spi.security.ConfigurationBase
getParameters, getRootProvider, getSecurityProvider, getTreeProvider, setRootProvider, setSecurityProvider, setTreeProviderMethods inherited from class org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
getConflictHandlers, getWorkspaceInitializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
getConflictHandlers, getMonitors, getParameters, getWorkspaceInitializer
-
Field Details
-
MIX_REP_CUG_MIXIN
The name of the mixin type that defines the CUG policy node.- See Also:
-
NT_REP_CUG_POLICY
The primary node type name of the CUG policy node.- See Also:
-
REP_CUG_POLICY
The name of the CUG policy node.- See Also:
-
HIDDEN_NESTED_CUGS
The name of the hidden property that stores information about nested CUG policy nodes.- See Also:
-
HIDDEN_TOP_CUG_CNT
The name of the hidden property that stores information about the number of CUG roots located close to the root node.- See Also:
-
REP_PRINCIPAL_NAMES
The name of the property that stores the principal names that are allowed to access the restricted area defined by the CUG (closed user group).- See Also:
-
PARAM_CUG_SUPPORTED_PATHS
Name of the configuration option that specifies the subtrees that allow to define closed user groups.- Value Type: String
- Default: -
- Multiple: true
- See Also:
-
PARAM_CUG_ENABLED
Name of the configuration option that specifies if CUG content must be respected for permission evaluation.- Value Type: boolean
- Default: false
- Multiple: false
- See Also:
-
-
Constructor Details
-
CugConfiguration
public CugConfiguration() -
CugConfiguration
-
-
Method Details
-
getAccessControlManager
@NotNull public @NotNull AccessControlManager getAccessControlManager(@NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) - Specified by:
getAccessControlManagerin interfaceAuthorizationConfiguration
-
getRestrictionProvider
- Specified by:
getRestrictionProviderin interfaceAuthorizationConfiguration
-
getPermissionProvider
@NotNull public @NotNull PermissionProvider getPermissionProvider(@NotNull @NotNull Root root, @NotNull @NotNull String workspaceName, @NotNull @NotNull Set<Principal> principals) - Specified by:
getPermissionProviderin interfaceAuthorizationConfiguration
-
getName
Description copied from interface:SecurityConfigurationReturns the name of this security configuration.- Specified by:
getNamein interfaceSecurityConfiguration- Overrides:
getNamein classSecurityConfiguration.Default- Returns:
- The name of this configuration.
-
getRepositoryInitializer
Description copied from interface:SecurityConfigurationReturns a repository initializer for this security configuration. If this configuration doesn't require any specific repository initializationRepositoryInitializer.DEFAULTshould be returned.- Specified by:
getRepositoryInitializerin interfaceSecurityConfiguration- Overrides:
getRepositoryInitializerin classSecurityConfiguration.Default- Returns:
- An instance of
RepositoryInitializer.
-
getCommitHooks
@NotNull public @NotNull List<? extends CommitHook> getCommitHooks(@NotNull @NotNull String workspaceName) Description copied from interface:SecurityConfigurationReturns the list of commit hooks that need to be executed for the specified workspace name.- Specified by:
getCommitHooksin interfaceSecurityConfiguration- Overrides:
getCommitHooksin classSecurityConfiguration.Default- Parameters:
workspaceName- The name of the workspace.- Returns:
- A list of commit hooks.
-
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:SecurityConfigurationReturns the list of validators that need to be executed for the specified workspace name.- Specified by:
getValidatorsin interfaceSecurityConfiguration- Overrides:
getValidatorsin 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:
getProtectedItemImportersin interfaceSecurityConfiguration- Overrides:
getProtectedItemImportersin classSecurityConfiguration.Default- Returns:
- The list of protected item importers defined by this configuration.
-
getContext
- Specified by:
getContextin interfaceSecurityConfiguration- Overrides:
getContextin classSecurityConfiguration.Default- Returns:
- The context defined by this configuration.
-
setParameters
- Overrides:
setParametersin classConfigurationBase
-
activate
-
modified
-
bindMountInfoProvider
-
unbindMountInfoProvider
-
bindExclude
-
unbindExclude
-