| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Iterator; |
| | | import java.util.LinkedHashSet; |
| | | import java.util.List; |
| | |
| | | |
| | | import static org.opends.server.config.ConfigConstants.*; |
| | | import static org.opends.messages.ConfigMessages.*; |
| | | import static org.opends.server.util.CollectionUtils.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public List<String> activeValuesToStrings() |
| | | { |
| | | return asList(String.valueOf(activeValue)); |
| | | return newArrayList(String.valueOf(activeValue)); |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | if (hasPendingValues()) |
| | | { |
| | | return asList(String.valueOf(pendingValue)); |
| | | return newArrayList(String.valueOf(pendingValue)); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | private List<String> asList(String s) |
| | | { |
| | | ArrayList<String> result = new ArrayList<>(1); |
| | | result.add(s); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * Retrieves a new configuration attribute of this type that will contain the |
| | | * values from the provided attribute. |