com.openexchange.admin.rmi.dataobjects
Class Resource

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.Resource
All Implemented Interfaces:
NameAndIdObject, Serializable, Cloneable

public class Resource
extends ExtendableDataObject
implements NameAndIdObject

This dataobject stores all the data which is related to a resource

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

Constructor Summary
Resource()
          Instantiates a new Resource object
Resource(Integer id)
          Instantiates a new Resource object with the given id
 
Method Summary
 void addExtension(OXResourceExtensionInterface extension)
          Deprecated.  
 Object clone()
           
 boolean equals(Object obj)
           
 Boolean getAvailable()
          This attribute is not used
 String getDescription()
          Returns the description of this resource
 String getDisplayname()
          Returns the displayname of this resource
 String getEmail()
          Returns the E-Mail of this resource
 OXResourceExtensionInterface getExtensionbyName(String extname)
          Deprecated.  
 ArrayList<OXResourceExtensionInterface> 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 setName(java.lang.String), setDisplayname(java.lang.String) and setEmail(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
 String getName()
          Returns the name of this object
 int hashCode()
           
 boolean isAvailableset()
          This attribute is not used
 boolean isDescriptionset()
          Used to check if the description of this object has been changed
 boolean isDisplaynameset()
          Used to check if the displayname of this object has been changed
 boolean isEmailset()
          Used to check if the E-Mail of this object has been changed
 boolean isNameset()
          Used to check if the member of this object has been changed
 boolean removeExtension(OXResourceExtensionInterface o)
          Deprecated.  
 void setAvailable(Boolean available)
          This attribute is not used
 void setDescription(String description)
          Sets the description for this resource
 void setDisplayname(String displayname)
          Sets the displayname for this resource
 void setEmail(String email)
          Sets the email address for this resource
 void setId(Integer id)
          Sets the id for this object
 void setName(String name)
          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

Resource

public Resource()
Instantiates a new Resource object


Resource

public Resource(Integer id)
Instantiates a new Resource object with the given id

Parameters:
id - An Integer object containing the id
Method Detail

getId

public 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 void setId(Integer id)
Description copied from interface: NameAndIdObject
Sets the id for this object

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

getName

public 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 void setName(String name)
Description copied from interface: NameAndIdObject
Sets the name for this object

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

getDisplayname

public String getDisplayname()
Returns the displayname of this resource

Returns:
A String containing the displayname

setDisplayname

public void setDisplayname(String displayname)
Sets the displayname for this resource

Parameters:
displayname - A String containing the displayname

getEmail

public String getEmail()
Returns the E-Mail of this resource

Returns:
A String object containing the E-Mail address

setEmail

public void setEmail(String email)
Sets the email address for this resource

Parameters:
email - A String object containing the E-Mail address

getAvailable

public Boolean getAvailable()
This attribute is not used


setAvailable

public void setAvailable(Boolean available)
This attribute is not used


getDescription

public String getDescription()
Returns the description of this resource

Returns:
A String object containing the description

setDescription

public void setDescription(String description)
Sets the description for this resource

Parameters:
description - A String object containing the description

toString

public String toString()
Description copied from class: EnforceableDataObject

Overrides:
toString in class ExtendableDataObject

addExtension

public void addExtension(OXResourceExtensionInterface extension)
Deprecated. 

Parameters:
extension -

getExtensions

public ArrayList<OXResourceExtensionInterface> getExtensions()
Deprecated. 

Returns:

removeExtension

public boolean removeExtension(OXResourceExtensionInterface o)
Deprecated. 

Parameters:
o -
Returns:

getExtensionbyName

public OXResourceExtensionInterface 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 OXResourceExtensionInterface with extname

clone

public Object clone()
             throws CloneNotSupportedException
Throws:
CloneNotSupportedException

getMandatoryMembersChange

public 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

getMandatoryMembersCreate

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

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

getMandatoryMembersDelete

public 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 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

isNameset

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

Returns:
true if set; false if not

isDisplaynameset

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

Returns:
true if set; false if not

isDescriptionset

public boolean isDescriptionset()
Used to check if the description of this object has been changed

Returns:
true if set; false if not

isEmailset

public boolean isEmailset()
Used to check if the E-Mail of this object has been changed

Returns:
true if set; false if not

isAvailableset

public boolean isAvailableset()
This attribute is not used


hashCode

public int hashCode()
Overrides:
hashCode in class ExtendableDataObject

equals

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