Package com.groiss.ldap
Class DirectoryServer
java.lang.Object
com.groiss.store.PersistentObject
com.groiss.store.ExportablePersistentObject
com.groiss.ldap.DirectoryServer
- All Implemented Interfaces:
KeyValuePair<String,
,String> HasLog
,Exportable
,Persistent
,Serializable
,Cloneable
Persistance class for Directory Servers
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Represents direction of synchronization (import)FROM_LDAP
static final int
Represents direction of synchronization (export)INTO_LDAP
Fields inherited from class com.groiss.store.PersistentObject
filled, oid
Fields inherited from interface com.groiss.store.Persistent
emptyKeys
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called after the persistent object has been deleted.getArgs()
boolean
getDepts()
boolean
short
String[][]
getKeys()
Returns "name" as key.Get the object name in localized form.getName()
int
getPort()
boolean
boolean
getRoles()
This method must return the table name of the database table in which this persistent object is stored.boolean
getTimer()
boolean
getUsers()
void
isValid()
Overwrite this method to check ids, etc.void
void
setAttributes
(String name, String server, String port, String searchRoot, String username, String password, String filter, short direction, boolean timer, String classname, int pageSize) void
setAttributes
(String name, String server, String port, String searchRoot, String username, String password, String filter, short direction, boolean timer, String classname, int pageSize, String communicationType, String trustLevel) void
setDepts
(boolean depts) void
setDepttrees
(boolean depttrees) void
setDescription
(String desc) void
setRights
(boolean rights) void
setRoles
(boolean roles) void
setUsers
(boolean users) toString()
Methods inherited from class com.groiss.store.PersistentObject
afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, clone, dbFields, equals, getKey, getOid, getValue, hashCode, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setOid, toListString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.groiss.store.Exportable
beforeImport, exportFields, getAdditionalObjects, getRequiredObjects, getRequiredReferences
Methods inherited from interface com.groiss.store.Persistent
afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getOid, getStore, getValue, isFilled, setFilled, setOid, setOid, toListString
-
Field Details
-
INTO_LDAP
public static final int INTO_LDAPRepresents direction of synchronization (export)INTO_LDAP
- See Also:
-
FROM_LDAP
public static final int FROM_LDAPRepresents direction of synchronization (import)FROM_LDAP
- See Also:
-
-
Constructor Details
-
DirectoryServer
public DirectoryServer()
-
-
Method Details
-
setRights
public void setRights(boolean rights) -
getRights
public boolean getRights() -
setDepts
public void setDepts(boolean depts) -
getDepts
public boolean getDepts() -
setDepttrees
public void setDepttrees(boolean depttrees) -
getDepttrees
public boolean getDepttrees() -
setRoles
public void setRoles(boolean roles) -
getRoles
public boolean getRoles() -
setUsers
public void setUsers(boolean users) -
getUsers
public boolean getUsers() -
getDescription
-
setDescription
-
getArgs
-
setArgs
-
getName
-
getServer
-
getPort
-
getSearchRoot
-
getUsername
-
getPassword
-
getFilter
-
getDirection
public short getDirection() -
getTimer
public boolean getTimer() -
getClassname
-
getPageSize
public int getPageSize() -
getCommunicationType
-
getTrustLevel
-
getTableName
Description copied from interface:Persistent
This method must return the table name of the database table in which this persistent object is stored.- Specified by:
getTableName
in interfacePersistent
- Returns:
- The table name of the database table in which this persistent object is stored.
-
setAttributes
-
setAttributes
-
getKeys
Returns "name" as key.- Specified by:
getKeys
in interfacePersistent
- Overrides:
getKeys
in classPersistentObject
- Returns:
- An array of arrays containing object field names of those fields which
constitute key field groups for uniquely identifying objects of classes implementing this
interface. An example would be
{{"name", "birthdate"},{"ssn"}}
for a class defining two key field groups. The first one contains the fieldsname
andbirthdate
, the second key field group has just one fieldssn
.
-
afterDelete
public void afterDelete()Description copied from interface:Persistent
This method is called after the persistent object has been deleted. Note that theStore.delete(Class, String, Object[])
andStore.delete(String, String, Object[])
methods do NOT callPersistent.afterDelete()
.- Specified by:
afterDelete
in interfacePersistent
- Overrides:
afterDelete
in classPersistentObject
- See Also:
-
toString
-
getLocalObjectName
Description copied from class:PersistentObject
Get the object name in localized form. Subclasses should override this method!- Specified by:
getLocalObjectName
in interfacePersistent
- Overrides:
getLocalObjectName
in classPersistentObject
- Returns:
- the name of the objects in localized form
-
getLocalClassName
- Specified by:
getLocalClassName
in interfacePersistent
- Overrides:
getLocalClassName
in classPersistentObject
- Returns:
- the name of the class in localized form. Subclasses should override this method!
-
isValid
public void isValid()Description copied from class:PersistentObject
Overwrite this method to check ids, etc. It is called before inserts and updates are performed. The method should throw an ApplicationException or RunTimeException when the object is considered invalid.- Specified by:
isValid
in interfacePersistent
- Overrides:
isValid
in classPersistentObject
-