public abstract class CompositeConfiguration<T extends SecurityConfiguration> extends java.lang.Object implements SecurityConfiguration
SecurityConfiguration
s that can
combine different implementations.SecurityConfiguration.Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_RANKING
Parameter used to define the ranking of a given configuration compared to
other registered configuration in this aggregate.
|
Constructor and Description |
---|
CompositeConfiguration(java.lang.String name) |
CompositeConfiguration(java.lang.String name,
SecurityProvider securityProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(T configuration) |
void |
addConfiguration(T configuration,
ConfigurationParameters params) |
java.util.List<? extends CommitHook> |
getCommitHooks(java.lang.String workspaceName)
Returns the list of commit hooks that need to be executed for the
specified workspace name.
|
java.util.List<T> |
getConfigurations() |
java.util.List<ThreeWayConflictHandler> |
getConflictHandlers()
Returns the list of conflict handlers available for this security configuration.
|
Context |
getContext() |
T |
getDefaultConfig() |
java.lang.String |
getName()
Returns the name of this security configuration.
|
ConfigurationParameters |
getParameters()
Returns the configuration parameters associated with this security
configuration instance.
|
java.util.List<ProtectedItemImporter> |
getProtectedItemImporters() |
RepositoryInitializer |
getRepositoryInitializer()
Returns a repository initializer for this security configuration.
|
java.util.List<? extends ValidatorProvider> |
getValidators(java.lang.String workspaceName,
java.util.Set<java.security.Principal> principals,
MoveTracker moveTracker)
Returns the list of validators that need to be executed for the specified
workspace name.
|
WorkspaceInitializer |
getWorkspaceInitializer()
Returns a workspace initializer for this security configuration.
|
void |
removeConfiguration(T configuration) |
void |
setDefaultConfig(T defaultConfig) |
void |
setRootProvider(RootProvider rootProvider) |
void |
setSecurityProvider(SecurityProvider securityProvider) |
void |
setTreeProvider(TreeProvider treeProvider) |
public static final java.lang.String PARAM_RANKING
public CompositeConfiguration(java.lang.String name)
public CompositeConfiguration(java.lang.String name, SecurityProvider securityProvider)
public T getDefaultConfig()
public void setDefaultConfig(T defaultConfig)
public void addConfiguration(T configuration)
public void addConfiguration(T configuration, ConfigurationParameters params)
public void removeConfiguration(T configuration)
public java.util.List<T> getConfigurations()
public void setSecurityProvider(SecurityProvider securityProvider)
public void setRootProvider(RootProvider rootProvider)
public void setTreeProvider(TreeProvider treeProvider)
public java.lang.String getName()
SecurityConfiguration
getName
in interface SecurityConfiguration
public ConfigurationParameters getParameters()
SecurityConfiguration
ConfigurationParameters.EMPTY
should be returned.getParameters
in interface SecurityConfiguration
public WorkspaceInitializer getWorkspaceInitializer()
SecurityConfiguration
WorkspaceInitializer.DEFAULT
should be returned.getWorkspaceInitializer
in interface SecurityConfiguration
WorkspaceInitializer
.public RepositoryInitializer getRepositoryInitializer()
SecurityConfiguration
RepositoryInitializer.DEFAULT
should be returned.getRepositoryInitializer
in interface SecurityConfiguration
RepositoryInitializer
.public java.util.List<? extends CommitHook> getCommitHooks(java.lang.String workspaceName)
SecurityConfiguration
getCommitHooks
in interface SecurityConfiguration
workspaceName
- The name of the workspace.public java.util.List<? extends ValidatorProvider> getValidators(java.lang.String workspaceName, java.util.Set<java.security.Principal> principals, MoveTracker moveTracker)
SecurityConfiguration
getValidators
in interface SecurityConfiguration
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.public java.util.List<ThreeWayConflictHandler> getConflictHandlers()
SecurityConfiguration
getConflictHandlers
in interface SecurityConfiguration
ThreeWayConflictHandler
.public java.util.List<ProtectedItemImporter> getProtectedItemImporters()
getProtectedItemImporters
in interface SecurityConfiguration
public Context getContext()
getContext
in interface SecurityConfiguration
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"