|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.util.db.DatabaseBase
orca.util.db.LdapBase
orca.shirako.plugins.db.LdapDatabase
orca.sharp.plugins.db.LdapClientDatabase
public class LdapClientDatabase
Implementation of ClientDatabase for LDAP
| Field Summary | |
|---|---|
static java.lang.String |
Client
|
static java.lang.String |
Clients
|
protected java.lang.String |
clientsDN
DN for storing client records |
static java.lang.String |
DefaultClientsLdapMapUrl
The default schema mapping |
| Fields inherited from class orca.shirako.plugins.db.LdapDatabase |
|---|
actorName, Brokers, brokersDN, ConfigMappings, configMappingsDN, Configs, configsDN, DefaultConfigUrl, Inventory, inventoryDN, ObjectClassReservation, ObjectClassSlice, Peers, peersDN, PropertyNodeState, PropertyReservationID, reservationListeners, Reservations, Slices, slicesDN, TypeBroker, TypeConfigMapping, TypeReservation, TypeSlice |
| Fields inherited from class orca.util.db.LdapBase |
|---|
AllEntries, baseDN, bindDN, bindPasswd, bindPasswdBytes, cn, cnE, create, dc, dcE, DefaultMaxPhysicalConnections, DefaultMaxSharesPerPhysicalConnection, ldapServer, logger, mapFile, mapper, maxPhysicalConnections, maxSharesPerPhysicalConnection, obCodCluster, objectClass, objectClassE, obMisc, obOU, obShirako, obTop, ou, ouE, pool, PropertyLdapBaseDN, PropertyLdapBindDN, PropertyLdapPassword, PropertyLdapServer, resetState |
| Fields inherited from class orca.util.db.DatabaseBase |
|---|
PropertyDBClassName |
| Constructor Summary | |
|---|---|
LdapClientDatabase()
Create a new instance using the default schema mapping |
|
LdapClientDatabase(java.lang.String mapFile)
Create a new instance using the specified schema mapping file |
|
| Method Summary | |
|---|---|
void |
addClient(Client client)
Adds a new database record representing this client |
protected void |
createHierarchy(com.novell.ldap.LDAPConnection connection,
java.lang.String topPrefix)
|
java.util.Vector<java.util.Properties> |
getClient(java.lang.String name)
Retrieves the specified client record |
protected java.lang.String |
getClientDN(java.lang.String name)
Returns the DN for the specified client |
protected java.lang.String |
getClientPrefix(java.lang.String name)
Returns the DN prefix for the specified client |
java.util.Vector<java.util.Properties> |
getClients()
Retrieves all client records |
protected void |
initDNs()
|
void |
removeClient(java.lang.String name)
Removes the specified client record |
void |
updateClient(Client client)
Updates the database record for the specified client |
| Methods inherited from class orca.util.db.LdapBase |
|---|
checkBase, configure, deleteContainer, exists, getBaseDN, getBindDN, getConnection, getDatabaseData, getLogger, getPassword, getProperties, getServer, reset, returnConnection, save, save, search, searchBase, searchOne, searchSub, setBaseDN, setBindDN, setBindPassword, setLogger, setMaxPhysicalConnections, setMaxSharesPerPhysicalConnection, setResetState, setServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface orca.shirako.api.IDatabase |
|---|
getLogger, setLogger, setResetState |
| Methods inherited from interface orca.shirako.api.ISerialize |
|---|
reset, save, save |
| Field Detail |
|---|
public static final java.lang.String DefaultClientsLdapMapUrl
public static java.lang.String Clients
public static java.lang.String Client
protected java.lang.String clientsDN
| Constructor Detail |
|---|
public LdapClientDatabase()
public LdapClientDatabase(java.lang.String mapFile)
mapFile - schema mapping file| Method Detail |
|---|
protected void initDNs()
initDNs in class LdapDatabase
protected void createHierarchy(com.novell.ldap.LDAPConnection connection,
java.lang.String topPrefix)
throws java.lang.Exception
createHierarchy in class LdapDatabasejava.lang.Exception
public void addClient(Client client)
throws java.lang.Exception
addClient in interface ClientDatabasejava.lang.Exception
public void updateClient(Client client)
throws java.lang.Exception
updateClient in interface ClientDatabasejava.lang.Exception
public void removeClient(java.lang.String name)
throws java.lang.Exception
removeClient in interface ClientDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getClient(java.lang.String name)
throws java.lang.Exception
getClient in interface ClientDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getClients()
throws java.lang.Exception
getClients in interface ClientDatabasejava.lang.Exceptionprotected java.lang.String getClientDN(java.lang.String name)
name - client name
protected java.lang.String getClientPrefix(java.lang.String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||