/** * Retrieves the last (leaf) component of this name. * * @return the last component of this Dn */ public Rdn getRdn() { if ( isNullOrEmpty( this ) ) { return Rdn.EMPTY_RDN; } return rdns.get( 0 ); }
/** * Retrieves the last (leaf) component of this name. * * @return the last component of this Dn */ public Rdn getRdn() { if ( isNullOrEmpty( this ) ) { return Rdn.EMPTY_RDN; } return rdns.get( 0 ); }
/** * Retrieves the last (leaf) component of this name. * * @return the last component of this Dn */ public Rdn getRdn() { if ( isNullOrEmpty( this ) ) { return Rdn.EMPTY_RDN; } return rdns.get( 0 ); }
public void widgetSelected( SelectionEvent e ) { if ( !Dn.isNullOrEmpty( dn ) ) { dn = dn.getParent(); dnChanged(); internalSetEnabled(); notifyListeners(); } } } );
/** * Internal set enabled. */ private void internalSetEnabled() { upButton.setEnabled( !Dn.isNullOrEmpty( dn ) && dnCombo.isEnabled() ); entryBrowseButton.setEnabled( browserConnection != null && dnCombo.isEnabled() ); }
/** * Gets the parent Dn of this Dn. Null if this Dn doesn't have a parent, i.e. because it * is the empty Dn.<br> * The Parent is the right part of the Dn, when the Rdn has been removed. * * @return the parent Dn of this Dn */ public Dn getParent() { if ( isNullOrEmpty( this ) ) { return this; } int posn = rdns.size() - 1; Dn newDn = new Dn( schemaManager ); for ( int i = rdns.size() - posn; i < rdns.size(); i++ ) { newDn.rdns.add( rdns.get( i ) ); } newDn.toUpName(); return newDn; }
/** * Gets the parent Dn of this Dn. Null if this Dn doesn't have a parent, i.e. because it * is the empty Dn.<br> * The Parent is the right part of the Dn, when the Rdn has been removed. * * @return the parent Dn of this Dn */ public Dn getParent() { if ( isNullOrEmpty( this ) ) { return this; } int posn = rdns.size() - 1; Dn newDn = new Dn( schemaManager ); for ( int i = rdns.size() - posn; i < rdns.size(); i++ ) { newDn.rdns.add( rdns.get( i ) ); } newDn.toUpName(); return newDn; }
/** * Gets the parent Dn of this Dn. Null if this Dn doesn't have a parent, i.e. because it * is the empty Dn.<br> * The Parent is the right part of the Dn, when the Rdn has been removed. * * @return the parent Dn of this Dn */ public Dn getParent() { if ( isNullOrEmpty( this ) ) { return this; } int posn = rdns.size() - 1; Dn newDn = new Dn( schemaManager ); for ( int i = rdns.size() - posn; i < rdns.size(); i++ ) { newDn.rdns.add( rdns.get( i ) ); } newDn.toUpName(); return newDn; }
/** * {@inheritDoc} */ @Override public void unbind( UnbindOperationContext unbindContext ) throws LdapException { Dn unbindContextDn = unbindContext.getDn(); if ( !Dn.isNullOrEmpty( unbindContextDn ) ) { Partition partition = getPartition( unbindContext.getDn() ); partition.unbind( unbindContext ); } }
Dn dn2 = getDn(); if ( Dn.isNullOrEmpty( dn1 ) ) if ( !Dn.isNullOrEmpty( dn2 ) ) if ( Dn.isNullOrEmpty( dn2 ) )
Dn dn2 = getDn(); if ( Dn.isNullOrEmpty( dn1 ) ) if ( !Dn.isNullOrEmpty( dn2 ) ) if ( Dn.isNullOrEmpty( dn2 ) )
Dn dn2 = getDn(); if ( Dn.isNullOrEmpty( dn1 ) ) if ( !Dn.isNullOrEmpty( dn2 ) ) if ( Dn.isNullOrEmpty( dn2 ) )
/** * {@inheritDoc} */ @Override public Element toDsml( Element root ) { Element element = super.toDsml( root ); BindRequest request = getDecorated(); // Principal Dn dn = request.getDn(); if ( !Dn.isNullOrEmpty( dn ) ) { // A DN has been provided element.addAttribute( "principal", dn.getName() ); } else { // No DN has been provided, let's use the name as a string instead String name = request.getName(); element.addAttribute( "principal", name ); } return element; }
if ( Dn.isNullOrEmpty( entry.getDn() ) )
if ( !Dn.isNullOrEmpty( matchedDn ) )
boolean newEntryParentDnNotNullOrEmpty = !Dn.isNullOrEmpty( newEntry.getDn().getParent() ); boolean newEntryDnEqualsSelectedEntryDn = newEntry.getDn().equals( wizard.getSelectedEntry().getDn() );
if ( !Dn.isNullOrEmpty( dn ) )
if ( !Dn.isNullOrEmpty( dn ) )
if ( !Dn.isNullOrEmpty( dn ) )