/** * {@inheritDoc} */ @Override public AddRequest setEntryDn( Dn dn ) { entry.setDn( dn ); return this; }
/** * {@inheritDoc} */ @Override public AddRequest setEntryDn( Dn dn ) { entry.setDn( dn ); return this; }
/** * Set the Distinguished Name * * @param dn The Distinguished Name */ public void setDn( Dn dn ) { entryDn = dn; entry.setDn( dn ); }
/** * Set the Distinguished Name * * @param dn The Distinguished Name */ public void setDn( Dn dn ) { entryDn = dn; entry.setDn( dn ); }
/** * {@inheritDoc} */ @Override public AddRequest setEntryDn( Dn dn ) { entry.setDn( dn ); return this; }
/** * Set the Distinguished Name * * @param dn The Distinguished Name */ public void setDn( Dn dn ) { entryDn = dn; entry.setDn( dn ); }
public void setDn( Dn dn ) { clonedEntry.setDn( dn ); }
public void setDn( String dn ) throws LdapInvalidDnException { clonedEntry.setDn( dn ); }
/** * Sets the distinguished name of the entry object returned. * * @param objectName the Dn of the entry returned. */ @Override public void setObjectName( Dn objectName ) { if ( entry != null ) { entry.setDn( objectName ); } }
/** * * Creates a new instance of ServerSearchResult. * * @param dn Distinguished name for this result * @param serverEntry The associated entry */ public ServerSearchResult( Dn dn, Entry serverEntry ) { this.dn = dn; this.serverEntry = serverEntry; this.serverEntry.setDn( dn ); }
/** * * Creates a new instance of ServerSearchResult. * * @param dn Distinguished name for this result * @param serverEntry The associated entry * @param isRelative Tells if the name is relative to the target context */ public ServerSearchResult( Dn dn, Entry serverEntry, boolean isRelative ) { this.dn = dn; this.serverEntry = serverEntry; this.serverEntry.setDn( dn ); this.isRelative = isRelative; }
/** * Sets the distinguished name of the entry object returned. * * @param objectName the Dn of the entry returned. */ @Override public void setObjectName( Dn objectName ) { if ( entry != null ) { entry.setDn( objectName ); } }
/** * Sets the distinguished name of the entry object returned. * * @param objectName the Dn of the entry returned. */ @Override public void setObjectName( Dn objectName ) { if ( entry != null ) { entry.setDn( objectName ); } }
/** * Set the Distinguished Name * * @param dn The Distinguished Name * @throws LdapInvalidDnException If the Dn is invalid */ public void setDn( String dn ) throws LdapInvalidDnException { entryDn = new Dn( dn ); entry.setDn( entryDn ); }
/** * Set the Distinguished Name * * @param dn The Distinguished Name * @throws LdapInvalidDnException If the Dn is invalid */ public void setDn( String dn ) throws LdapInvalidDnException { entryDn = new Dn( dn ); entry.setDn( entryDn ); }
/** * Set the Distinguished Name * * @param dn The Distinguished Name * @throws LdapInvalidDnException If the Dn is invalid */ public void setDn( String dn ) throws LdapInvalidDnException { entryDn = new Dn( dn ); entry.setDn( entryDn ); }
/** * Create a new Entry * * @param ldif The String representing the attributes, as a LDIF file * @param dn The Dn for this new entry */ public Entry newEntry( String ldif, String dn ) { try { Entry entry = readEntry( ldif ); Dn newDn = getDnFactory().create( dn ); entry.setDn( newDn ); // TODO Let's get rid of this Attributes crap Entry serverEntry = new DefaultEntry( schemaManager, entry ); return serverEntry; } catch ( Exception e ) { LOG.error( I18n.err( I18n.ERR_78, ldif, dn ) ); // do nothing return null; } }
/** * {@inheritDoc} */ @Override public Entry lookup( LookupOperationContext lookupContext ) throws LdapException { Dn dn = lookupContext.getDn(); if ( dn.getNormName().equals( subschemaSubentryDn.getNormName() ) ) { Entry serverEntry = SchemaService.getSubschemaEntry( directoryService, lookupContext ); serverEntry.setDn( dn ); return serverEntry; } Entry entry = next( lookupContext ); denormalizeEntryOpAttrs( entry ); // Add the nbChildren/nbSubordinates attributes if required processSubordinates( lookupContext, lookupContext.getReturningAttributes(), lookupContext.isAllOperationalAttributes(), entry ); return entry; }
/** * {@inheritDoc} */ @Override public void moveAndRename( MoveAndRenameOperationContext moveAndRenameContext ) throws LdapException { Entry modifiedEntry = moveAndRenameContext.getModifiedEntry(); modifiedEntry.put( SchemaConstants.MODIFIERS_NAME_AT, getPrincipal( moveAndRenameContext ).getName() ); modifiedEntry.put( SchemaConstants.MODIFY_TIMESTAMP_AT, DateUtils.getGeneralizedTime() ); modifiedEntry.setDn( moveAndRenameContext.getNewDn() ); Attribute csnAt = new DefaultAttribute( directoryService.getAtProvider().getEntryCSN(), directoryService .getCSN().toString() ); modifiedEntry.put( csnAt ); moveAndRenameContext.setModifiedEntry( modifiedEntry ); next( moveAndRenameContext ); }
/** * {@inheritDoc} */ @Override public void move( MoveOperationContext moveContext ) throws LdapException { Entry modifiedEntry = moveContext.getOriginalEntry().clone(); modifiedEntry.put( SchemaConstants.MODIFIERS_NAME_AT, getPrincipal( moveContext ).getName() ); modifiedEntry.put( SchemaConstants.MODIFY_TIMESTAMP_AT, DateUtils.getGeneralizedTime() ); Attribute csnAt = new DefaultAttribute( directoryService.getAtProvider().getEntryCSN(), directoryService .getCSN().toString() ); modifiedEntry.put( csnAt ); modifiedEntry.setDn( moveContext.getNewDn() ); moveContext.setModifiedEntry( modifiedEntry ); next( moveContext ); }