Interface BackendCfgClient
-
- All Superinterfaces:
ConfigurationClient
- All Known Subinterfaces:
BackupBackendCfgClient,JEBackendCfgClient,LDIFBackendCfgClient,LocalBackendCfgClient,MemoryBackendCfgClient,MonitorBackendCfgClient,NullBackendCfgClient,PDBBackendCfgClient,PluggableBackendCfgClient,SchemaBackendCfgClient,TaskBackendCfgClient,TrustStoreBackendCfgClient
public interface BackendCfgClient extends ConfigurationClient
A client-side interface for reading and modifying Backend settings.Backends are responsible for providing access to the underlying data presented by the server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends BackendCfgClient,? extends BackendCfg>definition()Get the configuration definition associated with this Backend.StringgetBackendId()Gets the "backend-id" property.SortedSet<org.forgerock.opendj.ldap.DN>getBaseDN()Gets the "base-dn" property.StringgetJavaClass()Gets the "java-class" property.BooleanisEnabled()Gets the "enabled" property.voidsetBackendId(String value)Sets the "backend-id" property.voidsetBaseDN(Collection<org.forgerock.opendj.ldap.DN> values)Sets the "base-dn" property.voidsetEnabled(boolean value)Sets the "enabled" property.voidsetJavaClass(String value)Sets the "java-class" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends BackendCfgClient,? extends BackendCfg> definition()
Get the configuration definition associated with this Backend.- Specified by:
definitionin interfaceConfigurationClient- Returns:
- Returns the configuration definition associated with this Backend.
-
getBackendId
String getBackendId()
Gets the "backend-id" property.Specifies a name to identify the associated backend.
The name must be unique among all backends in the server. The backend ID may not be altered after the backend is created in the server.
- Returns:
- Returns the value of the "backend-id" property.
-
setBackendId
void setBackendId(String value) throws PropertyException, PropertyException
Sets the "backend-id" property.Specifies a name to identify the associated backend.
The name must be unique among all backends in the server. The backend ID may not be altered after the backend is created in the server.
This property is read-only and can only be modified during creation of a Backend.
- Parameters:
value- The value of the "backend-id" property.- Throws:
PropertyException- If the new value is invalid.PropertyException- If this Backend is not being initialized.
-
getBaseDN
SortedSet<org.forgerock.opendj.ldap.DN> getBaseDN()
Gets the "base-dn" property.Specifies the base DN(s) for the data that the backend handles.
A single backend may be responsible for one or more base DNs. Note that no two backends may have the same base DN although one backend may have a base DN that is below a base DN provided by another backend (similar to the use of sub-suffixes in the Sun Java System Directory Server). If any of the base DNs is subordinate to a base DN for another backend, then all base DNs for that backend must be subordinate to that same base DN.
- Returns:
- Returns the values of the "base-dn" property.
-
setBaseDN
void setBaseDN(Collection<org.forgerock.opendj.ldap.DN> values) throws PropertyException
Sets the "base-dn" property.Specifies the base DN(s) for the data that the backend handles.
A single backend may be responsible for one or more base DNs. Note that no two backends may have the same base DN although one backend may have a base DN that is below a base DN provided by another backend (similar to the use of sub-suffixes in the Sun Java System Directory Server). If any of the base DNs is subordinate to a base DN for another backend, then all base DNs for that backend must be subordinate to that same base DN.
- Parameters:
values- The values of the "base-dn" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-
isEnabled
Boolean isEnabled()
Gets the "enabled" property.Indicates whether the backend is enabled in the server.
If a backend is not enabled, then its contents are not accessible when processing operations.
- Returns:
- Returns the value of the "enabled" property.
-
setEnabled
void setEnabled(boolean value) throws PropertyExceptionSets the "enabled" property.Indicates whether the backend is enabled in the server.
If a backend is not enabled, then its contents are not accessible when processing operations.
- Parameters:
value- The value of the "enabled" property.- Throws:
PropertyException- If the new value is invalid.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the backend implementation.
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
void setJavaClass(String value) throws PropertyException
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the backend implementation.
- Parameters:
value- The value of the "java-class" property.- Throws:
PropertyException- If the new value is invalid.
-
-