Package org.apache.directory.shared.ldap.schema.registries

Examples of org.apache.directory.shared.ldap.schema.registries.AttributeTypeRegistry


    }
   
   
    private void disableAT( CoreSession session, String schemaName )
    {
        AttributeTypeRegistry atRegistry = registries.getAttributeTypeRegistry();
       
        for ( AttributeType attributeType : atRegistry )
        {
            if ( schemaName.equalsIgnoreCase( attributeType.getSchemaName() ) )
            {
View Full Code Here


    private AttributeType getAttributeType(String attributeName)
            throws DirectoryServerException {
        if (this.service != null) {
            SchemaManager schemaManager = this.service.getSchemaManager();
            if (schemaManager != null) {
                AttributeTypeRegistry registry = schemaManager.getAttributeTypeRegistry();
                if (registry != null) {
                    try {
                        String oid = registry.getOidByName(attributeName);
                        return registry.lookup(oid);
                    } catch (LdapException e) {
                        String msg = "An error occurred while querying attribute " + attributeName +
                                     " from registry.";
                        logger.error(msg, e);
                        throw new DirectoryServerException(msg, e);
View Full Code Here

    }
   
   
    private void disableAT( CoreSession session, String schemaName )
    {
        AttributeTypeRegistry atRegistry = registries.getAttributeTypeRegistry();
       
        for ( AttributeType attributeType : atRegistry )
        {
            if ( schemaName.equalsIgnoreCase( attributeType.getSchemaName() ) )
            {
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.schema.registries.AttributeTypeRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.