| | |
| | | */ |
| | | package org.opends.server.api; |
| | | |
| | | |
| | | |
| | | import static org.opends.messages.CoreMessages.*; |
| | | import static org.opends.server.util.StaticUtils.toLowerCase; |
| | | |
| | |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | import java.util.concurrent.CopyOnWriteArrayList; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeBuilder; |
| | |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.ObjectClass; |
| | | |
| | | |
| | | |
| | | /** |
| | | * This class provides a utility for interacting with compressed representations |
| | | * of schema elements. The default implementation does not persist encoded |
| | |
| | | Entry<AttributeType, Set<String>> ad = adDecodeMap.get(id); |
| | | if (ad == null) |
| | | { |
| | | final LocalizableMessage message = ERR_COMPRESSEDSCHEMA_UNRECOGNIZED_AD_TOKEN |
| | | .get(String.valueOf(id)); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), |
| | | message); |
| | | ERR_COMPRESSEDSCHEMA_UNRECOGNIZED_AD_TOKEN.get(id)); |
| | | } |
| | | |
| | | // Before returning the attribute, make sure that the attribute type is not |
| | |
| | | } |
| | | else |
| | | { |
| | | final LocalizableMessage message = ERR_COMPRESSEDSCHEMA_UNKNOWN_OC_TOKEN.get(String |
| | | .valueOf(id)); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), |
| | | message); |
| | | ERR_COMPRESSEDSCHEMA_UNKNOWN_OC_TOKEN.get(id)); |
| | | } |
| | | } |
| | | |