Package org.apache.directory.studio.connection.core.Connection

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;
            }
            Control[] controls = null;
View Full Code Here


                // 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

            parent.setChildrenInitialized( false );
           
            // determine alias and referral handling
            SearchScope scope = SearchScope.ONELEVEL;
            AliasDereferencingMethod derefAliasMethod = parent.getBrowserConnection().getAliasesDereferencingMethod();
            ReferralHandlingMethod handleReferralsMethod = parent.getBrowserConnection().getReferralsHandlingMethod();
            Control[] controls = null;
//            if( parent.isReferral() && handleReferralsMethod == ReferralHandlingMethod.MANAGE )
//            {
//                handleReferralsMethod = ReferralHandlingMethod.FOLLOW;
//                scope = SearchScope.OBJECT;
View Full Code Here

                    .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

        }
        else if ( dummyMonitor.getException() instanceof ContextNotEmptyException )
        {
            // do not follow referrals or dereference aliases when deleting entries
            AliasDereferencingMethod aliasDereferencingMethod = AliasDereferencingMethod.NEVER;
            ReferralHandlingMethod referralsHandlingMethod = browserConnection.getRootDSE().isControlSupported(
                org.apache.directory.studio.ldapbrowser.core.model.Control.MANAGEDSAIT_CONTROL.getOid() ) ? ReferralHandlingMethod.MANAGE
                : ReferralHandlingMethod.IGNORE;

            // perform one-level search and delete recursively
            int numberInBatch;
View Full Code Here

            controlList.add( treeDeleteControl );
        }
        Control[] controls = controlList.toArray( new Control[controlList.size()] );

        // do not follow referrals
        ReferralHandlingMethod referralsHandlingMethod = browserConnection.getRootDSE().isControlSupported(
            org.apache.directory.studio.ldapbrowser.core.model.Control.MANAGEDSAIT_CONTROL.getOid() ) ? ReferralHandlingMethod.MANAGE
            : ReferralHandlingMethod.IGNORE;

        // delete entry
        browserConnection.getConnection().getJNDIConnectionWrapper().deleteEntry( dn.getUpName(),
View Full Code Here

                    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

                    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

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

        Control[] ldapControls = null;
        if ( parameter.getControls() != null )
        {
            org.apache.directory.studio.ldapbrowser.core.model.Control[] ctls = parameter.getControls();
View Full Code Here

                // 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

TOP

Related Classes of org.apache.directory.studio.connection.core.Connection.ReferralHandlingMethod

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.