public class CugConfiguration extends ConfigurationBase implements AuthorizationConfiguration
SecurityConfiguration.Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HIDDEN_NESTED_CUGS
The name of the hidden property that stores information about nested
CUG policy nodes.
|
static 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.
|
static java.lang.String |
MIX_REP_CUG_MIXIN
The name of the mixin type that defines the CUG policy node.
|
static java.lang.String |
NT_REP_CUG_POLICY
The primary node type name of the CUG policy node.
|
static java.lang.String |
PARAM_CUG_ENABLED
Name of the configuration option that specifies if CUG content must
be respected for permission evaluation.
|
static java.lang.String |
PARAM_CUG_SUPPORTED_PATHS
Name of the configuration option that specifies the subtrees that allow
to define closed user groups.
|
static java.lang.String |
REP_CUG_POLICY
The name of the CUG policy node.
|
static 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).
|
NAME
Constructor and Description |
---|
CugConfiguration() |
CugConfiguration(@NotNull SecurityProvider securityProvider) |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
bindExclude(CugExclude exclude) |
void |
bindMountInfoProvider(MountInfoProvider mountInfoProvider) |
@NotNull AccessControlManager |
getAccessControlManager(@NotNull Root root,
@NotNull NamePathMapper namePathMapper) |
@NotNull java.util.List<? extends CommitHook> |
getCommitHooks(@NotNull java.lang.String workspaceName)
Returns the list of commit hooks that need to be executed for the
specified workspace name.
|
@NotNull Context |
getContext() |
@NotNull java.lang.String |
getName()
Returns the name of this security configuration.
|
@NotNull PermissionProvider |
getPermissionProvider(@NotNull Root root,
@NotNull java.lang.String workspaceName,
@NotNull java.util.Set<java.security.Principal> principals) |
@NotNull java.util.List<ProtectedItemImporter> |
getProtectedItemImporters() |
@NotNull RepositoryInitializer |
getRepositoryInitializer()
Returns a repository initializer for this security configuration.
|
@NotNull RestrictionProvider |
getRestrictionProvider() |
@NotNull java.util.List<? extends ValidatorProvider> |
getValidators(@NotNull java.lang.String workspaceName,
@NotNull java.util.Set<java.security.Principal> principals,
@NotNull MoveTracker moveTracker)
Returns the list of validators that need to be executed for the specified
workspace name.
|
protected void |
modified(java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
setParameters(@NotNull ConfigurationParameters config) |
void |
unbindExclude(CugExclude exclude) |
void |
unbindMountInfoProvider(MountInfoProvider mountInfoProvider) |
getParameters, getRootProvider, getSecurityProvider, getTreeProvider, setRootProvider, setSecurityProvider, setTreeProvider
getConflictHandlers, getWorkspaceInitializer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConflictHandlers, getMonitors, getParameters, getWorkspaceInitializer
public static final java.lang.String MIX_REP_CUG_MIXIN
public static final java.lang.String NT_REP_CUG_POLICY
public static final java.lang.String REP_CUG_POLICY
public static final java.lang.String HIDDEN_NESTED_CUGS
public static final java.lang.String HIDDEN_TOP_CUG_CNT
public static final java.lang.String REP_PRINCIPAL_NAMES
public static final java.lang.String PARAM_CUG_SUPPORTED_PATHS
public static final java.lang.String PARAM_CUG_ENABLED
public CugConfiguration()
public CugConfiguration(@NotNull @NotNull SecurityProvider securityProvider)
@NotNull public @NotNull AccessControlManager getAccessControlManager(@NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper)
getAccessControlManager
in interface AuthorizationConfiguration
@NotNull public @NotNull RestrictionProvider getRestrictionProvider()
getRestrictionProvider
in interface AuthorizationConfiguration
@NotNull public @NotNull PermissionProvider getPermissionProvider(@NotNull @NotNull Root root, @NotNull @NotNull java.lang.String workspaceName, @NotNull @NotNull java.util.Set<java.security.Principal> principals)
getPermissionProvider
in interface AuthorizationConfiguration
@NotNull public @NotNull java.lang.String getName()
SecurityConfiguration
getName
in interface SecurityConfiguration
getName
in class SecurityConfiguration.Default
@NotNull public @NotNull RepositoryInitializer getRepositoryInitializer()
SecurityConfiguration
RepositoryInitializer.DEFAULT
should be returned.getRepositoryInitializer
in interface SecurityConfiguration
getRepositoryInitializer
in class SecurityConfiguration.Default
RepositoryInitializer
.@NotNull public @NotNull java.util.List<? extends CommitHook> getCommitHooks(@NotNull @NotNull java.lang.String workspaceName)
SecurityConfiguration
getCommitHooks
in interface SecurityConfiguration
getCommitHooks
in class SecurityConfiguration.Default
workspaceName
- The name of the workspace.@NotNull public @NotNull java.util.List<? extends ValidatorProvider> getValidators(@NotNull @NotNull java.lang.String workspaceName, @NotNull @NotNull java.util.Set<java.security.Principal> principals, @NotNull @NotNull MoveTracker moveTracker)
SecurityConfiguration
getValidators
in interface SecurityConfiguration
getValidators
in class SecurityConfiguration.Default
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.@NotNull public @NotNull java.util.List<ProtectedItemImporter> getProtectedItemImporters()
getProtectedItemImporters
in interface SecurityConfiguration
getProtectedItemImporters
in class SecurityConfiguration.Default
@NotNull public @NotNull Context getContext()
getContext
in interface SecurityConfiguration
getContext
in class SecurityConfiguration.Default
public void setParameters(@NotNull @NotNull ConfigurationParameters config)
setParameters
in class ConfigurationBase
protected void activate(java.util.Map<java.lang.String,java.lang.Object> properties)
protected void modified(java.util.Map<java.lang.String,java.lang.Object> properties)
public void bindMountInfoProvider(MountInfoProvider mountInfoProvider)
public void unbindMountInfoProvider(MountInfoProvider mountInfoProvider)
public void bindExclude(CugExclude exclude)
public void unbindExclude(CugExclude exclude)
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.