public abstract class CommonData extends SharedData implements NameableData, RemovableData
SharedData
class
and implements the NameableData
and RemovableData
interfaces. This is one of the most common combinations for all
data items.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description |
private java.lang.String |
name |
private java.lang.Integer |
removedBy |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
CommonData() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the description for the item.
|
java.lang.String |
getName()
Get the name of the item.
|
java.lang.Integer |
getRemovedBy()
Get the ID of the user that removed this item.
|
void |
setDescription(java.lang.String description)
Set the description for the item.
|
void |
setName(java.lang.String name)
Set the name of the item.
|
void |
setRemovedBy(java.lang.Integer removedBy)
Set the ID of the user that removed this item or null
to restore the item.
|
getItemKey, getProjectKey, setItemKey, setProjectKey
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
getOwner, setOwner
private java.lang.String name
private java.lang.String description
private java.lang.Integer removedBy
public java.lang.String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(java.lang.String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic java.lang.String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(java.lang.String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic java.lang.Integer getRemovedBy()
RemovableData
getRemovedBy
in interface RemovableData
public void setRemovedBy(java.lang.Integer removedBy)
RemovableData
setRemovedBy
in interface RemovableData