| | |
| | | final SearchResultEntry resultEntry = getFirstResult(searchOperation); |
| | | if (resultEntry != null) |
| | | { |
| | | AttributeType synchronizationGenIDType = DirectoryServer.getSchema().getAttributeType(REPLICATION_GENERATION_ID); |
| | | AttributeType synchronizationGenIDType = DirectoryServer.getInstance().getServerContext().getSchema().getAttributeType(REPLICATION_GENERATION_ID); |
| | | List<Attribute> attrs = resultEntry.getAllAttributes(synchronizationGenIDType); |
| | | if (!attrs.isEmpty()) |
| | | { |
| | |
| | | |
| | | private Iterator<ByteString> getAttributeValueIterator(SearchResultEntry resultEntry, String attrName) |
| | | { |
| | | AttributeType attrType = DirectoryServer.getSchema().getAttributeType(attrName); |
| | | AttributeType attrType = DirectoryServer.getInstance().getServerContext().getSchema().getAttributeType(attrName); |
| | | List<Attribute> exclAttrs = resultEntry.getAllAttributes(attrType); |
| | | if (!exclAttrs.isEmpty()) |
| | | { |
| | |
| | | } |
| | | |
| | | // Check consistency of all classes attributes |
| | | Schema schema = DirectoryServer.getSchema(); |
| | | Schema schema = DirectoryServer.getInstance().getServerContext().getSchema(); |
| | | /* |
| | | * For each attribute in attributes1, check there is the matching |
| | | * one in attributes2. |
| | |
| | | */ |
| | | |
| | | // Check consistency of specific classes attributes |
| | | Schema schema = DirectoryServer.getSchema(); |
| | | Schema schema = DirectoryServer.getInstance().getServerContext().getSchema(); |
| | | int fractionalMode = newFractionalConfig.fractionalConfigToInt(); |
| | | for (Map.Entry<String, Set<String>> entry : newFractionalSpecificClassesAttributes.entrySet()) |
| | | { |
| | |
| | | Set<AttributeType> results = new HashSet<>(); |
| | | for (String attrName : fractionalConcernedAttributes) |
| | | { |
| | | results.add(DirectoryServer.getSchema().getAttributeType(attrName)); |
| | | results.add(DirectoryServer.getInstance().getServerContext().getSchema().getAttributeType(attrName)); |
| | | } |
| | | return results; |
| | | } |
| | |
| | | Set<AttributeType> includeAttributes = new HashSet<>(); |
| | | for (String attrName : includeAttributeStrings) |
| | | { |
| | | includeAttributes.add(DirectoryServer.getSchema().getAttributeType(attrName)); |
| | | includeAttributes.add(DirectoryServer.getInstance().getServerContext().getSchema().getAttributeType(attrName)); |
| | | } |
| | | exportConfig.setIncludeAttributes(includeAttributes); |
| | | } |
| | |
| | | if (name.startsWith("@")) |
| | | { |
| | | String ocName = name.substring(1); |
| | | ObjectClass objectClass = DirectoryServer.getSchema().getObjectClass(ocName); |
| | | ObjectClass objectClass = DirectoryServer.getInstance().getServerContext().getSchema().getObjectClass(ocName); |
| | | if (!objectClass.isPlaceHolder()) |
| | | { |
| | | for (AttributeType at : objectClass.getRequiredAttributes()) |
| | |
| | | * For each class in specificClassesAttributes1, check that the attribute |
| | | * list is equivalent to specificClassesAttributes2 attribute list |
| | | */ |
| | | Schema schema = DirectoryServer.getSchema(); |
| | | Schema schema = DirectoryServer.getInstance().getServerContext().getSchema(); |
| | | for (Map.Entry<String, Set<String>> entry : specificClassesAttrs1.entrySet()) |
| | | { |
| | | String className1 = entry.getKey(); |