@Override public void delete( DeleteOperationContext deleteContext ) throws LdapException { // insert a new CSN into the entry, this is for replication Entry entry = deleteContext.getEntry(); Attribute csnAt = new DefaultAttribute( directoryService.getAtProvider().getEntryCSN(), directoryService .getCSN().toString() ); entry.put( csnAt ); next( deleteContext ); }
MANDATORY_ENTRY_ATOP_MAP.put( uuidAt.getName(), new AttributeTypeOptions( uuidAt ) ); AttributeType csnAt = directoryService.getAtProvider().getEntryCSN(); MANDATORY_ENTRY_ATOP_MAP.put( csnAt.getName(), new AttributeTypeOptions( csnAt ) );
if ( attributeType.equals( directoryService.getAtProvider().getEntryCSN() ) ) Attribute attribute = new DefaultAttribute( directoryService.getAtProvider().getEntryCSN(), csn ); Modification updatedCsn = new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE, attribute ); mods.add( updatedCsn );
/** * {@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 ); }
Value contexCsnValue = new Value( dirService.getAtProvider().getEntryCSN(), contextCsn );
if ( !checkAddOperationalAttribute( isAdmin, entry, directoryService.getAtProvider().getEntryCSN() ) ) entry.put( directoryService.getAtProvider().getEntryCSN(), directoryService.getCSN().toString() );
/** * {@inheritDoc} */ @Override public void rename( RenameOperationContext renameContext ) throws LdapException { Entry entry = ( ( ClonedServerEntry ) renameContext.getEntry() ).getClonedEntry(); entry.put( SchemaConstants.MODIFIERS_NAME_AT, getPrincipal( renameContext ).getName() ); entry.put( SchemaConstants.MODIFY_TIMESTAMP_AT, DateUtils.getGeneralizedTime() ); Entry modifiedEntry = renameContext.getOriginalEntry().clone(); modifiedEntry.put( SchemaConstants.MODIFIERS_NAME_AT, getPrincipal( renameContext ).getName() ); modifiedEntry.put( SchemaConstants.MODIFY_TIMESTAMP_AT, DateUtils.getGeneralizedTime() ); Attribute csnAt = new DefaultAttribute( directoryService.getAtProvider().getEntryCSN(), directoryService .getCSN().toString() ); modifiedEntry.put( csnAt ); renameContext.setModifiedEntry( modifiedEntry ); next( renameContext ); }
.getEntryCSN(), csnVal ); mods.add( csnMod ); ModifyOperationContext bindModCtx = new ModifyOperationContext( adminSession ); .getEntryCSN(), csnVal ); mods.add( csnMod );
.getEntryCSN(), csnVal ); mods.add( csnMod );