@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(String name) |
CompositeConfiguration(String name,
SecurityProvider securityProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguration(T configuration) |
void |
addConfiguration(T configuration,
ConfigurationParameters params) |
List<? extends org.apache.jackrabbit.oak.spi.commit.CommitHook> |
getCommitHooks(String workspaceName)
Returns the list of commit hooks that need to be executed for the
specified workspace name.
|
List<T> |
getConfigurations() |
List<org.apache.jackrabbit.oak.spi.commit.ThreeWayConflictHandler> |
getConflictHandlers()
Returns the list of conflict handlers available for this security configuration.
|
Context |
getContext() |
T |
getDefaultConfig() |
String |
getName()
Returns the name of this security configuration.
|
ConfigurationParameters |
getParameters()
Returns the configuration parameters associated with this security
configuration instance.
|
List<ProtectedItemImporter> |
getProtectedItemImporters() |
org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer |
getRepositoryInitializer()
Returns a repository initializer for this security configuration.
|
protected RootProvider |
getRootProvider() |
protected SecurityProvider |
getSecurityProvider() |
protected TreeProvider |
getTreeProvider() |
List<? extends org.apache.jackrabbit.oak.spi.commit.ValidatorProvider> |
getValidators(String workspaceName,
Set<Principal> principals,
org.apache.jackrabbit.oak.spi.commit.MoveTracker moveTracker)
Returns the list of validators that need to be executed for the specified
workspace name.
|
org.apache.jackrabbit.oak.spi.lifecycle.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 String PARAM_RANKING
public CompositeConfiguration(@Nonnull String name, @Nonnull SecurityProvider securityProvider)
@CheckForNull public T getDefaultConfig()
public void addConfiguration(@Nonnull T configuration, @Nonnull ConfigurationParameters params)
public void setSecurityProvider(@Nonnull SecurityProvider securityProvider)
@Nonnull protected SecurityProvider getSecurityProvider()
public void setRootProvider(@Nonnull RootProvider rootProvider)
@Nonnull protected RootProvider getRootProvider()
public void setTreeProvider(@Nonnull TreeProvider treeProvider)
@Nonnull protected TreeProvider getTreeProvider()
@Nonnull public String getName()
SecurityConfigurationgetName in interface SecurityConfiguration@Nonnull public ConfigurationParameters getParameters()
SecurityConfigurationConfigurationParameters.EMPTY should be returned.getParameters in interface SecurityConfiguration@Nonnull public org.apache.jackrabbit.oak.spi.lifecycle.WorkspaceInitializer getWorkspaceInitializer()
SecurityConfigurationWorkspaceInitializer.DEFAULT should be returned.getWorkspaceInitializer in interface SecurityConfigurationWorkspaceInitializer.@Nonnull public org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer getRepositoryInitializer()
SecurityConfigurationRepositoryInitializer.DEFAULT should be returned.getRepositoryInitializer in interface SecurityConfigurationRepositoryInitializer.@Nonnull public List<? extends org.apache.jackrabbit.oak.spi.commit.CommitHook> getCommitHooks(@Nonnull String workspaceName)
SecurityConfigurationgetCommitHooks in interface SecurityConfigurationworkspaceName - The name of the workspace.@Nonnull public List<? extends org.apache.jackrabbit.oak.spi.commit.ValidatorProvider> getValidators(@Nonnull String workspaceName, @Nonnull Set<Principal> principals, @Nonnull org.apache.jackrabbit.oak.spi.commit.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.@Nonnull public List<org.apache.jackrabbit.oak.spi.commit.ThreeWayConflictHandler> getConflictHandlers()
SecurityConfigurationgetConflictHandlers in interface SecurityConfigurationThreeWayConflictHandler.@Nonnull public List<ProtectedItemImporter> getProtectedItemImporters()
getProtectedItemImporters in interface SecurityConfiguration@Nonnull public Context getContext()
getContext in interface SecurityConfigurationCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.