com.groiss.ldap
Class DirectoryServer

java.lang.Object
  extended by com.groiss.store.PersistentObject
      extended by com.groiss.store.ExportablePersistentObject
          extended by com.groiss.ldap.DirectoryServer
All Implemented Interfaces:
KeyValuePair<java.lang.Object,java.lang.Object>, Exportable, Persistent, java.io.Serializable, java.lang.Cloneable

public class DirectoryServer
extends ExportablePersistentObject

Persistance class for Directory Servers

See Also:
Serialized Form

Field Summary
static int FROM_LDAP
          Represents direction of synchronization (import) FROM_LDAP
static int INTO_LDAP
          Represents direction of synchronization (export) INTO_LDAP
 
Fields inherited from class com.groiss.store.PersistentObject
filled, oid
 
Fields inherited from interface com.groiss.store.Exportable
emptyKeys
 
Constructor Summary
DirectoryServer()
           
 
Method Summary
 java.lang.String getClassname()
           
 boolean getDepts()
           
 boolean getDepttrees()
           
 java.lang.String getDescription()
           
 short getDirection()
           
 java.lang.String getFilter()
           
 java.lang.String[][] getKeys()
          Returns "name" as key.
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 java.lang.String getPort()
           
 boolean getRights()
           
 boolean getRoles()
           
 java.lang.String getSearchRoot()
           
 java.lang.String getServer()
           
 java.lang.String getTableName()
          This method must return the table name of the database table in which this persistent object is stored.
 boolean getTimer()
           
 java.lang.String getUsername()
           
 boolean getUsers()
           
 void onDelete()
          This method is called before the persistent object is deleted.
 void setAttributes(java.lang.String name, java.lang.String server, java.lang.String port, java.lang.String searchRoot, java.lang.String username, java.lang.String password, java.lang.String filter, short direction, boolean timer, java.lang.String classname)
           
 void setDepts(boolean depts)
           
 void setDepttrees(boolean depttrees)
           
 void setDescription(java.lang.String desc)
           
 void setRights(boolean rights)
           
 void setRoles(boolean roles)
           
 void setUsers(boolean users)
           
 
Methods inherited from class com.groiss.store.ExportablePersistentObject
beforeImport, exportFields, getAdditionalObjects, getRequiredObjects, getRequiredReferences
 
Methods inherited from class com.groiss.store.PersistentObject
clone, dbFields, equals, getKey, getOid, getStore, getValue, hashCode, isFilled, onInsert, onRead, onUpdate, setFilled, setOid, setStore
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.groiss.store.Persistent
dbFields, getOid, getStore, isFilled, onInsert, onRead, onUpdate, setFilled, setOid, setStore
 

Field Detail

INTO_LDAP

public static final int INTO_LDAP
Represents direction of synchronization (export) INTO_LDAP

See Also:
Constant Field Values

FROM_LDAP

public static final int FROM_LDAP
Represents direction of synchronization (import) FROM_LDAP

See Also:
Constant Field Values
Constructor Detail

DirectoryServer

public DirectoryServer()
Method Detail

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

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String desc)

getName

public java.lang.String getName()

getServer

public java.lang.String getServer()

getPort

public java.lang.String getPort()

getSearchRoot

public java.lang.String getSearchRoot()

getUsername

public java.lang.String getUsername()

getPassword

public java.lang.String getPassword()

getFilter

public java.lang.String getFilter()

getDirection

public short getDirection()

getTimer

public boolean getTimer()

getClassname

public java.lang.String getClassname()

getTableName

public java.lang.String getTableName()
Description copied from interface: Persistent
This method must return the table name of the database table in which this persistent object is stored.

Returns:
The table name of the database table in which this persistent object is stored.

setAttributes

public void setAttributes(java.lang.String name,
                          java.lang.String server,
                          java.lang.String port,
                          java.lang.String searchRoot,
                          java.lang.String username,
                          java.lang.String password,
                          java.lang.String filter,
                          short direction,
                          boolean timer,
                          java.lang.String classname)

getKeys

public java.lang.String[][] getKeys()
Returns "name" as key.

Specified by:
getKeys in interface Exportable
Overrides:
getKeys in class ExportablePersistentObject
Returns:
An array of arrays containing object field names of the fields which form key groups for uniquely identifying objects of classes implementing this interface. An example would be {{"name", "birthdate"}} for a class defining one key group containing the fields name and birthdate.

onDelete

public void onDelete()
Description copied from interface: Persistent
This method is called before the persistent object is deleted. Note that the Store.delete(Class, String, Object[]) and Store.delete(String, String, Object[]) methods do NOT call Persistent.onDelete().

Specified by:
onDelete in interface Persistent
Overrides:
onDelete in class PersistentObject


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.