Examples of DerefAliasesEnum


Examples of org.apache.ldap.common.message.DerefAliasesEnum

        throws NamingException
    {
        Name effectiveBase = null;
        BigInteger baseId = db.getEntryId( base.toString() );
        String aliasedBase = ( String ) db.getAliasIndex().reverseLookup( baseId );
        DerefAliasesEnum mode = DerefAliasesEnum.getEnum( env );


        // --------------------------------------------------------------------
        // Determine the eective base with aliases
        // --------------------------------------------------------------------


        /*
         * If the base is not an alias or if alias dereerencing does not
         * occur on finding the base then we set the effective base to the
         * given base.
         */
        if ( null == aliasedBase || ! mode.derefFindingBase() )
        {
            effectiveBase = base;
        }
        /*
         * I the base is an alias and alias dereerencing does occur on
View Full Code Here

Examples of org.apache.ldap.common.message.DerefAliasesEnum

     */
    public boolean assertSubtreeScope( final ScopeNode node,
        final BigInteger id ) throws NamingException
    {
        String dn = db.getEntryDn( id );
        DerefAliasesEnum mode = node.getDerefAliases();
        Object baseId = db.getEntryId( node.getBaseDn() );
        boolean isDescendant = dn.endsWith( node.getBaseDn() );
       
        /*
         * The candidate id could be any entry in the db.  If search
         * dereferencing is not enabled then we return the results of the
         * descendant test.
         */
        if ( ! mode.derefInSearching() )
        {
            return isDescendant;
        }

        /*
 
View Full Code Here

Examples of org.apache.ldap.common.message.DerefAliasesEnum

     * @throws NamingException if the index lookups fail.
     */
    public boolean assertOneLevelScope( final ScopeNode node,
        final BigInteger id ) throws NamingException
    {
        DerefAliasesEnum mode = node.getDerefAliases();
        Object baseId = db.getEntryId( node.getBaseDn() );
        Index idx = db.getHierarchyIndex();
        boolean isChild = idx.hasValue( baseId, id );

        /*
         * The candidate id could be any entry in the db.  If search
         * dereferencing is not enabled then we return the results of the child
         * test.
         */
        if ( ! mode.derefInSearching() )
        {
            return isChild;
        }

        /*
 
View Full Code Here

Examples of org.apache.ldap.common.message.DerefAliasesEnum

        throws NamingException
    {
        Name effectiveBase = null;
        BigInteger baseId = db.getEntryId( base.toString() );
        String aliasedBase = ( String ) db.getAliasIndex().reverseLookup( baseId );
        DerefAliasesEnum mode = DerefAliasesEnum.getEnum( env );


        // --------------------------------------------------------------------
        // Determine the eective base with aliases
        // --------------------------------------------------------------------


        /*
         * If the base is not an alias or if alias dereerencing does not
         * occur on finding the base then we set the effective base to the
         * given base.
         */
        if ( null == aliasedBase || ! mode.derefFindingBase() )
        {
            effectiveBase = base;
        }
        /*
         * I the base is an alias and alias dereerencing does occur on
View Full Code Here

Examples of org.apache.ldap.common.message.DerefAliasesEnum

     */
    public boolean assertSubtreeScope( final ScopeNode node,
        final BigInteger id ) throws NamingException
    {
        String dn = db.getEntryDn( id );
        DerefAliasesEnum mode = node.getDerefAliases();
        Object baseId = db.getEntryId( node.getBaseDn() );
        boolean isDescendant = dn.endsWith( node.getBaseDn() );
       
        /*
         * The candidate id could be any entry in the db.  If search
         * dereferencing is not enabled then we return the results of the
         * descendant test.
         */
        if ( ! mode.derefInSearching() )
        {
            return isDescendant;
        }

        /*
 
View Full Code Here

Examples of org.apache.ldap.common.message.DerefAliasesEnum

     * @throws NamingException if the index lookups fail.
     */
    public boolean assertOneLevelScope( final ScopeNode node,
        final BigInteger id ) throws NamingException
    {
        DerefAliasesEnum mode = node.getDerefAliases();
        Object baseId = db.getEntryId( node.getBaseDn() );
        Index idx = db.getHierarchyIndex();
        boolean isChild = idx.hasValue( baseId, id );

        /*
         * The candidate id could be any entry in the db.  If search
         * dereferencing is not enabled then we return the results of the child
         * test.
         */
        if ( ! mode.derefInSearching() )
        {
            return isChild;
        }

        /*
 
View Full Code Here

Examples of org.apache.ldap.common.message.DerefAliasesEnum

     */
    public boolean assertSubtreeScope( final ScopeNode node,
        final BigInteger id ) throws NamingException
    {
        String dn = db.getEntryDn( id );
        DerefAliasesEnum mode = node.getDerefAliases();
        Object baseId = db.getEntryId( node.getBaseDn() );
        boolean isDescendant = dn.endsWith( node.getBaseDn() );
       
        /*
         * The candidate id could be any entry in the db.  If search
         * dereferencing is not enabled then we return the results of the
         * descendant test.
         */
        if ( ! mode.derefInSearching() )
        {
            return isDescendant;
        }

        /*
 
View Full Code Here

Examples of org.apache.ldap.common.message.DerefAliasesEnum

     * @throws NamingException if the index lookups fail.
     */
    public boolean assertOneLevelScope( final ScopeNode node,
        final BigInteger id ) throws NamingException
    {
        DerefAliasesEnum mode = node.getDerefAliases();
        Object baseId = db.getEntryId( node.getBaseDn() );
        Index idx = db.getHierarchyIndex();
        boolean isChild = idx.hasValue( baseId, id );

        /*
         * The candidate id could be any entry in the db.  If search
         * dereferencing is not enabled then we return the results of the child
         * test.
         */
        if ( ! mode.derefInSearching() )
        {
            return isChild;
        }

        /*
 
View Full Code Here

Examples of org.apache.ldap.common.message.DerefAliasesEnum

        throws NamingException
    {
        Name effectiveBase = null;
        BigInteger baseId = db.getEntryId( base.toString() );
        String aliasedBase = ( String ) db.getAliasIndex().reverseLookup( baseId );
        DerefAliasesEnum mode = DerefAliasesEnum.getEnum( env );


        // --------------------------------------------------------------------
        // Determine the eective base with aliases
        // --------------------------------------------------------------------


        /*
         * If the base is not an alias or if alias dereerencing does not
         * occur on finding the base then we set the effective base to the
         * given base.
         */
        if ( null == aliasedBase || ! mode.derefFindingBase() )
        {
            effectiveBase = base;
        }
        /*
         * I the base is an alias and alias dereerencing does occur on
View Full Code Here

Examples of org.apache.ldap.common.message.DerefAliasesEnum

        throws NamingException
    {
        Name effectiveBase = null;
        BigInteger baseId = db.getEntryId( base.toString() );
        String aliasedBase = ( String ) db.getAliasIndex().reverseLookup( baseId );
        DerefAliasesEnum mode = DerefAliasesEnum.getEnum( env );


        // --------------------------------------------------------------------
        // Determine the eective base with aliases
        // --------------------------------------------------------------------


        /*
         * If the base is not an alias or if alias dereerencing does not
         * occur on finding the base then we set the effective base to the
         * given base.
         */
        if ( null == aliasedBase || ! mode.derefFindingBase() )
        {
            effectiveBase = base;
        }
        /*
         * I the base is an alias and alias dereerencing does occur on
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.