| | |
| | | for (ObjectClass oc : schema.getObjectClasses().values()) |
| | | { |
| | | if (oc.getDeclaredRequiredAttributes().contains(removeType) || |
| | | oc.getOptionalAttributes().contains(removeType)) |
| | | oc.getDeclaredOptionalAttributes().contains(removeType)) |
| | | { |
| | | LocalizableMessage message = ERR_SCHEMA_MODIFY_REMOVE_AT_IN_OC.get( |
| | | removeType.getNameOrOID(), oc.getNameOrOID()); |
| | |
| | | } |
| | | } |
| | | |
| | | for (AttributeType at : objectClass.getOptionalAttributes()) |
| | | for (AttributeType at : objectClass.getDeclaredOptionalAttributes()) |
| | | { |
| | | if (! schema.hasAttributeType(at.getOID())) |
| | | { |