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

How to use
getResponseControls
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.getResponseControls (Showing top 2 results out of 315)

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() );
}
org.apache.directory.server.core.api.interceptor.contextRenameOperationContextgetResponseControls

Popular methods of RenameOperationContext

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

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Sublime Text plugins
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