| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2010-2012 ForgeRock AS. |
| | | * Portions Copyright 2010-2013 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | String oid = lowerName + "-oid"; |
| | | String definition = "( " + oid + " NAME '" + name + "' ABSTRACT )"; |
| | | |
| | | // Temporary object classes are immediately dirty. |
| | | objectClass = new ObjectClass(definition, name, |
| | | Collections.singleton(name), oid, null, |
| | | Collections.singleton(getTopObjectClass()), |
| | | null, null, |
| | | ObjectClassType.ABSTRACT, false, null); |
| | | Collections.singleton(name), oid, null, |
| | | Collections.singleton(getTopObjectClass()), null, null, |
| | | ObjectClassType.ABSTRACT, false, null).setDirty(); |
| | | } |
| | | |
| | | return objectClass; |
| | |
| | | String definition = "( " + oid + " NAME '" + name + "' SYNTAX " + |
| | | syntax.getOID() + " )"; |
| | | |
| | | // Temporary attribute types are immediately dirty. |
| | | return new AttributeType(definition, name, Collections.singleton(name), |
| | | oid, null, null, syntax, |
| | | AttributeUsage.USER_APPLICATIONS, false, false, |
| | | false, false); |
| | | false, false).setDirty(); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Retrieves the set of attribute syntaxes defined in the Directory Server. |
| | | * |
| | | * @return The set of attribute syntaxes defined in the Directory Server. |
| | | * @return The set of attribute syntaxes defined in the Directory Server. |
| | | */ |
| | | public static ConcurrentHashMap<String,AttributeSyntax> getAttributeSyntaxes() |
| | | public static ConcurrentHashMap<String, |
| | | AttributeSyntax<?>> getAttributeSyntaxes() |
| | | { |
| | | return directoryServer.schema.getSyntaxes(); |
| | | } |