Tabnine Logo
RenameOperationContext.getTransaction
Code IndexAdd Tabnine to your IDE (free)

How to use
getTransaction
method
in
org.apache.directory.server.core.api.interceptor.context.RenameOperationContext

Best Java code snippets using org.apache.directory.server.core.api.interceptor.context.RenameOperationContext.getTransaction (Showing top 3 results out of 315)

origin: org.apache.directory.server/apacheds-ldif-partition

/**
 * {@inheritDoc}
 */
@Override
public void rename( RenameOperationContext renameContext ) throws LdapException
{
  synchronized ( lock )
  {
    super.rename( renameContext );
    dirty = true;
    rewritePartitionData( renameContext.getTransaction() );
  }
}
origin: org.apache.directory.server/apacheds-ldif-partition

/**
 * {@inheritDoc}
 */
public void rename( RenameOperationContext renameContext ) throws LdapException
{
  PartitionTxn partitionTxn = renameContext.getTransaction(); 
  Dn oldDn = renameContext.getDn();
  String entryId = getEntryId( partitionTxn, oldDn );
  // Create the new entry
  super.rename( renameContext );
  // Get the modified entry and store it in the context for post usage
  Dn newDn = oldDn.getParent().add( renameContext.getNewRdn() );
  Entry modifiedEntry = fetch( renameContext.getTransaction(), entryId, newDn );
  renameContext.setModifiedEntry( modifiedEntry );
  // Now move the potential children for the old entry
  // and remove the old entry
  try
  {
    entryMoved( partitionTxn, oldDn, modifiedEntry, entryId );
  }
  catch ( Exception e )
  {
    throw new LdapOperationErrorException( e.getMessage(), e );
  }
}
origin: org.apache.directory.server/apacheds-interceptors-subtree

searchOperationContext.setAliasDerefMode( AliasDerefMode.NEVER_DEREF_ALIASES );
searchOperationContext.setPartition( renameContext.getPartition() );
searchOperationContext.setTransaction( renameContext.getTransaction() );
  newModifyContext.setTransaction( renameContext.getTransaction() );
  nexus.modify( newModifyContext );
org.apache.directory.server.core.api.interceptor.contextRenameOperationContextgetTransaction

Popular methods of RenameOperationContext

  • getDn
  • getEntry
  • getNewRdn
  • <init>
    Creates a new instance of RenameOperationContext.
  • getDeleteOldRdn
  • getResponseControls
  • setModifiedEntry
  • addRequestControls
  • getModifiedEntry
  • getNewDn
  • getOriginalEntry
  • getPartition
  • getOriginalEntry,
  • getPartition,
  • getSession,
  • hasRequestControl,
  • ignoreReferral,
  • setChangeLogEvent,
  • setInterceptors,
  • setLogChange,
  • setReplEvent

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now