Codota Logo
DeleteRequest.getDn
Code IndexAdd Codota to your IDE (free)

How to use
getDn
method
in
org.ldaptive.DeleteRequest

Best Java code snippets using org.ldaptive.DeleteRequest.getDn (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.ldaptive/ldaptive

@Override
public Response<Void> delete(final DeleteRequest request)
 throws LdapException
{
 Response<Void> response = null;
 LdapContext ctx = null;
 try {
  try {
   ctx = initializeContext(request);
   ctx.destroySubcontext(new LdapName(request.getDn()));
   response = createResponse(request, null, ResultCode.SUCCESS, null, ctx);
  } finally {
   if (ctx != null) {
    ctx.close();
   }
  }
 } catch (ReferralException e) {
  final String[] refUrls = e.getReferralInfo() != null ? new String[] {(String) e.getReferralInfo()} : null;
  response = createResponse(request, null, ResultCode.REFERRAL, refUrls, ctx);
 } catch (NamingException e) {
  processNamingException(request, e, null, ctx);
 }
 return response;
}
origin: com.floragunn/ldaptive

@Override
public Response<Void> delete(final DeleteRequest request)
 throws LdapException
{
 Response<Void> response = null;
 LdapContext ctx = null;
 try {
  try {
   ctx = initializeContext(request);
   ctx.destroySubcontext(new LdapName(request.getDn()));
   response = createResponse(request, null, ResultCode.SUCCESS, null, ctx);
  } finally {
   if (ctx != null) {
    ctx.close();
   }
  }
 } catch (ReferralException e) {
  final String[] refUrls = e.getReferralInfo() != null ? new String[] {(String) e.getReferralInfo()} : null;
  response = createResponse(request, null, ResultCode.REFERRAL, refUrls, ctx);
 } catch (NamingException e) {
  processNamingException(request, e, null, ctx);
 }
 return response;
}
origin: vt-middleware/ldaptive

@Override
public Response<Void> delete(final DeleteRequest request)
 throws LdapException
{
 Response<Void> response = null;
 LdapContext ctx = null;
 try {
  try {
   ctx = initializeContext(request);
   ctx.destroySubcontext(new LdapName(request.getDn()));
   response = createResponse(request, null, ResultCode.SUCCESS, null, ctx);
  } finally {
   if (ctx != null) {
    ctx.close();
   }
  }
 } catch (ReferralException e) {
  final String[] refUrls = e.getReferralInfo() != null ? new String[] {(String) e.getReferralInfo()} : null;
  response = createResponse(request, null, ResultCode.REFERRAL, refUrls, ctx);
 } catch (NamingException e) {
  processNamingException(request, e, null, ctx);
 }
 return response;
}
origin: vt-middleware/ldaptive

@Override
protected DeleteRequest createReferralRequest(final DeleteRequest request, final LdapURL url)
{
 final DeleteRequest referralRequest = new DeleteRequest();
 referralRequest.setControls(request.getControls());
 referralRequest.setIntermediateResponseHandlers(request.getIntermediateResponseHandlers());
 referralRequest.setReferralHandler(
  new DeleteReferralHandler(getReferralLimit(), getReferralDepth() + 1, getReferralConnectionFactory()));
 if (!url.getEntry().isDefaultBaseDn()) {
  referralRequest.setDn(url.getEntry().getBaseDn());
 } else {
  referralRequest.setDn(request.getDn());
 }
 return referralRequest;
}
origin: org.ldaptive/ldaptive-apache

@Override
public Response<Void> delete(final DeleteRequest request)
 throws LdapException
{
 Response<Void> response = null;
 try {
  final DeleteRequestImpl dri = new DeleteRequestImpl();
  if (request.getControls() != null) {
   dri.addAllControls(config.getControlProcessor().processRequestControls(request.getControls()));
  }
  dri.setName(new Dn(request.getDn()));
  final DeleteResponse dr = connection.delete(dri);
  throwOperationException(request, dr);
  response = createResponse(request, null, dr);
 } catch (LdapOperationException e) {
  processLdapOperationException(e);
 } catch (org.apache.directory.api.ldap.model.exception.LdapException e) {
  processLdapException(e);
 }
 return response;
}
origin: org.ldaptive/ldaptive

@Override
protected DeleteRequest createReferralRequest(final DeleteRequest request, final LdapURL url)
{
 final DeleteRequest referralRequest = new DeleteRequest();
 referralRequest.setControls(request.getControls());
 referralRequest.setIntermediateResponseHandlers(request.getIntermediateResponseHandlers());
 referralRequest.setReferralHandler(
  new DeleteReferralHandler(getReferralLimit(), getReferralDepth() + 1, getReferralConnectionFactory()));
 if (!url.getEntry().isDefaultBaseDn()) {
  referralRequest.setDn(url.getEntry().getBaseDn());
 } else {
  referralRequest.setDn(request.getDn());
 }
 return referralRequest;
}
origin: com.floragunn/ldaptive

@Override
protected DeleteRequest createReferralRequest(final DeleteRequest request, final LdapURL url)
{
 final DeleteRequest referralRequest = new DeleteRequest();
 referralRequest.setControls(request.getControls());
 referralRequest.setIntermediateResponseHandlers(request.getIntermediateResponseHandlers());
 referralRequest.setReferralHandler(
  new DeleteReferralHandler(getReferralLimit(), getReferralDepth() + 1, getReferralConnectionFactory()));
 if (!url.getEntry().isDefaultBaseDn()) {
  referralRequest.setDn(url.getEntry().getBaseDn());
 } else {
  referralRequest.setDn(request.getDn());
 }
 return referralRequest;
}
org.ldaptiveDeleteRequestgetDn

Javadoc

Returns the DN to delete.

Popular methods of DeleteRequest

  • <init>
    Creates a new delete request.
  • getControls
  • setReferralHandler
  • getIntermediateResponseHandlers
  • getReferralHandler
  • setControls
  • setDn
    Sets the DN to delete.
  • setIntermediateResponseHandlers

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • 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
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now