public final class BackendCreationHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BackendCreationHelper.CreateIndex
Describes an attribute index which should be created during installation.
|
Modifier and Type | Field and Description |
---|---|
static BackendCreationHelper.CreateIndex[] |
DEFAULT_INDEXES
Default indexes to add in a new backend.
|
Modifier and Type | Method and Description |
---|---|
static void |
createBackend(RootCfgClient rootConfiguration,
String backendName,
Collection<Dn> baseDNs,
boolean withProtection)
Create a backend with the provided name using the provided
RootCfgClient . |
static Set<Dn> |
getBaseDn(BackendCfg backendCfg)
Gets the base DNs from the provided backend configuration.
|
static SortedSet<Dn> |
getBaseDn(BackendCfgClient backendCfgClient)
Gets the base DNs from the provided backend configuration.
|
static void |
setBaseDn(BackendCfgClient backendCfgClient,
Collection<Dn> baseDNs)
Sets the base DNs on the provided backend configuration.
|
public static final BackendCreationHelper.CreateIndex[] DEFAULT_INDEXES
public static void createBackend(RootCfgClient rootConfiguration, String backendName, Collection<Dn> baseDNs, boolean withProtection) throws Exception
RootCfgClient
.rootConfiguration
- The root configuration to use to create the new backend.backendName
- The new backend name.baseDNs
- The base dns to add in the new backend.withProtection
- A flag to enable encryption and index confidentiality on creation.Exception
- If any problems occurredpublic static void setBaseDn(BackendCfgClient backendCfgClient, Collection<Dn> baseDNs)
backendCfgClient
- the backend configurationbaseDNs
- the base DNs to setpublic static SortedSet<Dn> getBaseDn(BackendCfgClient backendCfgClient) throws ExpressionException
backendCfgClient
- the backend configurationExpressionException
- if the backend configuration contains some unvalued expressionpublic static Set<Dn> getBaseDn(BackendCfg backendCfg)
backendCfg
- the backend configurationCopyright 2010-2018 ForgeRock AS.