com.openexchange.admin.rmi.dataobjects
Class Publication

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.Publication
All Implemented Interfaces:
NameAndIdObject, java.io.Serializable, java.lang.Cloneable

public class Publication
extends ExtendableDataObject
implements NameAndIdObject, java.io.Serializable

Publication

Author:
Felix Marx
See Also:
Serialized Form

Constructor Summary
Publication()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Context getContext()
           
 java.lang.String getDescription()
          Gets the description
 java.lang.String getEntityId()
           
 java.lang.Integer getId()
          Returns the id of the publication
 java.lang.String[] getMandatoryMembersChange()
          This method must be implemented and it must return a String array containing all names of mandatory members of the corresponding class required to CHANGE data.
 java.lang.String[] getMandatoryMembersCreate()
          This method must be implemented and it must return a String array containing all names of mandatory members of the corresponding class required to CREATE data.
 java.lang.String[] getMandatoryMembersDelete()
          This method must be implemented and it must return a String array containing all names of mandatory members of the corresponding class required to DELETE data.
 java.lang.String[] getMandatoryMembersRegister()
          This method must be implemented and it must return a String array containing all names of mandatory members of the corresponding class required to REGISTER data.
 java.lang.String getModule()
           
 java.lang.String getName()
          Returns the name of this object
 java.lang.String getUrl()
          Gets the url
 java.lang.Integer getUserId()
          Returns the id of the publication
 int hashCode()
           
 void setContext(Context context)
           
 void setDescription(java.lang.String description)
          Sets the description
 void setEntityId(java.lang.String entityId)
           
 void setId(java.lang.Integer id)
          Sets the numeric publication id
 void setModule(java.lang.String module)
           
 void setName(java.lang.String name)
          Sets the symbolic publication identifier
 void setUrl(java.lang.String url)
          Sets the url
 void setUserId(java.lang.Integer userid)
          Sets the numeric user id
 java.lang.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

Publication

public Publication()
Method Detail

getEntityId

public java.lang.String getEntityId()

getUrl

public java.lang.String getUrl()
Gets the url

Returns:
The url

setUrl

public void setUrl(java.lang.String url)
Sets the url

Parameters:
url - The url to set

setEntityId

public void setEntityId(java.lang.String entityId)

getModule

public java.lang.String getModule()

setModule

public void setModule(java.lang.String module)

getContext

public Context getContext()

setContext

public void setContext(Context context)

setId

public final void setId(java.lang.Integer id)
Sets the numeric publication id

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

getId

public final java.lang.Integer getId()
Returns the id of the publication

Specified by:
getId in interface NameAndIdObject
Returns:
Returns the id of the user as a long.

setUserId

public final void setUserId(java.lang.Integer userid)
Sets the numeric user id

Parameters:
userid - An Integer containing the user id

getUserId

public final java.lang.Integer getUserId()
Returns the id of the publication

Returns:
Returns the id of the user as a long.

getName

public final java.lang.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(java.lang.String name)
Sets the symbolic publication identifier

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

getMandatoryMembersCreate

public java.lang.String[] getMandatoryMembersCreate()
Description copied from class: EnforceableDataObject
This method must be implemented and it must return a String array containing all names of mandatory members of the corresponding class required to CREATE data.

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

getMandatoryMembersChange

public java.lang.String[] getMandatoryMembersChange()
Description copied from class: EnforceableDataObject
This method must be implemented and it must return a String array containing all names of mandatory members of the corresponding class required to CHANGE data.

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

getMandatoryMembersDelete

public java.lang.String[] getMandatoryMembersDelete()
Description copied from class: EnforceableDataObject
This method must be implemented and it must return a String array containing all names of mandatory members of the corresponding class required to DELETE data.

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

getMandatoryMembersRegister

public java.lang.String[] getMandatoryMembersRegister()
Description copied from class: EnforceableDataObject
This method must be implemented and it must return a String array containing all names of mandatory members of the corresponding class required to REGISTER data.

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

getDescription

public java.lang.String getDescription()
Gets the description

Returns:
The description

setDescription

public void setDescription(java.lang.String description)
Sets the description

Parameters:
description - The description to set

hashCode

public int hashCode()
Overrides:
hashCode in class ExtendableDataObject

equals

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

toString

public java.lang.String toString()
Description copied from class: EnforceableDataObject

Overrides:
toString in class ExtendableDataObject