public class ProjectData extends OwnedData implements NameableData, RemovableData, RegisteredData
Project
,
Developer documentation: User authenticationModifier and Type | Field and Description |
---|---|
private int |
autoPermission |
private ItemParameterValueData |
defaultItems |
private String |
description |
private Date |
entryDate |
private Map<GroupData,Integer> |
groups |
private String |
name |
private PermissionTemplateData |
permissionTemplate |
private Map<String,String> |
projectDefaults |
private Set<ProjectKeyData> |
projectKeys |
private boolean |
removed |
private Map<UserData,Integer> |
users |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
ProjectData() |
Modifier and Type | Method and Description |
---|---|
int |
getAutoPermission()
The permissions to use with automatic sharing to this
project.
|
ItemParameterValueData |
getDefaultItems()
The default items to use in this project
|
String |
getDescription()
Get the description for the item.
|
Date |
getEntryDate()
Get the date this item was added to the database.
|
Map<GroupData,Integer> |
getGroups()
Get the map that manages which users are members of this project
and their permissions.
|
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.
|
Map<String,String> |
getProjectDefaults()
Gets the default values
|
(package private) Set<ProjectKeyData> |
getProjectKeys()
This is the inverse end.
|
Map<UserData,Integer> |
getUsers()
Get the map that manages which users are members of this project
and their permissions.
|
boolean |
isRemoved()
Check if the removed flag is set for this item.
|
void |
setAutoPermission(int autoPermission) |
void |
setDefaultItems(ItemParameterValueData defaultItems) |
void |
setDescription(String description)
Set the description for the item.
|
void |
setEntryDate(Date entryDate) |
(package private) void |
setGroups(Map<GroupData,Integer> groups) |
void |
setName(String name)
Set the name of the item.
|
void |
setPermissionTemplate(PermissionTemplateData permissionTemplate) |
(package private) void |
setProjectDefaults(Map<String,String> projectDefaults) |
(package private) void |
setProjectKeys(Set<ProjectKeyData> projectKeys) |
void |
setRemoved(boolean removed)
Set the removed flag for this item.
|
(package private) void |
setUsers(Map<UserData,Integer> users) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private String name
private String description
private boolean removed
private Date entryDate
private int autoPermission
private PermissionTemplateData permissionTemplate
private Set<ProjectKeyData> projectKeys
private ItemParameterValueData defaultItems
public String getName()
NameableData
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 boolean isRemoved()
RemovableData
isRemoved
in interface RemovableData
public void setRemoved(boolean removed)
RemovableData
setRemoved
in interface RemovableData
removed
- TRUE if the item should be flagged as removed,
FALSE otherwisepublic Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(Date entryDate)
public int getAutoPermission()
public void setAutoPermission(int autoPermission)
public PermissionTemplateData getPermissionTemplate()
public void setPermissionTemplate(PermissionTemplateData permissionTemplate)
public Map<UserData,Integer> getUsers()
public Map<GroupData,Integer> getGroups()
Set<ProjectKeyData> getProjectKeys()
ProjectKeyData.getProjects()
void setProjectKeys(Set<ProjectKeyData> projectKeys)
public Map<String,String> getProjectDefaults()
public ItemParameterValueData getDefaultItems()
public void setDefaultItems(ItemParameterValueData defaultItems)