Constructor and Description |
---|
TaskUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
disableBackend(String backendID)
Disables a backend using an internal modify operation on the
backend configuration entry.
|
static void |
enableBackend(String backendID)
Enables a backend using an internal modify operation on the
backend configuration entry.
|
static Map<String,ConfigEntry> |
getBackendConfigEntries()
Get all the backend configuration entries defined in the server mapped
by their backend ID.
|
static String |
getBackendID(ConfigEntry configEntry)
Get the backend ID of a backend configuration entry.
|
static boolean |
getBoolean(List<Attribute> attrList,
boolean defaultValue)
Get the single boolean value of an entry attribute that is defined in the
schema as a single valued boolean attribute, and that is not expected to
have attribute options.
|
static BackendCfg |
getConfigEntry(Backend backend)
Get the configuration entry for a given backend.
|
static ArrayList<String> |
getMultiValueString(List<Attribute> attrList)
Get the multiple string values of an entry attribute that is defined in the
schema as a multi-valued string attribute, and that is not expected to
have attribute options.
|
static int |
getSingleValueInteger(List<Attribute> attrList,
int defaultValue)
Get the single integer value of an entry attribute that is defined in the
schema as a single valued integer attribute, and that is not expected to
have attribute options.
|
static String |
getSingleValueString(List<Attribute> attrList)
Get the single string value of an entry attribute that is defined in the
schema as a single valued string attribute, and that is not expected to
have attribute options.
|
public TaskUtils()
public static String getBackendID(ConfigEntry configEntry)
configEntry
- A backend configuration entry.public static Map<String,ConfigEntry> getBackendConfigEntries()
public static BackendCfg getConfigEntry(Backend backend)
backend
- The backend whose configuration entry is wanted.public static void enableBackend(String backendID) throws DirectoryException
backendID
- Identifies the backend to be enabled.DirectoryException
- If the internal modify operation failed.public static void disableBackend(String backendID) throws DirectoryException
backendID
- Identifies the backend to be disabled.DirectoryException
- If the internal modify operation failed.public static boolean getBoolean(List<Attribute> attrList, boolean defaultValue)
attrList
- The attribute value of the entry attribute.defaultValue
- The default value to be returned if there is no
recognizable boolean attribute value.public static ArrayList<String> getMultiValueString(List<Attribute> attrList)
attrList
- The attribute values of the entry attribute.public static String getSingleValueString(List<Attribute> attrList)
attrList
- The attribute value of the entry attribute.public static int getSingleValueInteger(List<Attribute> attrList, int defaultValue)
attrList
- The attribute value of the entry attribute.defaultValue
- The default value to be returned if there is no
recognizable integer attribute value.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.