public abstract class CompositeConfiguration<T extends SecurityConfiguration> extends Object implements SecurityConfiguration
SecurityConfiguration
s that can
combine different implementations.SecurityConfiguration.Default
Constructor and Description |
---|
CompositeConfiguration(String name,
SecurityProvider securityProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(T configuration) |
List<? extends CommitHook> |
getCommitHooks(String workspaceName)
Returns the list of commit hooks that need to be executed for the
specified workspace name.
|
Context |
getContext() |
String |
getName()
Returns the name of this security configuration.
|
ConfigurationParameters |
getParameters()
Returns the configuration parameters associated with this security
configuration instance.
|
List<ProtectedItemImporter> |
getProtectedItemImporters() |
RepositoryInitializer |
getRepositoryInitializer()
Returns a repository initializer for this security configuration.
|
List<? extends ValidatorProvider> |
getValidators(String workspaceName,
Set<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) |
public CompositeConfiguration(String name, SecurityProvider securityProvider)
public void setDefaultConfig(T defaultConfig)
public void addConfiguration(T configuration)
public void removeConfiguration(T configuration)
public 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 List<? extends CommitHook> getCommitHooks(String workspaceName)
SecurityConfiguration
getCommitHooks
in interface SecurityConfiguration
workspaceName
- The name of the workspace.public List<? extends ValidatorProvider> getValidators(String workspaceName, Set<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 List<ProtectedItemImporter> getProtectedItemImporters()
getProtectedItemImporters
in interface SecurityConfiguration
public Context getContext()
getContext
in interface SecurityConfiguration
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"