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:
org.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration,org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
public class CugConfiguration extends org.apache.jackrabbit.oak.spi.security.ConfigurationBase implements org.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHIDDEN_NESTED_CUGSThe name of the hidden property that stores information about nested CUG policy nodes.static java.lang.StringHIDDEN_TOP_CUG_CNTThe name of the hidden property that stores information about the number of CUG roots located close to the root node.static java.lang.StringMIX_REP_CUG_MIXINThe name of the mixin type that defines the CUG policy node.static java.lang.StringNT_REP_CUG_POLICYThe primary node type name of the CUG policy node.static java.lang.StringPARAM_CUG_ENABLEDName of the configuration option that specifies if CUG content must be respected for permission evaluation.static java.lang.StringPARAM_CUG_SUPPORTED_PATHSName of the configuration option that specifies the subtrees that allow to define closed user groups.static java.lang.StringREP_CUG_POLICYThe name of the CUG policy node.static java.lang.StringREP_PRINCIPAL_NAMESThe name of the property that stores the principal names that are allowed to access the restricted area defined by the CUG (closed user group).
-
Constructor Summary
Constructors Constructor Description CugConfiguration()CugConfiguration(@NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(java.util.Map<java.lang.String,java.lang.Object> properties)voidbindExclude(CugExclude exclude)voidbindMountInfoProvider(org.apache.jackrabbit.oak.spi.mount.MountInfoProvider mountInfoProvider)@NotNull AccessControlManagergetAccessControlManager(@NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)@NotNull java.util.List<? extends org.apache.jackrabbit.oak.spi.commit.CommitHook>getCommitHooks(@NotNull java.lang.String workspaceName)@NotNull org.apache.jackrabbit.oak.spi.security.ContextgetContext()@NotNull java.lang.StringgetName()@NotNull org.apache.jackrabbit.oak.spi.security.authorization.permission.PermissionProvidergetPermissionProvider(@NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull java.lang.String workspaceName, @NotNull java.util.Set<java.security.Principal> principals)@NotNull java.util.List<org.apache.jackrabbit.oak.spi.xml.ProtectedItemImporter>getProtectedItemImporters()@NotNull org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializergetRepositoryInitializer()@NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvidergetRestrictionProvider()@NotNull java.util.List<? extends org.apache.jackrabbit.oak.spi.commit.ValidatorProvider>getValidators(@NotNull java.lang.String workspaceName, @NotNull java.util.Set<java.security.Principal> principals, @NotNull org.apache.jackrabbit.oak.spi.commit.MoveTracker moveTracker)protected voidmodified(java.util.Map<java.lang.String,java.lang.Object> properties)voidsetParameters(@NotNull org.apache.jackrabbit.oak.spi.security.ConfigurationParameters config)voidunbindExclude(CugExclude exclude)voidunbindMountInfoProvider(org.apache.jackrabbit.oak.spi.mount.MountInfoProvider mountInfoProvider)-
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
getConflictHandlers, getWorkspaceInitializer
-
-
-
-
Field Detail
-
MIX_REP_CUG_MIXIN
public static final java.lang.String MIX_REP_CUG_MIXIN
The name of the mixin type that defines the CUG policy node.- See Also:
- Constant Field Values
-
NT_REP_CUG_POLICY
public static final java.lang.String NT_REP_CUG_POLICY
The primary node type name of the CUG policy node.- See Also:
- Constant Field Values
-
REP_CUG_POLICY
public static final java.lang.String REP_CUG_POLICY
The name of the CUG policy node.- See Also:
- Constant Field Values
-
HIDDEN_NESTED_CUGS
public static final java.lang.String HIDDEN_NESTED_CUGS
The name of the hidden property that stores information about nested CUG policy nodes.- See Also:
- Constant Field Values
-
HIDDEN_TOP_CUG_CNT
public static final java.lang.String 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:
- Constant Field Values
-
REP_PRINCIPAL_NAMES
public static final java.lang.String 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:
- Constant Field Values
-
PARAM_CUG_SUPPORTED_PATHS
public static final java.lang.String 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:
- Constant Field Values
-
PARAM_CUG_ENABLED
public static final java.lang.String 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:
- Constant Field Values
-
-
Method Detail
-
getAccessControlManager
@NotNull public @NotNull AccessControlManager getAccessControlManager(@NotNull @NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
- Specified by:
getAccessControlManagerin interfaceorg.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration
-
getRestrictionProvider
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionProvider getRestrictionProvider()
- Specified by:
getRestrictionProviderin interfaceorg.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration
-
getPermissionProvider
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.security.authorization.permission.PermissionProvider getPermissionProvider(@NotNull @NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull @NotNull java.lang.String workspaceName, @NotNull @NotNull java.util.Set<java.security.Principal> principals)- Specified by:
getPermissionProviderin interfaceorg.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration
-
getName
@NotNull public @NotNull java.lang.String getName()
- Specified by:
getNamein interfaceorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration- Overrides:
getNamein classorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
getRepositoryInitializer
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer getRepositoryInitializer()
- Specified by:
getRepositoryInitializerin interfaceorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration- Overrides:
getRepositoryInitializerin classorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
getCommitHooks
@NotNull public @NotNull java.util.List<? extends org.apache.jackrabbit.oak.spi.commit.CommitHook> getCommitHooks(@NotNull @NotNull java.lang.String workspaceName)- Specified by:
getCommitHooksin interfaceorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration- Overrides:
getCommitHooksin classorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
getValidators
@NotNull public @NotNull java.util.List<? extends org.apache.jackrabbit.oak.spi.commit.ValidatorProvider> getValidators(@NotNull @NotNull java.lang.String workspaceName, @NotNull @NotNull java.util.Set<java.security.Principal> principals, @NotNull @NotNull org.apache.jackrabbit.oak.spi.commit.MoveTracker moveTracker)- Specified by:
getValidatorsin interfaceorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration- Overrides:
getValidatorsin classorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
getProtectedItemImporters
@NotNull public @NotNull java.util.List<org.apache.jackrabbit.oak.spi.xml.ProtectedItemImporter> getProtectedItemImporters()
- Specified by:
getProtectedItemImportersin interfaceorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration- Overrides:
getProtectedItemImportersin classorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
getContext
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.security.Context getContext()
- Specified by:
getContextin interfaceorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration- Overrides:
getContextin classorg.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
setParameters
public void setParameters(@NotNull @NotNull org.apache.jackrabbit.oak.spi.security.ConfigurationParameters config)- Overrides:
setParametersin classorg.apache.jackrabbit.oak.spi.security.ConfigurationBase
-
activate
protected void activate(java.util.Map<java.lang.String,java.lang.Object> properties)
-
modified
protected void modified(java.util.Map<java.lang.String,java.lang.Object> properties)
-
bindMountInfoProvider
public void bindMountInfoProvider(org.apache.jackrabbit.oak.spi.mount.MountInfoProvider mountInfoProvider)
-
unbindMountInfoProvider
public void unbindMountInfoProvider(org.apache.jackrabbit.oak.spi.mount.MountInfoProvider mountInfoProvider)
-
bindExclude
public void bindExclude(CugExclude exclude)
-
unbindExclude
public void unbindExclude(CugExclude exclude)
-
-