Examples of ReferralHandlingMethod


Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

        IBrowserConnection browserConnection = entry.getBrowserConnection();
        Dn dn = entry.getDn();

        // search the entry
        AliasDereferencingMethod derefAliasMethod = browserConnection.getAliasesDereferencingMethod();
        ReferralHandlingMethod handleReferralsMethod = browserConnection.getReferralsHandlingMethod();
        ISearch search = new Search( null, browserConnection, dn, ISearch.FILTER_TRUE, ISearch.NO_ATTRIBUTES,
            SearchScope.OBJECT, 1, 0, derefAliasMethod, handleReferralsMethod, true, null );
        SearchRunnable.searchAndUpdateModel( browserConnection, search, monitor );

        ISearchResult[] results = search.getSearchResults();
View Full Code Here

Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

        // DNs
        String oldDnString = entry.getDn().getUpName();
        String newDnString = newDn.getUpName();

        // determine referrals handling method
        ReferralHandlingMethod referralsHandlingMethod = entry.isReferral() ? ReferralHandlingMethod.MANAGE
            : ReferralHandlingMethod.FOLLOW;

        if ( browserConnection.getConnection() != null )
        {
            browserConnection.getConnection().getJNDIConnectionWrapper().renameEntry( oldDnString, newDnString, true,
View Full Code Here

Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

            timeLimit--;
        }
        controls.setTimeLimit( timeLimit );
        String filter = parameter.getFilter();
        AliasDereferencingMethod aliasesDereferencingMethod = parameter.getAliasesDereferencingMethod();
        ReferralHandlingMethod referralsHandlingMethod = parameter.getReferralsHandlingMethod();

        Control[] jndiControls = null;
        if ( parameter.getControls() != null )
        {
            List<StudioControl> ctls = parameter.getControls();
View Full Code Here

Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

            .getAliasesDereferencingMethod();
        if ( parent.isAlias() )
        {
            aliasesDereferencingMethod = AliasDereferencingMethod.NEVER;
        }
        ReferralHandlingMethod referralsHandlingMethod = parent.getBrowserConnection().getReferralsHandlingMethod();
        if ( parent.isReferral() )
        {
            referralsHandlingMethod = ReferralHandlingMethod.MANAGE;
        }
View Full Code Here

Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

                // apply new RDN to the attributes
                applyNewRdn( newAttributes, oldRdn, newRdn );

                // determine referrals handling method
                ReferralHandlingMethod referralsHandlingMethod = newAttributes.get( "ref" ) != null ? ReferralHandlingMethod.MANAGE
                    : ReferralHandlingMethod.FOLLOW;

                // create entry
                targetBrowserConnection.getConnection().getJNDIConnectionWrapper().createEntry( newLdapDn.getUpName(),
                    newAttributes, referralsHandlingMethod, null, dummyMonitor, null );
View Full Code Here

Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

                    valuesToCreate[i].getRawValue() );
                modificationItems[i] = new ModificationItem( DirContext.ADD_ATTRIBUTE, attribute );
            }

            // determine referrals handling method
            ReferralHandlingMethod referralsHandlingMethod = entryToModify.isReferral() ? ReferralHandlingMethod.MANAGE
                : ReferralHandlingMethod.FOLLOW;

            browserConnection.getConnection().getJNDIConnectionWrapper().modifyEntry( dn, modificationItems,
                referralsHandlingMethod, null, monitor, null );
        }
View Full Code Here

Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

                    modificationItems.add( modificationItem );
                }
            }

            // determine referrals handling method
            ReferralHandlingMethod referralsHandlingMethod = entry.isReferral() ? ReferralHandlingMethod.MANAGE
                : ReferralHandlingMethod.FOLLOW;

            browserConnection.getConnection().getJNDIConnectionWrapper().modifyEntry( dn,
                modificationItems.toArray( new ModificationItem[modificationItems.size()] ), referralsHandlingMethod,
                null, monitor, null );
View Full Code Here

Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

                .getAliasesDereferencingMethod();
            if ( entry.isAlias() )
            {
                aliasesDereferencingMethod = AliasDereferencingMethod.NEVER;
            }
            ReferralHandlingMethod referralsHandlingMethod = entry.getBrowserConnection().getReferralsHandlingMethod();
            if ( entry.isReferral() )
            {
                referralsHandlingMethod = ReferralHandlingMethod.MANAGE;
            }
View Full Code Here

Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

        IBrowserConnection browserConnection = entry.getBrowserConnection();
        LdapDN dn = entry.getDn();

        // search the entry
        AliasDereferencingMethod derefAliasMethod = browserConnection.getAliasesDereferencingMethod();
        ReferralHandlingMethod handleReferralsMethod = browserConnection.getReferralsHandlingMethod();
        ISearch search = new Search( null, browserConnection, dn, ISearch.FILTER_TRUE, ISearch.NO_ATTRIBUTES,
            SearchScope.OBJECT, 1, 0, derefAliasMethod, handleReferralsMethod, true, null );
        SearchRunnable.searchAndUpdateModel( browserConnection, search, monitor );

        ISearchResult[] results = search.getSearchResults();
View Full Code Here

Examples of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

                    .getRawValue() );
                modificationItems[1] = new ModificationItem( DirContext.REMOVE_ATTRIBUTE, oldAttribute );
            }

            // determine referrals handling method
            ReferralHandlingMethod referralsHandlingMethod = entry.isReferral() ? ReferralHandlingMethod.MANAGE
                : ReferralHandlingMethod.FOLLOW;

            browserConnection.getConnection().getJNDIConnectionWrapper().modifyEntry( dn, modificationItems,
                referralsHandlingMethod, null, monitor, null );
        }
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.