/** * {@inheritDoc} */ @Override public ModifyRequest setName( Dn name ) { getDecorated().setName( name ); return this; }
/** * {@inheritDoc} */ @Override public ModifyRequest setName( Dn name ) { getDecorated().setName( name ); return this; }
/** * {@inheritDoc} */ @Override public ModifyRequest setName( Dn name ) { getDecorated().setName( name ); return this; }
/** * {@inheritDoc} */ @Override public ModifyRequest setName( Dn name ) { getDecorated().setName( name ); return this; }
/** * {@inheritDoc} */ @Override public void modify( Dn dn, Modification... modifications ) throws LdapException { if ( dn == null ) { LOG.debug( "received a null dn for modification" ); throw new IllegalArgumentException( "The Dn to be modified cannot be null" ); } if ( ( modifications == null ) || ( modifications.length == 0 ) ) { String msg = "Cannot process a ModifyRequest without any modification"; LOG.debug( msg ); throw new IllegalArgumentException( msg ); } int newId = messageId.incrementAndGet(); ModifyRequest modifyRequest = new ModifyRequestImpl(); modifyRequest.setMessageId( newId ); modifyRequest.setName( dn ); for ( Modification modification : modifications ) { modifyRequest.addModification( modification ); } ModifyResponse modifyResponse = modify( modifyRequest ); processResponse( modifyResponse ); }
/** * {@inheritDoc} */ @Override public void modify( Entry entry, ModificationOperation modOp ) throws LdapException { if ( entry == null ) { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_04140_NULL_ENTRY_MODIFY ) ); } throw new IllegalArgumentException( I18n.err( I18n.ERR_04133_NULL_MODIFIED_ENTRY ) ); } ModifyRequest modReq = new ModifyRequestImpl(); modReq.setName( entry.getDn() ); Iterator<Attribute> itr = entry.iterator(); while ( itr.hasNext() ) { modReq.addModification( itr.next(), modOp ); } ModifyResponse modifyResponse = modify( modReq ); processResponse( modifyResponse ); }
modReq.setName( dn );
/** * {@inheritDoc} */ @Override public void modify( Entry entry, ModificationOperation modOp ) throws LdapException { if ( entry == null ) { LOG.debug( "received a null entry for modification" ); throw new IllegalArgumentException( "Entry to be modified cannot be null" ); } int newId = messageId.incrementAndGet(); ModifyRequest modifyRequest = new ModifyRequestImpl(); modifyRequest.setMessageId( newId ); modifyRequest.setName( entry.getDn() ); Iterator<Attribute> itr = entry.iterator(); while ( itr.hasNext() ) { modifyRequest.addModification( new DefaultModification( modOp, itr.next() ) ); } ModifyResponse modifyResponse = modify( modifyRequest ); processResponse( modifyResponse ); }
/** * {@inheritDoc} */ @Override public void modify( Entry entry, ModificationOperation modOp ) throws LdapException { if ( entry == null ) { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_04140_NULL_ENTRY_MODIFY ) ); } throw new IllegalArgumentException( I18n.err( I18n.ERR_04133_NULL_MODIFIED_ENTRY ) ); } ModifyRequest modReq = new ModifyRequestImpl(); modReq.setName( entry.getDn() ); Iterator<Attribute> itr = entry.iterator(); while ( itr.hasNext() ) { modReq.addModification( itr.next(), modOp ); } ModifyResponse modifyResponse = modify( modReq ); processResponse( modifyResponse ); }
/** * {@inheritDoc} */ @Override public void modify( Entry entry, ModificationOperation modOp ) throws LdapException { if ( entry == null ) { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_04140_NULL_ENTRY_MODIFY ) ); } throw new IllegalArgumentException( I18n.err( I18n.ERR_04133_NULL_MODIFIED_ENTRY ) ); } ModifyRequest modReq = new ModifyRequestImpl(); modReq.setName( entry.getDn() ); Iterator<Attribute> itr = entry.iterator(); while ( itr.hasNext() ) { modReq.addModification( itr.next(), modOp ); } ModifyResponse modifyResponse = modify( modReq ); processResponse( modifyResponse ); }
request.setName( new Dn( dn ) ); Modification[] modifications = convertModificationItems( modificationItems ); if ( modifications != null )
Dn dn = toDn(principalName); ModifyRequest modifyRequest = new ModifyRequestImpl(); modifyRequest.setName(dn); modifyRequest.replace(KerberosAttribute.KRB5_KEY_VERSION_NUMBER_AT, "" + identity.getKeyVersion());
modifyRequest.setName( userDn );
Dn dn = toDn(principalName); ModifyRequest modifyRequest = new ModifyRequestImpl(); modifyRequest.setName(dn); modifyRequest.replace(KerberosAttribute.KRB5_KEY_VERSION_NUMBER_AT, "" + identity.getKeyVersion());