| | |
| | | AttributeType oldAttrType = schema.getAttributeType(attrType.getOID()); |
| | | if (oldAttrType == null || !oldAttrType.toString().equals(attrType.toString())) |
| | | { |
| | | newSchema.registerAttributeType(attrType, true); |
| | | newSchema.registerAttributeType(attrType, schemaFile, true); |
| | | |
| | | if (schemaFile != null) |
| | | { |
| | |
| | | ObjectClass oldObjectClass = schema.getObjectClass(newObjectClass.getOID()); |
| | | if (oldObjectClass.isPlaceHolder() || !oldObjectClass.toString().equals(newObjectClass.toString())) |
| | | { |
| | | newSchema.registerObjectClass(newObjectClass, true); |
| | | newSchema.registerObjectClass(newObjectClass, schemaFile, true); |
| | | |
| | | if (schemaFile != null) |
| | | { |