| | |
| | | } |
| | | |
| | | |
| | | ArrayList<String> commandAndArgs = new ArrayList<String>(); |
| | | ArrayList<String> commandAndArgs = new ArrayList<>(); |
| | | commandAndArgs.add(command); |
| | | if ((args != null) && (args.length > 0)) |
| | | { |
| | |
| | | return null; |
| | | } |
| | | |
| | | ArrayList<String> stringList = new ArrayList<String>(stringArray.length); |
| | | ArrayList<String> stringList = new ArrayList<>(stringArray.length); |
| | | for (String s : stringArray) |
| | | { |
| | | stringList.add(s); |
| | |
| | | ObjectClass structuralClass = DirectoryServer.getObjectClass(getObjectClassName(rdn, numAVAs)); |
| | | |
| | | // Get the top and untypedObject classes to include in the entry. |
| | | LinkedHashMap<ObjectClass,String> objectClasses = |
| | | new LinkedHashMap<ObjectClass,String>(3); |
| | | LinkedHashMap<ObjectClass,String> objectClasses = new LinkedHashMap<>(3); |
| | | |
| | | objectClasses.put(DirectoryServer.getTopObjectClass(), OC_TOP); |
| | | objectClasses.put(structuralClass, structuralClass.getNameOrOID()); |
| | |
| | | |
| | | // Iterate through the RDN attributes and add them to the set of user or |
| | | // operational attributes. |
| | | LinkedHashMap<AttributeType,List<Attribute>> userAttributes = |
| | | new LinkedHashMap<AttributeType,List<Attribute>>(); |
| | | LinkedHashMap<AttributeType,List<Attribute>> operationalAttributes = |
| | | new LinkedHashMap<AttributeType,List<Attribute>>(); |
| | | LinkedHashMap<AttributeType,List<Attribute>> userAttributes = new LinkedHashMap<>(); |
| | | LinkedHashMap<AttributeType,List<Attribute>> operationalAttributes = new LinkedHashMap<>(); |
| | | |
| | | boolean extensibleObjectAdded = false; |
| | | for (int i=0; i < numAVAs; i++) |
| | |
| | | { |
| | | AttributeBuilder builder = new AttributeBuilder(attrType, attrName); |
| | | builder.add(attrValue); |
| | | attrList = new ArrayList<Attribute>(1); |
| | | attrList = new ArrayList<>(1); |
| | | attrList.add(builder.toAttribute()); |
| | | attrs.put(attrType, attrList); |
| | | } |
| | |
| | | { |
| | | if (additionalClasses == null) |
| | | { |
| | | additionalClasses = new HashSet<ObjectClass>(); |
| | | additionalClasses = new HashSet<>(); |
| | | } |
| | | |
| | | additionalClasses.add(superiorClass); |