| | |
| | | import org.opends.server.core.SchemaConfigManager; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.types.*; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import static org.opends.messages.TaskMessages.*; |
| | | import static org.opends.server.config.ConfigConstants.*; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | /** The list of files to be added to the server schema. */ |
| | | TreeSet<String> filesToAdd; |
| | | private TreeSet<String> filesToAdd; |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | |
| | | filesToAdd = new TreeSet<String>(); |
| | | for (Attribute a : attrList) |
| | | { |
| | | for (AttributeValue v : a) |
| | | for (ByteString v : a) |
| | | { |
| | | String filename = v.getValue().toString(); |
| | | String filename = v.toString(); |
| | | filesToAdd.add(filename); |
| | | |
| | | try |
| | |
| | | Attribute a = m.getAttribute(); |
| | | AttributeBuilder builder = new AttributeBuilder(a |
| | | .getAttributeType(), a.getName()); |
| | | for (AttributeValue v : a) |
| | | for (ByteString v : a) |
| | | { |
| | | String s = v.getValue().toString(); |
| | | String s = v.toString(); |
| | | if (!s.contains(SCHEMA_PROPERTY_FILENAME)) |
| | | { |
| | | if (s.endsWith(" )")) |
| | |
| | | } |
| | | } |
| | | |
| | | builder.add(AttributeValues.create(a.getAttributeType(), s)); |
| | | builder.add(s); |
| | | } |
| | | |
| | | mods.add(new Modification(m.getModificationType(), builder |