com.novell.ldap.LDAPConnection.getSchemaDN()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(90)

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

LDAPConnection.getSchemaDN介绍

[英]Retrieves the Distiguished Name (DN) for the schema advertised in the root DSE of the Directory Server.

The DN can be used with the methods fetchSchema and modify to retreive and extend schema definitions. The schema entry is located by reading subschemaSubentry attribute of the root DSE. This is equivalent to calling #getSchemaDN(String) with the DN parameter as an empty string: getSchemaDN("").
[中]检索目录服务器的根DSE中播发的架构的识别名称(DN)。
DN可以与fetchSchema和modify方法一起使用,以检索和扩展架构定义。模式条目通过读取根DSE的subschemaSubentry属性来定位。这相当于使用DN参数作为空字符串调用#getSchemaDN(String):getSchemaDN("")

代码示例

代码示例来源:origin: neo4j-contrib/neo4j-apoc-procedures

private LDAPSchema getSchema() throws LDAPException, UnsupportedEncodingException {
  LDAPSchema r = null;
  LDAPConnection lc = getConnection();
  r = lc.fetchSchema(lc.getSchemaDN());
  closeIt(lc);
  //op( r.toString());
  return r;
}

代码示例来源:origin: com.novell.ldap/jldap

/**
 * Retrieves the Distiguished Name (DN) for the schema advertised in the
 * root DSE of the Directory Server.
 *
 * <p>The DN can be used with the methods fetchSchema and modify to retreive
 * and extend schema definitions.  The schema entry is located by reading
 * subschemaSubentry attribute of the root DSE.  This is equivalent to
 * calling {@link #getSchemaDN(String) } with the DN parameter as an empty
 * string: <code>getSchemaDN("")</code>.
 * </p>
 *
 *  @return     Distinguished Name of a schema entry in effect for the
 *              Directory.
 *  @exception LDAPException     This exception occurs if the schema DN
 * cannot be retrieved, or if the subschemaSubentry attribute associated
 * with the root DSE contains multiple values.
 *
 *  @see #fetchSchema
 *  @see #modify
 */
public String getSchemaDN() throws LDAPException {
  return getSchemaDN("");
}

代码示例来源:origin: com.novell.ldap/jldap

/**
 * Retrieves the DN for the schema at the root DSE of the Directory Server.
 * @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#getSchemaDN()">
    com.novell.ldap.LDAPConnection.getSchemaDN()</a>
 */
public String getSchemaDN()
    throws LDAPException
{
  try{
    return conn.getSchemaDN();
  }
  catch (com.novell.ldap.LDAPException novellException){
    throw new LDAPException(novellException);
  }
}

代码示例来源:origin: com.novell.ldap/jldap

/**
   * Retrieves the DN of the schema associated with a particular entry in
   * the directory.
   * @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#getSchemaDN(java.lang.String)">
      com.novell.ldap.LDAPConnection.getSchemaDN(String)</a>
   */
  public String getSchemaDN(String entryDN)
      throws LDAPException
  {
    try{
      return conn.getSchemaDN(entryDN);
    }
    catch (com.novell.ldap.LDAPException novellException){
      throw new LDAPException(novellException);
    }
  }
}

相关文章