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

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

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

DN.getParentString介绍

[英]Retrieves the string representation of the DN that is the parent for this DN. Note that neither the null DN nor DNs consisting of a single RDN component will be considered to have parent DNs.
[中]检索作为此DN父级的DN的字符串表示形式。请注意,null DN和由单个RDN组件组成的DNs都不会被视为具有父DNs。

代码示例

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

  1. /**
  2. * Retrieves the parent DN for this entry as a string.
  3. *
  4. * @return The parent DN for this entry as a string, or {@code null} if there
  5. * is no parent.
  6. *
  7. * @throws LDAPException If the DN string cannot be parsed as a valid DN.
  8. */
  9. public String getParentDNString()
  10. throws LDAPException
  11. {
  12. return getParsedDN().getParentString();
  13. }

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

  1. /**
  2. * Retrieves the parent DN for this entry as a string.
  3. *
  4. * @return The parent DN for this entry as a string, or {@code null} if there
  5. * is no parent.
  6. *
  7. * @throws LDAPException If the DN string cannot be parsed as a valid DN.
  8. */
  9. public String getParentDNString()
  10. throws LDAPException
  11. {
  12. return getParsedDN().getParentString();
  13. }

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

  1. /**
  2. * Retrieves the string representation of the DN that is the parent for the
  3. * DN with the provided string representation. Note that neither the null DN
  4. * nor DNs consisting of a single RDN component will be considered to have
  5. * parent DNs.
  6. *
  7. * @param s The string representation of the DN for which to retrieve the
  8. * parent. It must not be {@code null}.
  9. *
  10. * @return The DN that is the parent for this DN, or {@code null} if there
  11. * is no parent.
  12. *
  13. * @throws LDAPException If the provided string cannot be parsed as a DN.
  14. */
  15. public static String getParentString(final String s)
  16. throws LDAPException
  17. {
  18. return new DN(s).getParentString();
  19. }

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

  1. /**
  2. * Retrieves the string representation of the DN that is the parent for the
  3. * DN with the provided string representation. Note that neither the null DN
  4. * nor DNs consisting of a single RDN component will be considered to have
  5. * parent DNs.
  6. *
  7. * @param s The string representation of the DN for which to retrieve the
  8. * parent. It must not be {@code null}.
  9. *
  10. * @return The DN that is the parent for this DN, or {@code null} if there
  11. * is no parent.
  12. *
  13. * @throws LDAPException If the provided string cannot be parsed as a DN.
  14. */
  15. public static String getParentString(final String s)
  16. throws LDAPException
  17. {
  18. return new DN(s).getParentString();
  19. }

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

  1. ResultCode.NO_SUCH_OBJECT_INT_VALUE, getMatchedDNString(dn),
  2. ERR_MEM_HANDLER_ADD_MISSING_PARENT.get(request.getDN(),
  3. dn.getParentString()),
  4. null));

相关文章