Package org.opends.server.tools
Class BackendToolUtils
java.lang.Object
org.opends.server.tools.BackendToolUtils
This class provides utility functions for all backend client tools.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains backend infos:LocalBackend, baseDNs andBackendCfg. -
Method Summary
Modifier and TypeMethodDescriptiongetBaseDn(BackendCfgClient backendCfgClient) Gets the base DNs from the provided backend configuration.getBaseDn(BackendCfg backendCfg) Gets the base DNs from the provided backend configuration.static Collection<LocalBackend<?>>getEnabledLocalBackends(ServerContext serverContext) Returns a collection of the enabled local backends found in the Directory Server configuration.static List<BackendToolUtils.BackendInfo>getLocalBackends(ServerContext serverContext) Returns information about the local backends defined in the Directory Server configuration.
-
Method Details
-
getEnabledLocalBackends
Returns a collection of the enabled local backends found in the Directory Server configuration.- Parameters:
serverContext- the server context.- Returns:
- the enabled local backends.
-
getLocalBackends
Returns information about the local backends defined in the Directory Server configuration.- Parameters:
serverContext- the server context- Returns:
- the local backends
-
getBaseDn
Gets the base DNs from the provided backend configuration.- Parameters:
backendCfgClient- the backend configuration- Returns:
- the configured based DNs
- Throws:
ExpressionException- if the backend configuration contains some unvalued expression
-
getBaseDn
Gets the base DNs from the provided backend configuration.- Parameters:
backendCfg- the backend configuration- Returns:
- the configured based DNs
-