public class MappingObject
extends java.lang.Object
| Constructor and Description |
|---|
MappingObject(ObjectEntry ncpServerOE,
java.lang.String inipAddress,
java.lang.String[] allNDSClassNames,
java.lang.String[] allNDSAttrNames)
Constructs a Mapping Object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLDAPClearPort()
Get the clear TCP port associated with the LDAP server used to create
the mapping tables.
|
java.lang.String |
getLDAPIpAddress()
Get the LDAP ip address that was used to create mapping tables.
|
int |
getLDAPSSLPort()
Get the SSL port associated with the LDAP server used to create
the mapping tables.
|
java.lang.String |
LDAPAttributeToNDS(java.lang.String LDAPAttributeName)
Given the name of an LDAP attribute, return the corresponding NDS
attribute.
|
java.lang.String |
LDAPClassToNDS(java.lang.String LDAPClassName)
Given the name of an LDAP class, return the corresponding NDS
class.
|
static java.lang.String |
LDAPNameToNDSName(java.lang.String ldapDN_s)
A static method to parse and convert a ldap name to a ndap name.
|
java.lang.String |
LDAPNameToNDSName(java.lang.String ldapDN_s,
boolean typed,
boolean addTreeName)
Given the LDAP name, return the corresponding NDS name in simple dot
format.
|
java.lang.String[] |
NDSAttributeToLDAP(java.lang.String NDSAttributeName)
Given the name of an NDS attribute, return the corresponding LDAP attribute
or attributes.
|
java.lang.String[] |
NDSClassToLDAP(java.lang.String NDSClassName)
Given the name of an NDS class, return the corresponding LDAP class
or classes.
|
java.lang.String |
NDSNameToLDAPName(ObjectEntry ndsOE)
Given an ObjectEntry, return the corresponding LDAP name as a string.
|
java.lang.String |
NDSNameToLDAPName(java.lang.String NDSName_s)
Given the fully typed NDS, return the corresponding LDAP name.
|
public MappingObject(ObjectEntry ncpServerOE, java.lang.String inipAddress, java.lang.String[] allNDSClassNames, java.lang.String[] allNDSAttrNames) throws NamespaceException, SPIException
ncpServerOE - ObjectEntry to the NCP server which is used to get the LDAP server object and LDAP group
object where the actual mapping attributes are stored.inipAddress - String containing the ip address associated with this NCP server object. This value may be
null if not known. Then null will be returned if it ever asked for.allNDSClassNames - String array containing all NDS classes. This is to help so full mapping tables can be
built. The NDS Mapping attribute on the LDAP group object is not complete. We use an algorithm to convert
NDS class/attr names to LDAP names and put the "unmapped" names in the table.allNDSAttrNames - - String array containing all NDS attributes. This is to help so full mapping tables can
be built.NamespaceExceptionSPIExceptionpublic java.lang.String getLDAPIpAddress()
public int getLDAPClearPort()
public int getLDAPSSLPort()
public java.lang.String LDAPClassToNDS(java.lang.String LDAPClassName)
LDAPClassName - String containing the LDAP class namepublic java.lang.String LDAPAttributeToNDS(java.lang.String LDAPAttributeName)
LDAPAttributeName - String containing the LDAP attribute namepublic java.lang.String[] NDSClassToLDAP(java.lang.String NDSClassName)
NDSClassName - String containing the NDS class namepublic java.lang.String[] NDSAttributeToLDAP(java.lang.String NDSAttributeName)
NDSAttributeName - String containing the NDS attribute namepublic java.lang.String LDAPNameToNDSName(java.lang.String ldapDN_s,
boolean typed,
boolean addTreeName)
ldapDN_s - String containing a full LDAP DN to convert to an NDAP DNtyped - boolean: if true the method adds NDAP types to the returned NDAP name, false means no typesaddTreeName - boolean: if true adds the tree name to the beginning, false does notpublic static java.lang.String LDAPNameToNDSName(java.lang.String ldapDN_s)
ldapDN_s - String containing the full LDAP DN to convert to a NDAP DN in "." only formatpublic java.lang.String NDSNameToLDAPName(ObjectEntry ndsOE)
ndsOE - ObjectEntry containing a valid object in NDSpublic java.lang.String NDSNameToLDAPName(java.lang.String NDSName_s)
NDSName_s - String containing a fully typed NDS name in "." format.
It does not include the treeName as part of the name.
Example: "CN=admin.OU=provo.O=novell"
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.