|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.isam.exehda.services.cib.LdapBackEnd
Ldab Install and Configuration Instructions:
include /etc/ldap/schema/java.schemabelow the other lines similar to this one (close to the beginning of the file)
schemacheck onto:
schemacheck off
suffix "alguma-coisa"to:
suffix "dc=CELL"
rootdn "alguma coisa"to:
rootdn "cn=Manager,dc=CELL"
rootpw "uma-senha"to:
rootpw "a-senha-que-voce-quer"
attributetype ( 2.5.4.70 NAME 'dn' DESC 'DN' SUP name ) attributetype ( 2.5.4.71 NAME 'fullDn' DESC 'DN full' SUP name ) attributetype ( 2.5.4.72 NAME 'a' DESC 'for tests' SUP name ) attributetype ( 2.5.4.75 NAME 'isamType' DESC 'for isam' SUP name ) attributetype ( 2.5.4.79 NAME 'isamResource' DESC 'for isam' SUP name )
After the following entry:
attributetype ( 2.5.4.41 NAME 'name' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
If the above entry does not exist, the new lines can be placed at the beginning of the file.
Field Summary | |
(package private) java.util.Hashtable |
attributeBackConversion
|
(package private) java.util.Hashtable |
attributeConversion
|
(package private) java.lang.String |
cellName
|
(package private) Ldap |
ldap
|
(package private) java.util.Hashtable |
typeBackConversion
|
(package private) java.util.Hashtable |
typeConversion
|
Constructor Summary | |
LdapBackEnd()
Creates a new instance of LdapBackEnd |
|
LdapBackEnd(java.lang.String password)
Creates a new instance of LdapBackEnd |
|
LdapBackEnd(java.lang.String password,
java.lang.String cellName)
Creates a new instance of LdapBackEnd |
Method Summary | |
void |
addResource(CellInformationBase.ResourceName r)
adds a new resource to the cib, if it doesn't exist already. |
java.lang.String |
convertToLdap(CellInformationBase.NameSpace ns)
converts a given NameSpace into a string representation that can be understood by a ldap server |
java.lang.String |
getAttribute(CellInformationBase.ResourceName r,
java.lang.String a)
Returns the value of the especified attribute in the especified resource |
java.lang.String[] |
getAttributes(CellInformationBase.ResourceName r)
returns all the names of the attribues of a given resource |
void |
prepareMapping(java.util.Properties resourceProperties,
java.util.Properties attributeProperties)
prepares the conversion maps that are to be used when writing resources to Ldap and when reading resources from ldap. |
void |
removeResource(CellInformationBase.ResourceName r)
removes a resource from the cib |
CellInformationBase.ResourceName[] |
select(CellInformationBase.SelectionConstraint sc,
CellInformationBase.NameSpace[] ns,
int maxResults)
|
CellInformationBase.ResourceName[] |
select(CellInformationBase.SelectionConstraint filter,
CellInformationBase.NameSpace ns,
int maxResults)
Searches the cib for resources that match a certain SelectionConstraint |
CellInformationBase.ResourceName[] |
select(CellInformationBase.SelectionConstraint filter,
int maxResults)
Searches the cib for resources that match a certain SelectionConstraint |
CellInformationBase.ResourceName[] |
selectByName(java.lang.String n,
CellInformationBase.NameSpace ns,
int maxResults)
Searches the cib for resources that hava a certain name and that are inside a given namespace |
CellInformationBase.ResourceName[] |
selectByType(java.lang.String t,
CellInformationBase.NameSpace ns,
int maxResults)
Searches the cib for resources that hava a certain type and that are inside a given namespace |
java.lang.String |
setAttribute(CellInformationBase.ResourceName r,
java.lang.String a,
java.lang.String v)
Sets the value of a given attribute in a given resource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
Ldap ldap
java.util.Hashtable typeConversion
java.util.Hashtable typeBackConversion
java.util.Hashtable attributeConversion
java.util.Hashtable attributeBackConversion
java.lang.String cellName
Constructor Detail |
public LdapBackEnd()
public LdapBackEnd(java.lang.String password)
public LdapBackEnd(java.lang.String password, java.lang.String cellName)
Method Detail |
public void prepareMapping(java.util.Properties resourceProperties, java.util.Properties attributeProperties)
resourceProperties
- the mapping for resource namesattributeProperties
- the mapping for attribute types
public void addResource(CellInformationBase.ResourceName r)
addResource
in interface CibBackEnd
r
- The ResourceName that is to be added
public java.lang.String getAttribute(CellInformationBase.ResourceName r, java.lang.String a)
getAttribute
in interface CibBackEnd
r
- The resource
a The name of the attribute
public java.lang.String[] getAttributes(CellInformationBase.ResourceName r)
getAttributes
in interface CibBackEnd
r
- The name of the resource
public void removeResource(CellInformationBase.ResourceName r)
removeResource
in interface CibBackEnd
r
- The name of the resource that will be removed
public CellInformationBase.ResourceName[] select(CellInformationBase.SelectionConstraint sc, CellInformationBase.NameSpace[] ns, int maxResults)
public CellInformationBase.ResourceName[] select(CellInformationBase.SelectionConstraint filter, int maxResults)
filter
- The SelectionConstraint that the resources to be returned must match
maxResults The maximum number of results that are to be returned
public CellInformationBase.ResourceName[] select(CellInformationBase.SelectionConstraint filter, CellInformationBase.NameSpace ns, int maxResults)
select
in interface CibBackEnd
filter
- The SelectionConstraint that the resources to be returned must match
maxResults The maximum number of results that are to be returned
public CellInformationBase.ResourceName[] selectByName(java.lang.String n, CellInformationBase.NameSpace ns, int maxResults)
selectByName
in interface CibBackEnd
n
- a string representing the name that the returned resources must have
ns Tha NameSpace to which the resource must belong in order to be returned
maxResults The maximum number of results that are to be returned
public CellInformationBase.ResourceName[] selectByType(java.lang.String t, CellInformationBase.NameSpace ns, int maxResults)
selectByType
in interface CibBackEnd
t
- a string representing the name of the type that the returned resources must have
ns Tha NameSpace to which the resource must belong in order to be returned
maxResults The maximum number of results that are to be returned
public java.lang.String setAttribute(CellInformationBase.ResourceName r, java.lang.String a, java.lang.String v)
setAttribute
in interface CibBackEnd
r
- the resource which "owns" the attribute that is to be set
a the name of the attribute that is to be set
v the value to which the attribute is to set
public java.lang.String convertToLdap(CellInformationBase.NameSpace ns)
ns
- the NameSpace that is to be converted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |