com.openexchange.admin.rmi.dataobjects
Class Group

java.lang.Object
  extended by com.openexchange.admin.rmi.dataobjects.EnforceableDataObject
      extended by com.openexchange.admin.rmi.dataobjects.ExtendableDataObject
          extended by com.openexchange.admin.rmi.dataobjects.Group
All Implemented Interfaces:
NameAndIdObject, Serializable, Cloneable

public class Group
extends ExtendableDataObject
implements NameAndIdObject

This class represents a group.

Author:
Manuel Kraft, Carsten Hoeger, Dennis Sieben
See Also:
Serialized Form

Constructor Summary
Group()
          Initiates an empty group object
Group(Integer id)
          Initiates a group object with the given id set
Group(Integer id, String name, String displayname)
          Initiates a group object with the given id, name and display name set
 
Method Summary
 void addExtension(OXGroupExtensionInterface extension)
          Deprecated.  
 boolean equals(Object obj)
           
 String getDisplayname()
          Returns the displayname of this group
 OXGroupExtensionInterface getExtensionbyName(String extname)
          Deprecated.  
 ArrayList<OXGroupExtensionInterface> getExtensions()
          Deprecated.  
 Integer getId()
          Returns the id of this object
 String[] getMandatoryMembersChange()
          At the moment no fields are defined here
 String[] getMandatoryMembersCreate()
          At the moment setDisplayname(java.lang.String) and setName(java.lang.String) are defined here
 String[] getMandatoryMembersDelete()
          At the moment no fields are defined here
 String[] getMandatoryMembersRegister()
          At the moment no fields are defined here
 Integer[] getMembers()
          Returns the members of this group
 String getName()
          Returns the name of this object
 int hashCode()
           
 boolean isDisplaynameset()
          Used to check if the display name of this object has been changed
 boolean isMembersset()
          Used to check if the members of this object have been changed
 boolean isNameset()
          Used to check if the name of this object has been changed
 boolean removeExtension(OXGroupExtensionInterface o)
          Deprecated.  
 void setDisplayname(String displayname)
          Sets the displayname for this group
 void setId(Integer val)
          Sets the id for this object
 void setMembers(Integer[] members)
          Sets the the members for this group
 void setName(String val)
          Sets the name for this object
 String toString()
          
 
Methods inherited from class com.openexchange.admin.rmi.dataobjects.ExtendableDataObject
addExtension, getAllExtensionsAsHash, getFirstExtensionByName, isExtensionsok, isExtensionsset, removeExtension, setExtensionsok
 
Methods inherited from class com.openexchange.admin.rmi.dataobjects.EnforceableDataObject
getUnsetMembers, mandatoryChangeMembersSet, mandatoryCreateMembersSet, mandatoryDeleteMembersSet, mandatoryRegisterMembersSet, testMandatoryCreateFieldsNull
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Group

public Group()
Initiates an empty group object


Group

public Group(Integer id)
Initiates a group object with the given id set

Parameters:
id - An Integer containing the id

Group

public Group(Integer id,
             String name,
             String displayname)
Initiates a group object with the given id, name and display name set

Parameters:
id - An Integer containing the id
name - A String containing the name
displayname - A String containing the display name
Method Detail

isDisplaynameset

public final boolean isDisplaynameset()
Used to check if the display name of this object has been changed

Returns:
true if set; false if not

isMembersset

public final boolean isMembersset()
Used to check if the members of this object have been changed

Returns:
true if set; false if not

isNameset

public final boolean isNameset()
Used to check if the name of this object has been changed

Returns:
true if set; false if not

getId

public final Integer getId()
Description copied from interface: NameAndIdObject
Returns the id of this object

Specified by:
getId in interface NameAndIdObject
Returns:
An Integer object containing the id

setId

public final void setId(Integer val)
Description copied from interface: NameAndIdObject
Sets the id for this object

Specified by:
setId in interface NameAndIdObject
Parameters:
val - An Integer object containing the id

getName

public final String getName()
Description copied from interface: NameAndIdObject
Returns the name of this object

Specified by:
getName in interface NameAndIdObject
Returns:
A String containing the name

setName

public final void setName(String val)
Description copied from interface: NameAndIdObject
Sets the name for this object

Specified by:
setName in interface NameAndIdObject
Parameters:
val - A String containing the name

getDisplayname

public final String getDisplayname()
Returns the displayname of this group

Returns:
A String containing the displayname

setDisplayname

public final void setDisplayname(String displayname)
Sets the displayname for this group

Parameters:
displayname - The displayname as string

getMembers

public final Integer[] getMembers()
Returns the members of this group

Returns:
An Integer array containing the member ids

setMembers

public final void setMembers(Integer[] members)
Sets the the members for this group

Parameters:
members - An Integer array containing the member ids

toString

public final String toString()
Description copied from class: EnforceableDataObject

Overrides:
toString in class ExtendableDataObject

addExtension

public final void addExtension(OXGroupExtensionInterface extension)
Deprecated. 

Parameters:
extension -

getExtensions

public final ArrayList<OXGroupExtensionInterface> getExtensions()
Deprecated. 

Returns:

removeExtension

public final boolean removeExtension(OXGroupExtensionInterface o)
Deprecated. 

Parameters:
o -
Returns:

getExtensionbyName

public final OXGroupExtensionInterface getExtensionbyName(String extname)
Deprecated. 

This method is used to get an extensions through the name of this extension. This first occurence will be returned, or null if no fitting extension was found.

Parameters:
extname - a String for the extension
Returns:
the OXGroupExtensionInterface with extname

getMandatoryMembersCreate

public final String[] getMandatoryMembersCreate()
At the moment setDisplayname(java.lang.String) and setName(java.lang.String) are defined here

Specified by:
getMandatoryMembersCreate in class EnforceableDataObject
Returns:
String array containing names of mandatory members or null if unwanted

getMandatoryMembersChange

public final String[] getMandatoryMembersChange()
At the moment no fields are defined here

Specified by:
getMandatoryMembersChange in class EnforceableDataObject
Returns:
String array containing names of mandatory members or null if unwanted

getMandatoryMembersDelete

public final String[] getMandatoryMembersDelete()
At the moment no fields are defined here

Specified by:
getMandatoryMembersDelete in class EnforceableDataObject
Returns:
String array containing names of mandatory members or null if unwanted

getMandatoryMembersRegister

public final String[] getMandatoryMembersRegister()
At the moment no fields are defined here

Specified by:
getMandatoryMembersRegister in class EnforceableDataObject
Returns:
String array containing names of mandatory members or null if unwanted

hashCode

public int hashCode()
Overrides:
hashCode in class ExtendableDataObject

equals

public boolean equals(Object obj)
Overrides:
equals in class ExtendableDataObject