public 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.
|
Constructor and Description |
---|
BackendCreationHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
createBackend(org.forgerock.opendj.server.config.client.RootCfgClient rootConfiguration,
String backendName,
Collection<org.forgerock.opendj.ldap.Dn> baseDNs,
org.forgerock.opendj.config.ManagedObjectDefinition<? extends org.forgerock.opendj.server.config.client.BackendCfgClient,? extends org.forgerock.opendj.server.config.server.BackendCfg> backendType)
Create a backend with the provided name using the provided
RootCfgClient . |
static void |
createBackend(org.forgerock.opendj.server.config.client.RootCfgClient rootConfiguration,
String backendName,
Collection<org.forgerock.opendj.ldap.Dn> baseDNs,
org.forgerock.opendj.config.ManagedObjectDefinition<? extends org.forgerock.opendj.server.config.client.BackendCfgClient,? extends org.forgerock.opendj.server.config.server.BackendCfg> backendType,
boolean withProtection)
Create a backend with the provided name using the provided
RootCfgClient . |
static void |
createBackendOffline(String backendName,
Collection<org.forgerock.opendj.ldap.Dn> baseDNs,
org.forgerock.opendj.config.ManagedObjectDefinition<? extends org.forgerock.opendj.server.config.client.BackendCfgClient,? extends org.forgerock.opendj.server.config.server.BackendCfg> backendType)
Add a new backend with the provided name in the config.ldif file.
|
static void |
createBackendOnline(String backendName,
Collection<org.forgerock.opendj.ldap.Dn> baseDNs,
org.forgerock.opendj.config.ManagedObjectDefinition<? extends org.forgerock.opendj.server.config.client.BackendCfgClient,? extends org.forgerock.opendj.server.config.server.BackendCfg> backendType,
ConnectionWrapper conn)
Add a new backend with the provided name in the config.ldif file.
|
static Set<org.forgerock.opendj.ldap.Dn> |
getBaseDn(org.forgerock.opendj.server.config.server.BackendCfg backendCfg)
Gets the base DNs from the provided backend configuration.
|
static SortedSet<org.forgerock.opendj.ldap.Dn> |
getBaseDn(org.forgerock.opendj.server.config.client.BackendCfgClient backendCfgClient)
Gets the base DNs from the provided backend configuration.
|
static void |
setBaseDn(org.forgerock.opendj.server.config.client.BackendCfgClient backendCfgClient,
Collection<org.forgerock.opendj.ldap.Dn> baseDNs)
Sets the base DNs on the provided backend configuration.
|
public static final BackendCreationHelper.CreateIndex[] DEFAULT_INDEXES
public BackendCreationHelper()
public static void createBackendOffline(String backendName, Collection<org.forgerock.opendj.ldap.Dn> baseDNs, org.forgerock.opendj.config.ManagedObjectDefinition<? extends org.forgerock.opendj.server.config.client.BackendCfgClient,? extends org.forgerock.opendj.server.config.server.BackendCfg> backendType) throws Exception
backendName
- The new backend name.baseDNs
- The base dns to add in the new backend.backendType
- The backend type.Exception
- If any problems occurred.public static void createBackendOnline(String backendName, Collection<org.forgerock.opendj.ldap.Dn> baseDNs, org.forgerock.opendj.config.ManagedObjectDefinition<? extends org.forgerock.opendj.server.config.client.BackendCfgClient,? extends org.forgerock.opendj.server.config.server.BackendCfg> backendType, ConnectionWrapper conn) throws Exception
backendName
- The new backend name.baseDNs
- The base dns to add in the new backend.backendType
- The backend type.conn
- The connection to the server.Exception
- If any problems occurred.public static void createBackend(org.forgerock.opendj.server.config.client.RootCfgClient rootConfiguration, String backendName, Collection<org.forgerock.opendj.ldap.Dn> baseDNs, org.forgerock.opendj.config.ManagedObjectDefinition<? extends org.forgerock.opendj.server.config.client.BackendCfgClient,? extends org.forgerock.opendj.server.config.server.BackendCfg> backendType) 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.backendType
- The backend type.Exception
- If any problems occurred.public static void createBackend(org.forgerock.opendj.server.config.client.RootCfgClient rootConfiguration, String backendName, Collection<org.forgerock.opendj.ldap.Dn> baseDNs, org.forgerock.opendj.config.ManagedObjectDefinition<? extends org.forgerock.opendj.server.config.client.BackendCfgClient,? extends org.forgerock.opendj.server.config.server.BackendCfg> backendType, 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.backendType
- The backend type.withProtection
- A flag to enable encryption and index confidentiality on creation.Exception
- If any problems occurredpublic static void setBaseDn(org.forgerock.opendj.server.config.client.BackendCfgClient backendCfgClient, Collection<org.forgerock.opendj.ldap.Dn> baseDNs)
backendCfgClient
- the backend configurationbaseDNs
- the base DNs to setpublic static SortedSet<org.forgerock.opendj.ldap.Dn> getBaseDn(org.forgerock.opendj.server.config.client.BackendCfgClient backendCfgClient)
backendCfgClient
- the backend configurationCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.