All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ietf.ldap.LDAPMatchingRuleUseSchema Maven / Gradle / Ivy

Go to download

The LDAP Class Libraries for Java (JLDAP) enable you to write applications to access, manage, update, and search for information stored in directories accessible using LDAPv3.

The newest version!
/* **************************************************************************
 * $OpenLDAP$
 *
 * Copyright (C) 1999, 2000, 2001 Novell, Inc. All Rights Reserved.
 *
 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
 * TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
 * TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
 * AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
 * IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
 * OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
 * PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
 * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
 ******************************************************************************/

package org.ietf.ldap;

/**
 * Represents the definition of a specific matching rule use in the
 * directory schema.
 *
 * @see 
            com.novell.ldap.LDAPMatchingRuleUseSchema
 */

public class LDAPMatchingRuleUseSchema
                extends LDAPSchemaElement
{
    private com.novell.ldap.LDAPMatchingRuleUseSchema schema;

    /**
     * Constructs LDAPMatchingRuleUseSchema from com.novell.ldap
     */
    /* package */
    LDAPMatchingRuleUseSchema( com.novell.ldap.LDAPMatchingRuleUseSchema schema)
    {
        super( schema);
        this.schema = schema;
        return;
    }

    /**
     * Constructs a matching rule use definition for adding to or deleting
     * from the schema.
     *
     * @see 
            com.novell.ldap.LDAPMatchingRuleUseSchema.LDAPMatchingRuleUseSchema(
            String[], String, String, boolean, String[] )
     */
    public LDAPMatchingRuleUseSchema(String[] names,
                                     String oid,
                                     String description,
                                     boolean obsolete,
                                     String[] attributes)
    {
        super( new com.novell.ldap.LDAPMatchingRuleUseSchema( names,
                                                              oid,
                                                              description,
                                                              obsolete,
                                                              attributes));
        schema = (com.novell.ldap.LDAPMatchingRuleUseSchema)getWrappedObject();
        return;
    }



    /**
     * Constructs a matching rule use definition from the raw string value
     * returned on a schema query for matchingRuleUse.
     *
     * @see 
            com.novell.ldap.LDAPMatchingRuleUseSchema.LDAPMatchingRuleUseSchema(
            String)
     */
    public LDAPMatchingRuleUseSchema(String raw)
    {
        super( new com.novell.ldap.LDAPMatchingRuleUseSchema( raw));
        schema = (com.novell.ldap.LDAPMatchingRuleUseSchema)getWrappedObject();
        return;
    }

    /**
     * Returns an array of all the attributes which this matching rule
     * applies to.
     *
     * @see 
            com.novell.ldap.LDAPMatchingRuleUseSchema.getAttributes()
     */
    public String[] getAttributes()
    {
        return schema.getAttributes();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy