@ProviderType public abstract class CompositeConfiguration<T extends SecurityConfiguration> extends Object implements SecurityConfiguration
SecurityConfigurations that can
combine different implementations.SecurityConfiguration.Default| Modifier and Type | Field and Description |
|---|---|
static 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 String name) |
CompositeConfiguration(@NotNull String name,
@NotNull SecurityProvider securityProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguration(T configuration) |
void |
addConfiguration(T configuration,
@NotNull ConfigurationParameters params) |
@NotNull List<? extends CommitHook> |
getCommitHooks(@NotNull String workspaceName)
Returns the list of commit hooks that need to be executed for the
specified workspace name.
|
@NotNull List<T> |
getConfigurations() |
@NotNull List<ThreeWayConflictHandler> |
getConflictHandlers()
Returns the list of conflict handlers available for this security configuration.
|
@NotNull Context |
getContext() |
T |
getDefaultConfig() |
@NotNull String |
getName()
Returns the name of this security configuration.
|
@NotNull ConfigurationParameters |
getParameters()
Returns the configuration parameters associated with this security
configuration instance.
|
@NotNull List<ProtectedItemImporter> |
getProtectedItemImporters() |
@NotNull RepositoryInitializer |
getRepositoryInitializer()
Returns a repository initializer for this security configuration.
|
@NotNull List<? extends ValidatorProvider> |
getValidators(@NotNull String workspaceName,
@NotNull Set<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 String PARAM_RANKING
public CompositeConfiguration(@NotNull
@NotNull String name)
public CompositeConfiguration(@NotNull
@NotNull 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)
public void setSecurityProvider(@NotNull
@NotNull SecurityProvider securityProvider)
public void setRootProvider(@NotNull
@NotNull RootProvider rootProvider)
public void setTreeProvider(@NotNull
@NotNull TreeProvider treeProvider)
@NotNull public @NotNull String getName()
SecurityConfigurationgetName in interface SecurityConfiguration@NotNull public @NotNull ConfigurationParameters getParameters()
SecurityConfigurationConfigurationParameters.EMPTY should be returned.getParameters in interface SecurityConfiguration@NotNull public @NotNull WorkspaceInitializer getWorkspaceInitializer()
SecurityConfigurationWorkspaceInitializer.DEFAULT should be returned.getWorkspaceInitializer in interface SecurityConfigurationWorkspaceInitializer.@NotNull public @NotNull RepositoryInitializer getRepositoryInitializer()
SecurityConfigurationRepositoryInitializer.DEFAULT should be returned.getRepositoryInitializer in interface SecurityConfigurationRepositoryInitializer.@NotNull public @NotNull List<? extends CommitHook> getCommitHooks(@NotNull @NotNull String workspaceName)
SecurityConfigurationgetCommitHooks in interface SecurityConfigurationworkspaceName - The name of the workspace.@NotNull public @NotNull List<? extends ValidatorProvider> getValidators(@NotNull @NotNull String workspaceName, @NotNull @NotNull Set<Principal> principals, @NotNull @NotNull MoveTracker moveTracker)
SecurityConfigurationgetValidators in interface SecurityConfigurationworkspaceName - 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 List<ThreeWayConflictHandler> getConflictHandlers()
SecurityConfigurationgetConflictHandlers in interface SecurityConfigurationThreeWayConflictHandler.@NotNull public @NotNull List<ProtectedItemImporter> getProtectedItemImporters()
getProtectedItemImporters in interface SecurityConfiguration@NotNull public @NotNull Context getContext()
getContext in interface SecurityConfigurationCopyright © 2010 - 2020 Adobe. All Rights Reserved