@ProviderType 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(@NotNull java.lang.String name) |
CompositeConfiguration(@NotNull java.lang.String name,
@NotNull SecurityProvider securityProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(T configuration) |
void |
addConfiguration(T configuration,
@NotNull ConfigurationParameters params) |
@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 java.util.List<T> |
getConfigurations() |
@NotNull java.util.List<ThreeWayConflictHandler> |
getConflictHandlers()
Returns the list of conflict handlers available for this security configuration.
|
@NotNull Context |
getContext() |
T |
getDefaultConfig() |
@NotNull java.lang.String |
getName()
Returns the name of this security configuration.
|
@NotNull ConfigurationParameters |
getParameters()
Returns the configuration parameters associated with this security
configuration instance.
|
@NotNull java.util.List<ProtectedItemImporter> |
getProtectedItemImporters() |
@NotNull RepositoryInitializer |
getRepositoryInitializer()
Returns a repository initializer for this security configuration.
|
@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.
|
@NotNull WorkspaceInitializer |
getWorkspaceInitializer()
Returns a workspace initializer for this security configuration.
|
void |
removeConfiguration(T configuration) |
void |
setDefaultConfig(T defaultConfig) |
void |
setRootProvider(@NotNull RootProvider rootProvider) |
void |
setSecurityProvider(@NotNull SecurityProvider securityProvider) |
void |
setTreeProvider(@NotNull TreeProvider treeProvider) |
public static final java.lang.String PARAM_RANKING
public CompositeConfiguration(@NotNull @NotNull java.lang.String name)
public CompositeConfiguration(@NotNull @NotNull java.lang.String name, @NotNull @NotNull SecurityProvider securityProvider)
@Nullable public T getDefaultConfig()
public void setDefaultConfig(@NotNull T defaultConfig)
public void addConfiguration(@NotNull T configuration)
public void addConfiguration(@NotNull T configuration, @NotNull @NotNull ConfigurationParameters params)
public void removeConfiguration(@NotNull T configuration)
@NotNull public @NotNull java.util.List<T> getConfigurations()
public void setSecurityProvider(@NotNull @NotNull SecurityProvider securityProvider)
public void setRootProvider(@NotNull @NotNull RootProvider rootProvider)
public void setTreeProvider(@NotNull @NotNull TreeProvider treeProvider)
@NotNull public @NotNull java.lang.String getName()
SecurityConfiguration
getName
in interface SecurityConfiguration
@NotNull public @NotNull ConfigurationParameters getParameters()
SecurityConfiguration
ConfigurationParameters.EMPTY
should be returned.getParameters
in interface SecurityConfiguration
@NotNull public @NotNull WorkspaceInitializer getWorkspaceInitializer()
SecurityConfiguration
WorkspaceInitializer.DEFAULT
should be returned.getWorkspaceInitializer
in interface SecurityConfiguration
WorkspaceInitializer
.@NotNull public @NotNull RepositoryInitializer getRepositoryInitializer()
SecurityConfiguration
RepositoryInitializer.DEFAULT
should be returned.getRepositoryInitializer
in interface SecurityConfiguration
RepositoryInitializer
.@NotNull public @NotNull java.util.List<? extends CommitHook> getCommitHooks(@NotNull @NotNull java.lang.String workspaceName)
SecurityConfiguration
getCommitHooks
in interface SecurityConfiguration
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
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<ThreeWayConflictHandler> getConflictHandlers()
SecurityConfiguration
getConflictHandlers
in interface SecurityConfiguration
ThreeWayConflictHandler
.@NotNull public @NotNull java.util.List<ProtectedItemImporter> getProtectedItemImporters()
getProtectedItemImporters
in interface SecurityConfiguration
@NotNull public @NotNull Context getContext()
getContext
in interface SecurityConfiguration
Copyright © 2010 - 2020 Adobe. All Rights Reserved