Class DirectoryServer

All Implemented Interfaces:
KeyValuePair<String,String>, HasLog, Exportable, Persistent, Serializable, Cloneable

public class DirectoryServer extends ExportablePersistentObject implements HasLog
Persistance class for Directory Servers
See Also:
  • Field Details

    • INTO_LDAP

      public static final int INTO_LDAP
      Represents direction of synchronization (export) INTO_LDAP
      See Also:
    • FROM_LDAP

      public static final int FROM_LDAP
      Represents 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

      public String getDescription()
    • setDescription

      public void setDescription(String desc)
    • getArgs

      public String getArgs()
    • setArgs

      public void setArgs(String args)
    • getName

      public String getName()
    • getServer

      public String getServer()
    • getPort

      public String getPort()
    • getSearchRoot

      public String getSearchRoot()
    • getUsername

      public String getUsername()
    • getPassword

      public String getPassword()
    • getFilter

      public String getFilter()
    • getDirection

      public short getDirection()
    • getTimer

      public boolean getTimer()
    • getClassname

      public String getClassname()
    • getPageSize

      public int getPageSize()
    • getCommunicationType

      public String getCommunicationType()
    • getTrustLevel

      public String getTrustLevel()
    • getTableName

      public 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.
      Specified by:
      getTableName in interface Persistent
      Returns:
      The table name of the database table in which this persistent object is stored.
    • setAttributes

      public void setAttributes(String name, String server, String port, String searchRoot, String username, String password, String filter, short direction, boolean timer, String classname, int pageSize)
    • setAttributes

      public 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)
    • getKeys

      public String[][] getKeys()
      Returns "name" as key.
      Specified by:
      getKeys in interface Persistent
      Overrides:
      getKeys in class PersistentObject
      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 fields name and birthdate, the second key field group has just one field ssn.
    • afterDelete

      public void afterDelete()
      Description copied from interface: Persistent
      This method is called after the persistent object has been deleted. Note that the Store.delete(Class, String, Object[]) and Store.delete(String, String, Object[]) methods do NOT call Persistent.afterDelete().
      Specified by:
      afterDelete in interface Persistent
      Overrides:
      afterDelete in class PersistentObject
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLocalObjectName

      public String getLocalObjectName()
      Description copied from class: PersistentObject
      Get the object name in localized form. Subclasses should override this method!
      Specified by:
      getLocalObjectName in interface Persistent
      Overrides:
      getLocalObjectName in class PersistentObject
      Returns:
      the name of the objects in localized form
    • getLocalClassName

      public String getLocalClassName()
      Specified by:
      getLocalClassName in interface Persistent
      Overrides:
      getLocalClassName in class PersistentObject
      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 interface Persistent
      Overrides:
      isValid in class PersistentObject