com.unboundid.ldap.sdk.DN.toString()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中com.unboundid.ldap.sdk.DN.toString()方法的一些代码示例,展示了DN.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DN.toString()方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.DN
类名称:DN
方法名:toString

DN.toString介绍

[英]Retrieves a string representation of this DN.
[中]检索此DN的字符串表示形式。

代码示例

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Appends a string representation of this DN to the provided buffer.
  3. *
  4. * @param buffer The buffer to which to append the string representation of
  5. * this DN.
  6. */
  7. public void toString(final StringBuilder buffer)
  8. {
  9. toString(buffer, false);
  10. }

代码示例来源:origin: com.nimbusds/common

  1. /**
  2. * Creates a new distinguished name (DN) identity.
  3. *
  4. * @param dn The DN, must not be {@code null}.
  5. */
  6. public DNIdentity(final DN dn) {
  7. super(dn.toString());
  8. this.dn = dn;
  9. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Appends a string representation of this DN to the provided buffer.
  3. *
  4. * @param buffer The buffer to which to append the string representation of
  5. * this DN.
  6. */
  7. public void toString(final StringBuilder buffer)
  8. {
  9. toString(buffer, false);
  10. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Specifies the base DN for this search request.
  3. *
  4. * @param baseDN The base DN for this search request. It must not be
  5. * {@code null}.
  6. */
  7. public void setBaseDN(final DN baseDN)
  8. {
  9. ensureNotNull(baseDN);
  10. this.baseDN = baseDN.toString();
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Specifies the DN of the entry in which the comparison is to be performed.
  3. *
  4. * @param dn The DN of the entry in which the comparison is to be performed.
  5. * It must not be {@code null}.
  6. */
  7. public void setDN(final DN dn)
  8. {
  9. ensureNotNull(dn);
  10. this.dn = dn.toString();
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Creates a search request containing the base DN, scope, filter, and
  3. * requested attributes from this LDAP URL.
  4. *
  5. * @return The search request created from the base DN, scope, filter, and
  6. * requested attributes from this LDAP URL.
  7. */
  8. public SearchRequest toSearchRequest()
  9. {
  10. return new SearchRequest(baseDN.toString(), scope, filter, attributes);
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Specifies the base DN for this search request.
  3. *
  4. * @param baseDN The base DN for this search request. It must not be
  5. * {@code null}.
  6. */
  7. public void setBaseDN(final DN baseDN)
  8. {
  9. ensureNotNull(baseDN);
  10. this.baseDN = baseDN.toString();
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Creates a new delete request with the provided DN.
  3. *
  4. * @param dn The DN of the entry to delete. It must not be {@code null}.
  5. */
  6. public DeleteRequest(final DN dn)
  7. {
  8. super(null);
  9. ensureNotNull(dn);
  10. this.dn = dn.toString();
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Specifies the current DN of the entry to move/rename.
  3. *
  4. * @param dn The current DN of the entry to move/rename. It must not be
  5. * {@code null}.
  6. */
  7. public void setDN(final DN dn)
  8. {
  9. ensureNotNull(dn);
  10. this.dn = dn.toString();
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Specifies the DN of the entry to delete.
  3. *
  4. * @param dn The DN of the entry to delete. It must not be {@code null}.
  5. */
  6. public void setDN(final DN dn)
  7. {
  8. ensureNotNull(dn);
  9. this.dn = dn.toString();
  10. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Specifies the DN for this add request.
  3. *
  4. * @param dn The DN for this add request. It must not be {@code null}.
  5. */
  6. public void setDN(final DN dn)
  7. {
  8. ensureNotNull(dn);
  9. this.dn = dn.toString();
  10. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Specifies the DN of the entry in which the comparison is to be performed.
  3. *
  4. * @param dn The DN of the entry in which the comparison is to be performed.
  5. * It must not be {@code null}.
  6. */
  7. public void setDN(final DN dn)
  8. {
  9. ensureNotNull(dn);
  10. this.dn = dn.toString();
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Specifies the DN for this add request.
  3. *
  4. * @param dn The DN for this add request. It must not be {@code null}.
  5. */
  6. public void setDN(final DN dn)
  7. {
  8. ensureNotNull(dn);
  9. this.dn = dn.toString();
  10. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Specifies the DN for this entry.
  3. *
  4. * @param dn The DN for this entry. It must not be {@code null}.
  5. */
  6. public void setDN(final DN dn)
  7. {
  8. ensureNotNull(dn);
  9. parsedDN = dn;
  10. this.dn = parsedDN.toString();
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Creates a search request containing the base DN, scope, filter, and
  3. * requested attributes from this LDAP URL.
  4. *
  5. * @return The search request created from the base DN, scope, filter, and
  6. * requested attributes from this LDAP URL.
  7. */
  8. public SearchRequest toSearchRequest()
  9. {
  10. return new SearchRequest(baseDN.toString(), scope, filter, attributes);
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Specifies the DN for this entry.
  3. *
  4. * @param dn The DN for this entry. It must not be {@code null}.
  5. */
  6. public void setDN(final DN dn)
  7. {
  8. ensureNotNull(dn);
  9. parsedDN = dn;
  10. this.dn = parsedDN.toString();
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Specifies the DN of the entry to modify.
  3. *
  4. * @param dn The DN of the entry to modify. It must not be {@code null}.
  5. */
  6. public void setDN(final DN dn)
  7. {
  8. ensureNotNull(dn);
  9. this.dn = dn.toString();
  10. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Creates a new delete request with the provided DN.
  3. *
  4. * @param dn The DN of the entry to delete. It must not be {@code null}.
  5. */
  6. public DeleteRequest(final DN dn)
  7. {
  8. super(null);
  9. ensureNotNull(dn);
  10. this.dn = dn.toString();
  11. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Specifies the DN of the entry to delete.
  3. *
  4. * @param dn The DN of the entry to delete. It must not be {@code null}.
  5. */
  6. public void setDN(final DN dn)
  7. {
  8. ensureNotNull(dn);
  9. this.dn = dn.toString();
  10. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public void doPostDeleteProcessing(final DN entryDN)
  5. {
  6. wrapOut(0, 79, INFO_MOVE_SUBTREE_DELETE_SUCCESSFUL.get(entryDN.toString()));
  7. }

相关文章