Tabnine Logo
RenameOperationContext.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.directory.server.core.api.interceptor.context.RenameOperationContext
constructor

Best Java code snippets using org.apache.directory.server.core.api.interceptor.context.RenameOperationContext.<init> (Showing top 5 results out of 315)

origin: org.apache.directory.server/apacheds-core-shared

/**
 * {@inheritDoc}
 */
@Override
public void rename( Dn dn, Rdn newRdn, boolean deleteOldRdn, LogChange log ) throws LdapException
{
  RenameOperationContext renameContext = new RenameOperationContext( this, dn, newRdn, deleteOldRdn );
  renameContext.setLogChange( log );
  OperationManager operationManager = directoryService.getOperationManager();
  operationManager.rename( renameContext );
}
origin: org.apache.directory.server/apacheds-core-shared

/**
 * {@inheritDoc}
 */
@Override
public void rename( Dn dn, Rdn newRdn, boolean deleteOldRdn, boolean ignoreReferral, LogChange log )
  throws LdapException
{
  OperationManager operationManager = directoryService.getOperationManager();
  RenameOperationContext renameContext = new RenameOperationContext( this, dn, newRdn, deleteOldRdn );
  renameContext.setLogChange( log );
  setReferralHandling( renameContext, ignoreReferral );
  operationManager.rename( renameContext );
}
origin: org.apache.directory.server/apacheds-core-shared

/**
 * {@inheritDoc}
 */
@Override
public void rename( ModifyDnRequest modifyDnRequest, LogChange log ) throws LdapException
{
  RenameOperationContext renameContext = new RenameOperationContext( this, modifyDnRequest );
  renameContext.setLogChange( log );
  OperationManager operationManager = directoryService.getOperationManager();
  try
  {
    operationManager.rename( renameContext );
  }
  catch ( LdapException e )
  {
    modifyDnRequest.getResultResponse().addAllControls( renameContext.getResponseControls() );
    throw e;
  }
  modifyDnRequest.getResultResponse().addAllControls( renameContext.getResponseControls() );
}
origin: org.apache.directory.server/apacheds-core-jndi

/**
 * Used to encapsulate [de]marshalling of controls before and after rename operations.
 * 
 * @param oldDn The old Dn
 * @param newRdn The new Rdn
 * @param delOldRdn If we should delete the old Rdn
 * @throws Exception If the rename failed
 */
protected void doRename( Dn oldDn, Rdn newRdn, boolean delOldRdn ) throws Exception
{
  // setup the op context and populate with request controls
  RenameOperationContext renameContext = new RenameOperationContext( session, oldDn, newRdn, delOldRdn );
  renameContext.addRequestControls( convertControls( true, requestControls ) );
  // Inject the referral handling into the operation context
  injectReferralControl( renameContext );
  // execute rename operation
  OperationManager operationManager = service.getOperationManager();
  operationManager.rename( renameContext );
  // clear the request controls and set the response controls
  requestControls = EMPTY_CONTROLS;
  responseControls = JndiUtils.toJndiControls( getDirectoryService().getLdapCodecService(),
    renameContext.getResponseControls() );
}
origin: org.apache.directory.server/apacheds-protocol-ldap

  localDn.getName(), remoteRdn.getName(), String.valueOf( deleteOldRdn ) );
RenameOperationContext renCtx = new RenameOperationContext( session, localDn, remoteRdn,
  deleteOldRdn );
renCtx.setReplEvent( true );
org.apache.directory.server.core.api.interceptor.contextRenameOperationContext<init>

Javadoc

Creates a new instance of RenameOperationContext.

Popular methods of RenameOperationContext

  • getDn
  • getEntry
  • getNewRdn
  • getDeleteOldRdn
  • getResponseControls
  • getTransaction
  • setModifiedEntry
  • addRequestControls
  • getModifiedEntry
  • getNewDn
  • getOriginalEntry
  • getPartition
  • getOriginalEntry,
  • getPartition,
  • getSession,
  • hasRequestControl,
  • ignoreReferral,
  • setChangeLogEvent,
  • setInterceptors,
  • setLogChange,
  • setReplEvent

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • CodeWhisperer alternatives
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