|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.isam.exehda.services.cib.Ldap
Field Summary | |
(package private) javax.naming.directory.DirContext |
dir
|
(package private) java.lang.String |
password
|
(package private) java.lang.String |
serverAddress
|
(package private) java.lang.String |
user
|
Constructor Summary | |
Ldap(java.lang.String serverAddress,
java.lang.String user,
java.lang.String password)
Creates a new instance of Ldap |
Method Summary | |
void |
connect()
sets up the connection to the ldap server, using the server address, user and password defined in the constructor |
void |
createCell()
|
void |
createIfNotExists(java.lang.String node)
creates a new resource in the ldap server, if it doesn't exist already |
void |
disconnect()
disconnects from the ldap server. |
java.util.List |
findByName(java.lang.String name,
java.lang.String nameSpace)
finds the resources in the ldap server that have a given name and that are inside a given namespace |
java.util.List |
findByNameIsam(java.lang.String name,
java.lang.String nameSpace)
finds the resources in the ldap server that have a given name and that are inside a given namespace. |
java.util.List |
findBySearchString(java.lang.String searchString)
finds resources in the ldap server using the given ldap search string |
java.util.List |
findBySearchStringAndReturnAllAttributes(java.lang.String searchString)
finds resources in the ldap server using the given ldap search string |
java.util.List |
findBySearchStringAndReturnAllAttributes(java.lang.String searchString,
java.lang.String where)
finds resources in the ldap server using the given ldap search string |
java.util.List |
findByType(java.lang.String type,
java.lang.String nameSpace)
finds the resources in the ldap server that have a given type and that are inside a given namespace |
java.util.List |
findByTypeIsam(java.lang.String type,
java.lang.String nameSpace)
finds the resources in the ldap server that have a given type and that are inside a given namespace. |
java.lang.String |
getAttribute(java.lang.String node,
java.lang.String attr)
retrieves from the ldap server the value of a given attribute in a given resource |
java.lang.String |
getAttributeIsam(java.lang.String node,
java.lang.String attr)
retrieves from the ldap server the value of a given attribute in a given resource, takes into account isamType |
java.lang.String[] |
getAttributes(java.lang.String node)
retrieves from the lda server all the names of all the attributes of a given resource |
java.lang.String[] |
getAttributesIsam(java.lang.String node)
retrieves from the ldap server all the names of all the attributes of a given resource. |
java.lang.Object |
getObject(java.lang.String node)
retrieves from the ldap server the object in the given node |
void |
remove(java.lang.String node)
removes a given resource from the ldap server |
void |
setAttribute(java.lang.String node,
java.lang.String attr,
java.lang.String value)
sets the value a given attribute in a given resorce in tha ldap server |
void |
setObject(java.lang.String node,
java.lang.Object o)
Saves an object in the given ldap resource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String serverAddress
java.lang.String user
java.lang.String password
javax.naming.directory.DirContext dir
Constructor Detail |
public Ldap(java.lang.String serverAddress, java.lang.String user, java.lang.String password)
Method Detail |
public void connect()
public void createCell()
public void createIfNotExists(java.lang.String node)
node
- the string indicating the name and where (in ldap format) the resource is to be created
public java.lang.Object getObject(java.lang.String node)
node
- the name and place (in ldap format) of the resource that contains the object
public void setObject(java.lang.String node, java.lang.Object o)
node
- the name and place (in ldap format) of the resource that is to contain the objecto
- the object to be saved
public java.lang.String getAttribute(java.lang.String node, java.lang.String attr)
node
- the name and place (in ldap format) of the resource that contains the attribute
attr the name of the attribute
public java.lang.String getAttributeIsam(java.lang.String node, java.lang.String attr)
node
- the name and place (in ldap format) of the resource that contains the attribute
attr the name of the attribute
public java.lang.String[] getAttributes(java.lang.String node)
node
- the name and place (in ldap format) of the resource
public java.lang.String[] getAttributesIsam(java.lang.String node)
node
- the name and place (in ldap format) of the resource
public void remove(java.lang.String node)
node
- the name and place (in ldap format) of the resource that is to be removed
public void setAttribute(java.lang.String node, java.lang.String attr, java.lang.String value)
node
- the name and place (in ldap format) of the resource that contains the attribute
attr the name of the attribute
value the value that the attribute is to be set to
public java.util.List findByName(java.lang.String name, java.lang.String nameSpace)
name
- the name that the returned resources must have
nameSpace the name space inside of which the returned resources must reside. (in ldap format)
public java.util.List findByNameIsam(java.lang.String name, java.lang.String nameSpace)
name
- the name that the returned resources must have
nameSpace the name space inside of which the returned resources must reside. (in ldap format)
public java.util.List findByType(java.lang.String type, java.lang.String nameSpace)
type
- the type that the returned resources must have
nameSpace the name space inside of which the returned resources must reside. (in ldap format)
public java.util.List findByTypeIsam(java.lang.String type, java.lang.String nameSpace)
type
- the type that the returned resources must have
nameSpace the name space inside of which the returned resources must reside. (in ldap format)
public java.util.List findBySearchString(java.lang.String searchString)
searchString
- a ldap search string
public java.util.List findBySearchStringAndReturnAllAttributes(java.lang.String searchString)
searchString
- a ldap search string
public java.util.List findBySearchStringAndReturnAllAttributes(java.lang.String searchString, java.lang.String where)
searchString
- a ldap search string
where the context under which the search is to be performed
public void disconnect()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |