|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.ldap.LdapGenericObject
Implements a generic LDAP object to store the information requested from the LDAP server
Constructor Summary | |
LdapGenericObject()
Creates a new instance of LdapGenericObject |
|
LdapGenericObject(LdapContext context,
String name,
String base)
Creates a new instance of LdapGenericObject |
Method Summary | |
String |
getAbsoluteName()
Retrieves the absolute name of object, which is a combination of the base name and the relative name |
Vector |
getAttribute(String key)
Retrieves a single named attribute as a Vector of Strings |
Hashtable |
getAttributes()
Retrieves the attributes of the object as a HashTable containing Vectors for each attribute. |
String |
getBase()
Retrieves the base name of the object. |
String |
getName()
Retrieves the object's name relative to the base |
void |
setAttribute(Attribute attribute)
Add a attribute with its values to the generic object |
void |
setAttribute(String key,
NamingEnumeration values)
Add a attribute with its values to the generic object |
void |
setAttribute(String key,
Vector values)
Add a attribute with its values to the generic object |
void |
setAttributes(Attributes attributes)
Add attributes with their values to the generic object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LdapGenericObject()
public LdapGenericObject(LdapContext context, String name, String base)
context
- The javax.naming.ldap.LdapContext containig the requested dataname
- the name of the object relative to the basebase
- the base name of the objectMethod Detail |
public String getName()
public String getBase()
public String getAbsoluteName()
public Hashtable getAttributes()
public Vector getAttribute(String key)
key
- the name of attribute, eg. "cn"
public void setAttribute(String key, Vector values)
key
- The name of the attributevalues
- the Vector containing the values of the attribute represented as Stringspublic void setAttribute(String key, NamingEnumeration values) throws NamingException
key
- The name of the attributevalues
- the NamingEnumeration containing the values of the attribute represented as Strings
NamingException
- if a naming exception is encountered while attempting to retrieve the elements.
See javax.naming.NamingException and its subclasses for the possible naming exceptions.public void setAttribute(Attribute attribute) throws NamingException
attribute
- The javax.naming.directory.Attribute to add to the generic object
NamingException
- if a naming exception is encountered while attempting to retrieve the elements.
See javax.naming.NamingException and its subclasses for the possible naming exceptions.public void setAttributes(Attributes attributes) throws NamingException
attributes
- The javax.naming.directory.Attributes to add to the generic object
NamingException
- if a naming exception is encountered while attempting to retrieve the elements.
See javax.naming.NamingException and its subclasses for the possible naming exceptions.
|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |