|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.emframe.dev.MappingObject
Class to map LDAP classes and attributes to NDAP classes and attributes and vice-versa.
Constructor Summary | |
MappingObject(ObjectEntry ncpServerOE,
java.lang.String inipAddress,
java.lang.String[] allNDSClassNames,
java.lang.String[] allNDSAttrNames)
Constructs a Mapping Object. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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.
NamespaceException
SPIException
Method Detail |
public int getLDAPClearPort()
public java.lang.String getLDAPIpAddress()
public int getLDAPSSLPort()
public java.lang.String LDAPAttributeToNDS(java.lang.String LDAPAttributeName)
LDAPAttributeName
- String containing the LDAP attribute name
public java.lang.String LDAPClassToNDS(java.lang.String LDAPClassName)
LDAPClassName
- String containing the LDAP class name
public 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 format
public 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 not
public java.lang.String[] NDSAttributeToLDAP(java.lang.String NDSAttributeName)
NDSAttributeName
- String containing the NDS attribute name
public java.lang.String[] NDSClassToLDAP(java.lang.String NDSClassName)
NDSClassName
- String containing the NDS class name
public java.lang.String NDSNameToLDAPName(ObjectEntry ndsOE)
ndsOE
- ObjectEntry containing a valid object in NDS
public 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"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |