public class ProjectData extends OwnedData implements NameableData, RemovableData, RegisteredData, AnnotatableData, LoggableData
Project
,
Developer documentation: User authenticationModifier and Type | Field and Description |
---|---|
private AnnotationSetData |
annotationSet |
private int |
autoPermission |
private ItemParameterValueData |
defaultItems |
private java.lang.String |
description |
private java.util.Date |
entryDate |
private java.util.Map<GroupData,java.lang.Integer> |
groups |
private java.util.Set<AnnotationLink> |
links |
private java.lang.String |
name |
private PermissionTemplateData |
permissionTemplate |
private java.util.Map<java.lang.String,java.lang.String> |
projectDefaults |
private java.util.Set<ProjectKeyData> |
projectKeys |
private java.lang.Integer |
removedBy |
private java.util.Map<UserData,java.lang.Integer> |
users |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
ProjectData() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<AnnotationLink> |
getAnnotations()
Short-cut to all annotations belonging to this item.
|
AnnotationSetData |
getAnnotationSet()
Get the annotation set that holds the annotations for an item.
|
int |
getAutoPermission()
The permissions to use with automatic sharing to this
project.
|
ItemParameterValueData |
getDefaultItems()
The default items to use in this project
|
java.lang.String |
getDescription()
Get the description for the item.
|
java.util.Date |
getEntryDate()
Get the date this item was added to the database.
|
java.util.Map<GroupData,java.lang.Integer> |
getGroups()
Get the map that manages which users are members of this project
and their permissions.
|
java.lang.String |
getName()
Get the name of the item.
|
PermissionTemplateData |
getPermissionTemplate()
A permission template can be used to set default permissions
when this project is active.
|
java.util.Map<java.lang.String,java.lang.String> |
getProjectDefaults()
Gets the default values
|
(package private) java.util.Set<ProjectKeyData> |
getProjectKeys()
This is the inverse end.
|
java.lang.Integer |
getRemovedBy()
Get the ID of the user that removed this item.
|
java.util.Map<UserData,java.lang.Integer> |
getUsers()
Get the map that manages which users are members of this project
and their permissions.
|
(package private) void |
setAnnotations(java.util.Set<AnnotationLink> links) |
void |
setAnnotationSet(AnnotationSetData annotationSet)
Change the annotation set.
|
void |
setAutoPermission(int autoPermission) |
void |
setDefaultItems(ItemParameterValueData defaultItems) |
void |
setDescription(java.lang.String description)
Set the description for the item.
|
void |
setEntryDate(java.util.Date entryDate) |
(package private) void |
setGroups(java.util.Map<GroupData,java.lang.Integer> groups) |
void |
setName(java.lang.String name)
Set the name of the item.
|
void |
setPermissionTemplate(PermissionTemplateData permissionTemplate) |
(package private) void |
setProjectDefaults(java.util.Map<java.lang.String,java.lang.String> projectDefaults) |
(package private) void |
setProjectKeys(java.util.Set<ProjectKeyData> projectKeys) |
void |
setRemovedBy(java.lang.Integer removedBy)
Set the ID of the user that removed this item or null
to restore the item.
|
(package private) void |
setUsers(java.util.Map<UserData,java.lang.Integer> users) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private java.lang.String name
private java.lang.String description
private java.lang.Integer removedBy
private java.util.Date entryDate
private AnnotationSetData annotationSet
private java.util.Set<AnnotationLink> links
private int autoPermission
private PermissionTemplateData permissionTemplate
private java.util.Map<UserData,java.lang.Integer> users
private java.util.Map<GroupData,java.lang.Integer> groups
private java.util.Set<ProjectKeyData> projectKeys
private java.util.Map<java.lang.String,java.lang.String> projectDefaults
private ItemParameterValueData defaultItems
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
public java.util.Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(java.util.Date entryDate)
public AnnotationSetData getAnnotationSet()
AnnotatableData
getAnnotationSet
in interface AnnotatableData
AnnotationSetData
item or null if no annotations existpublic void setAnnotationSet(AnnotationSetData annotationSet)
AnnotatableData
setAnnotationSet
in interface AnnotatableData
annotationSet
- Annotation set to change to.public java.util.Set<AnnotationLink> getAnnotations()
AnnotatableData
getAnnotations
in interface AnnotatableData
void setAnnotations(java.util.Set<AnnotationLink> links)
public int getAutoPermission()
public void setAutoPermission(int autoPermission)
public PermissionTemplateData getPermissionTemplate()
public void setPermissionTemplate(PermissionTemplateData permissionTemplate)
public java.util.Map<UserData,java.lang.Integer> getUsers()
void setUsers(java.util.Map<UserData,java.lang.Integer> users)
public java.util.Map<GroupData,java.lang.Integer> getGroups()
void setGroups(java.util.Map<GroupData,java.lang.Integer> groups)
java.util.Set<ProjectKeyData> getProjectKeys()
ProjectKeyData.getProjects()
void setProjectKeys(java.util.Set<ProjectKeyData> projectKeys)
public java.util.Map<java.lang.String,java.lang.String> getProjectDefaults()
void setProjectDefaults(java.util.Map<java.lang.String,java.lang.String> projectDefaults)
public ItemParameterValueData getDefaultItems()
public void setDefaultItems(ItemParameterValueData defaultItems)