| | |
| | | { |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | backendID = idAttr.activeValue(); |
| | | } |
| | | backendID = idAttr.activeValue(); |
| | | } |
| | | catch (org.opends.server.config.ConfigException ce) |
| | | { |
| | |
| | | * @return The configuration entry of the backend, or null if it could not |
| | | * be found. |
| | | */ |
| | | public static BackendCfg getConfigEntry(Backend backend) |
| | | public static BackendCfg getConfigEntry(Backend<?> backend) |
| | | { |
| | | RootCfg root = ServerManagementContext.getInstance(). |
| | | getRootConfiguration(); |
| | |
| | | * @param backendID Identifies the backend to be disabled. |
| | | * @throws DirectoryException If the internal modify operation failed. |
| | | */ |
| | | public static void disableBackend(String backendID) |
| | | throws DirectoryException |
| | | public static void disableBackend(String backendID) throws DirectoryException |
| | | { |
| | | DN configEntryDN; |
| | | RootCfg root = ServerManagementContext.getInstance().getRootConfiguration(); |
| | |
| | | public static boolean getBoolean(List<Attribute> attrList, |
| | | boolean defaultValue) |
| | | { |
| | | if (attrList == null || attrList.isEmpty()) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | |
| | | for (Attribute a : attrList) |
| | | { |
| | | for (ByteString v : a) |
| | |
| | | public static ArrayList<String> getMultiValueString(List<Attribute> attrList) |
| | | { |
| | | ArrayList<String> valueStrings = new ArrayList<>(); |
| | | |
| | | if (attrList != null && !attrList.isEmpty()) |
| | | if (!attrList.isEmpty()) |
| | | { |
| | | Attribute attr = attrList.get(0); |
| | | if (!attr.isEmpty()) |
| | |
| | | */ |
| | | public static String getSingleValueString(List<Attribute> attrList) |
| | | { |
| | | if (attrList != null && !attrList.isEmpty()) |
| | | if (!attrList.isEmpty()) |
| | | { |
| | | Attribute attr = attrList.get(0); |
| | | if (!attr.isEmpty()) |
| | |
| | | * @return The integer value of the attribute, or the provided default value |
| | | * if there is no value. |
| | | */ |
| | | public static int getSingleValueInteger(List<Attribute> attrList, |
| | | int defaultValue) |
| | | public static int getSingleValueInteger(List<Attribute> attrList, int defaultValue) |
| | | { |
| | | if (attrList != null && !attrList.isEmpty()) |
| | | if (!attrList.isEmpty()) |
| | | { |
| | | Attribute attr = attrList.get(0); |
| | | if (!attr.isEmpty()) |