本文整理了Java中com.unboundid.ldap.sdk.DN.getParentString()
方法的一些代码示例,展示了DN.getParentString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DN.getParentString()
方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.DN
类名称: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
/**
* Retrieves the parent DN for this entry as a string.
*
* @return The parent DN for this entry as a string, or {@code null} if there
* is no parent.
*
* @throws LDAPException If the DN string cannot be parsed as a valid DN.
*/
public String getParentDNString()
throws LDAPException
{
return getParsedDN().getParentString();
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Retrieves the parent DN for this entry as a string.
*
* @return The parent DN for this entry as a string, or {@code null} if there
* is no parent.
*
* @throws LDAPException If the DN string cannot be parsed as a valid DN.
*/
public String getParentDNString()
throws LDAPException
{
return getParsedDN().getParentString();
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Retrieves the string representation of the DN that is the parent for the
* DN with the provided string representation. Note that neither the null DN
* nor DNs consisting of a single RDN component will be considered to have
* parent DNs.
*
* @param s The string representation of the DN for which to retrieve the
* parent. It must not be {@code null}.
*
* @return The DN that is the parent for this DN, or {@code null} if there
* is no parent.
*
* @throws LDAPException If the provided string cannot be parsed as a DN.
*/
public static String getParentString(final String s)
throws LDAPException
{
return new DN(s).getParentString();
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Retrieves the string representation of the DN that is the parent for the
* DN with the provided string representation. Note that neither the null DN
* nor DNs consisting of a single RDN component will be considered to have
* parent DNs.
*
* @param s The string representation of the DN for which to retrieve the
* parent. It must not be {@code null}.
*
* @return The DN that is the parent for this DN, or {@code null} if there
* is no parent.
*
* @throws LDAPException If the provided string cannot be parsed as a DN.
*/
public static String getParentString(final String s)
throws LDAPException
{
return new DN(s).getParentString();
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
ResultCode.NO_SUCH_OBJECT_INT_VALUE, getMatchedDNString(dn),
ERR_MEM_HANDLER_ADD_MISSING_PARENT.get(request.getDN(),
dn.getParentString()),
null));
内容来源于网络,如有侵权,请联系作者删除!