public class ItemSubtypeData extends BasicData implements NameableData, RemovableData, RegisteredData, SystemData
SubtypableData
interface. For a given item type the name
of the subtype should be unique.Modifier and Type | Field and Description |
---|---|
private String |
description |
private Date |
entryDate |
private Map<DataFileTypeData,ItemSubtypeFileTypeData> |
fileTypes |
private int |
itemType |
private String |
name |
private Set<ItemSubtypeData> |
parents |
private boolean |
pushAnnotations |
private Map<Integer,ItemSubtypeData> |
relatedSubtypes |
private Integer |
removedBy |
private String |
systemId |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
MAX_SYSTEM_ID_LENGTH
Constructor and Description |
---|
ItemSubtypeData() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the description for the item.
|
Date |
getEntryDate()
Get the date this item was added to the database.
|
Map<DataFileTypeData,ItemSubtypeFileTypeData> |
getFileTypes()
The file types that can be used on items of this subtype.
|
int |
getItemType()
Get the item type this subtype can be applied to.
|
String |
getName()
Get the name of the subtype which must be unique for subtypes related to a given item type.
|
(package private) Set<ItemSubtypeData> |
getParents()
This is the inverse end.
|
boolean |
getPushAnnotations()
If this flag is set, the annotations on items of this subtype should be
enabled for pushing to the parent item.
|
Map<Integer,ItemSubtypeData> |
getRelatedSubtypes() |
Integer |
getRemovedBy()
Get the ID of the user that removed this item.
|
String |
getSystemId()
Override the property definition since we may have to update the system id
during installation.
|
void |
setDescription(String description)
Set the description for the item.
|
void |
setEntryDate(Date entryDate) |
(package private) void |
setFileTypes(Map<DataFileTypeData,ItemSubtypeFileTypeData> fileTypes) |
void |
setItemType(int itemType) |
void |
setName(String name)
Set the name of the item.
|
(package private) void |
setParents(Set<ItemSubtypeData> parents) |
void |
setPushAnnotations(boolean pushAnnotations) |
(package private) void |
setRelatedSubtypes(Map<Integer,ItemSubtypeData> relatedSubtypes) |
void |
setRemovedBy(Integer removedBy)
Set the ID of the user that removed this item or null
to restore the item.
|
void |
setSystemId(String systemId) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private String name
private String description
private Integer removedBy
private Date entryDate
private String systemId
private int itemType
private boolean pushAnnotations
private Map<Integer,ItemSubtypeData> relatedSubtypes
private Set<ItemSubtypeData> parents
private Map<DataFileTypeData,ItemSubtypeFileTypeData> fileTypes
public String getName()
getName
in interface NameableData
String
with the name of the itempublic void setName(String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic Integer getRemovedBy()
RemovableData
getRemovedBy
in interface RemovableData
public void setRemovedBy(Integer removedBy)
RemovableData
setRemovedBy
in interface RemovableData
public Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(Date entryDate)
public String getSystemId()
getSystemId
in interface SystemData
public void setSystemId(String systemId)
public int getItemType()
public void setItemType(int itemType)
public boolean getPushAnnotations()
public void setPushAnnotations(boolean pushAnnotations)
public Map<Integer,ItemSubtypeData> getRelatedSubtypes()
void setRelatedSubtypes(Map<Integer,ItemSubtypeData> relatedSubtypes)
Set<ItemSubtypeData> getParents()
getRelatedSubtypes()
.void setParents(Set<ItemSubtypeData> parents)
public Map<DataFileTypeData,ItemSubtypeFileTypeData> getFileTypes()
ItemSubtypeFileTypeData.getItemSubtype()
void setFileTypes(Map<DataFileTypeData,ItemSubtypeFileTypeData> fileTypes)