PartitionTxn partitionTxn = modifyContext.getTransaction(); String id = getEntryId( partitionTxn, modifyContext.getDn() ); super.modify( modifyContext.getTransaction(), modifyContext.getDn(), modifyContext.getModItems().toArray( new Modification[] {} ) ); Entry modifiedEntry = fetch( modifyContext.getTransaction(), id, modifyContext.getDn() ); modifyContext.setAlteredEntry( modifiedEntry );
/** * {@inheritDoc} */ @Override public void modify( ModifyOperationContext modifyContext ) throws LdapException { PartitionTxn partitionTxn = modifyContext.getTransaction(); synchronized ( lock ) { try { Entry modifiedEntry = super.modify( partitionTxn, modifyContext.getDn(), modifyContext.getModItems().toArray( new Modification[] {} ) ); // Remove the EntryDN modifiedEntry.removeAttributes( entryDnAT ); modifyContext.setAlteredEntry( modifiedEntry ); } catch ( Exception e ) { throw new LdapOperationException( e.getMessage(), e ); } dirty = true; rewritePartitionData( partitionTxn ); } }
KerberosAttribute.KRB5_KEY_VERSION_NUMBER_AT ); lookupContext.setPartition( modContext.getPartition() ); lookupContext.setTransaction( modContext.getTransaction() );
/** * {@inheritDoc} */ public void modify( ModifyOperationContext modifyContext ) throws LdapException { Entry entry = modifyContext.getEntry(); if ( entry == null ) { LookupOperationContext lookupCtx = new LookupOperationContext( modifyContext.getSession(), modifyContext.getDn() ); lookupCtx.setPartition( this ); lookupCtx.setTransaction( modifyContext.getTransaction() ); entry = wrapped.lookup( lookupCtx ); modifyContext.setEntry( entry ); } Entry targetEntry = SchemaUtils.getTargetEntry( modifyContext.getModItems(), entry ); boolean cascade = modifyContext.hasRequestControl( Cascade.OID ); boolean hasModification = synchronizer.modify( modifyContext, targetEntry, cascade ); if ( hasModification ) { wrapped.modify( modifyContext ); } if ( !modifyContext.getDn().equals( schemaModificationDN ) ) { updateSchemaModificationAttributes( modifyContext ); } }
searchOperationContext.setAliasDerefMode( AliasDerefMode.NEVER_DEREF_ALIASES ); searchOperationContext.setPartition( modifyContext.getPartition() ); searchOperationContext.setTransaction( modifyContext.getTransaction() ); getOperationalModsForRemove( dn, candidate ) ); newModifyContext.setPartition( modifyContext.getPartition() ); newModifyContext.setTransaction( modifyContext.getTransaction() ); searchOperationContext.setAliasDerefMode( AliasDerefMode.NEVER_DEREF_ALIASES ); searchOperationContext.setPartition( modifyContext.getPartition() ); searchOperationContext.setTransaction( modifyContext.getTransaction() ); newModifyContext.setTransaction( modifyContext.getTransaction() ); nexus.modify( newModifyContext );
SchemaConstants.ALL_ATTRIBUTES_ARRAY ); lookupContext.setPartition( modifyContext.getPartition() ); lookupContext.setTransaction( modifyContext.getTransaction() );