/** * Gets the distinguished name of the entry object returned. * * @return the Dn of the entry returned. */ public DN getObjectName() { return ( entry == null ? null : entry.getDn() ); }
/** * Get the entry DN * * @return Returns the objectName. */ public DN getObjectName() { return entry.getDn(); }
/** * Get the added DN * * @return Returns the entry DN. */ public DN getEntryDn() { return entry.getDn(); }
/** * @return The entry Distinguished name */ public DN getDn() { return entry.getDn(); }
/** * Gets the distinguished name of the entry to add. * * @return the Dn of the added entry. */ public DN getEntryDn() { return entry.getDn(); }
/** * Gets the distinguished name of the entry object returned. * * @return the Dn of the entry returned. */ public DN getObjectName() { if ( entry != null ) { return entry.getDn(); } else { return DN.EMPTY_DN; } }
/** * @see Object#toString() */ public String toString() { return super.toString() + ": [" + entry.getDn() + "].new( " + entry + " )"; } }
/** * Returns a attribute given it's id * * @param attributeId * The attribute Id * @return The attribute if it exists */ public EntryAttribute get( String attributeId ) { if ( "dn".equalsIgnoreCase( attributeId ) ) { return new DefaultClientAttribute( "dn", entry.getDn().getName() ); } return entry.get( attributeId ); }
/** * Inject the entry into the local server * * @param nexus the local partition to update * @param store not used... Just for inheritence sake. * @param coreSession the current session */ protected void execute0( PartitionNexus nexus, ReplicationStore store, CoreSession coreSession ) throws Exception { if ( ! EntryUtil.isEntryUpdatable( coreSession, entry.getDn(), getCSN() ) ) { return; } EntryUtil.createGlueEntries( coreSession, entry.getDn(), false ); // Replace the entry if an entry with the same name exists. if ( nexus.lookup( new LookupOperationContext( coreSession, entry.getDn() ) ) != null ) { recursiveDelete( nexus, entry.getDn(), coreSession ); } nexus.add( new AddOperationContext( coreSession, (ServerEntry)entry ) ); }
/** * * modifies all the attributes present in the entry by applying the same operation. * * @param entry the entry whise attributes to be modified * @param modOp the operation to be applied on all the attributes of the above entry * @return the modify operation's response * @throws LdapException in case of modify operation failure or timeout happens */ public ModifyResponse modify( Entry entry, ModificationOperation modOp ) throws LdapException { if ( entry == null ) { LOG.debug( "received a null entry for modification" ); throw new NullPointerException( "Entry to be modified cannot be null" ); } ModifyRequest modReq = new ModifyRequest( entry.getDn() ); Iterator<EntryAttribute> itr = entry.iterator(); while ( itr.hasNext() ) { modReq.addModification( itr.next(), modOp ); } return modify( modReq ); }
String msg = I18n.err( I18n.ERR_10020, entry.getDn().getName(), schemaName ); LOG.warn( msg ); throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, msg ); String msg = I18n.err( I18n.ERR_10021, entry.getDn().getName(), schemaName ); LOG.info( msg ); schema = schemaManager.getLoadedSchema( schemaName );
String msg = I18n.err( I18n.ERR_10018, entry.getDn().getName(), schemaName ); LOG.warn( msg ); throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, msg ); String msg = I18n.err( I18n.ERR_10019, entry.getDn().getName(), schemaName ); LOG.info( msg ); schema = schemaManager.getLoadedSchema( schemaName );
String msg = I18n.err( I18n.ERR_10016, entry.getDn().getName(), schemaName ); LOG.warn( msg ); throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, msg ); String msg = I18n.err( I18n.ERR_10017, entry.getDn().getName(), schemaName ); LOG.info( msg ); schema = schemaManager.getLoadedSchema( schemaName );
String msg = I18n.err( I18n.ERR_10013, entry.getDn().getName(), schemaName ); LOG.warn( msg ); throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, msg ); String msg = I18n.err( I18n.ERR_10014, entry.getDn().getName(), schemaName ); LOG.info( msg ); schema = schemaManager.getLoadedSchema( schemaName );
String msg = I18n.err( I18n.ERR_10022, entry.getDn().getName(), schemaName ); LOG.warn( msg ); throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, msg ); String msg = I18n.err( I18n.ERR_10023, entry.getDn().getName(), schemaName ); LOG.info( msg ); schema = schemaManager.getLoadedSchema( schemaName );
addReqCodec.setEntryDn( addRequest.getEntry().getDn() ); setControls( addRequest.getControls(), addReqCodec );
element.addAttribute( "dn", request.getEntry().getDn().getUpName() );
DN oldSuperior = ( DN ) entry.getDn().clone();