public class Project extends DefaultTraversableAmetysObject<ProjectFactory> implements ProjectsTreeNode, EventHolder
AmetysObject
for storing project informations.Modifier and Type | Class and Description |
---|---|
static class |
Project.InscriptionStatus
The inscription status of the project
|
Modifier and Type | Field and Description |
---|---|
private static String |
__EXPLORER_NODE_NAME |
private static String |
__METADATA_CREATION |
private static String |
__METADATA_DEFAULT_PROFILE |
private static String |
__METADATA_DESCRIPTION |
private static String |
__METADATA_INSCRIPTION_STATUS |
private static String |
__METADATA_MAILING_LIST |
private static String |
__METADATA_MANAGER |
private static String |
__METADATA_MODULES |
private static String |
__METADATA_TITLE |
private static String |
__METADATA_URL |
static String |
METADATA_SITES
Metadata name for project 's sites
|
static String |
NODE_TYPE
Project node type name.
|
Constructor and Description |
---|
Project(Node node,
String parentPath,
ProjectFactory factory)
Creates a
Project . |
Modifier and Type | Method and Description |
---|---|
void |
addModule(String moduleId)
Add a module to the list of activated modules
|
Date |
getCreationDate()
Retrieves the date of creation.
|
String |
getDefaultProfile()
Get the default profile for new members of the project
|
String |
getDescription()
Retrieves the description.
|
NodeIterator |
getEvents()
Returns the events' nodes
|
Node |
getEventsRootNode()
Returns the node holding the events
|
AmetysObjectIterable<ExplorerNode> |
getExplorerNodes()
Retrieves the explorer nodes.
|
ExplorerNode |
getExplorerRootNode()
Retrieves the explorer nodes.
|
Project.InscriptionStatus |
getInscriptionStatus()
Get the inscription status of the project
|
String |
getMailingList()
Retrieves the mailing list.
|
UserIdentity |
getManager()
Get the project manager user identity
|
String[] |
getModules()
Retrieve the list of activated modules for the project
|
Collection<Site> |
getSites()
Get the sites of the project
|
String |
getTitle()
Retrieves the title.
|
String |
getURL()
Retrieves the URL.
|
void |
removeDescription()
Remove the description.
|
void |
removeMailingList()
Remove the mailing list.
|
void |
removeModule(String moduleId)
Remove a module from the list of activated modules
|
void |
setCreationDate(Date creationDate)
Set the date of creation.
|
void |
setDefaultProfile(String profileId)
Set the default profile for the members of the project
|
void |
setDescription(String description)
Set the description.
|
void |
setInscriptionStatus(String inscriptionStatus)
Set the inscription status of the project
|
void |
setMailingList(String mailingList)
Set the mailing list.
|
void |
setManager(UserIdentity user)
Set the project manager
|
void |
setModules(String[] modules)
Set the list of activated modules for the project
|
void |
setSites(Collection<String> sites)
Set the sites of the project
|
void |
setTitle(String title)
Set the title.
|
void |
setURL(String url)
Set the URL.
|
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasChild, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getProjectsTreePath
getChild, getChildAt, getChildPosition, getChildren, hasChild
equals, getId, getName, getParent, getParentPath, getPath, hashCode
getNode
getMetadataHolder
needsSave, rename, revertChanges, saveChanges
remove
public static final String NODE_TYPE
public static final String METADATA_SITES
private static final String __EXPLORER_NODE_NAME
private static final String __METADATA_TITLE
private static final String __METADATA_DESCRIPTION
private static final String __METADATA_URL
private static final String __METADATA_MAILING_LIST
private static final String __METADATA_CREATION
private static final String __METADATA_MANAGER
private static final String __METADATA_MODULES
private static final String __METADATA_INSCRIPTION_STATUS
private static final String __METADATA_DEFAULT_PROFILE
public Project(Node node, String parentPath, ProjectFactory factory)
Project
.node
- the node backing this AmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- the ProjectFactory
which creates the AmetysObject.public String getTitle() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setTitle(String title) throws AmetysRepositoryException
title
- the title.AmetysRepositoryException
- if an error occurs.public String getDescription() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setDescription(String description) throws AmetysRepositoryException
description
- the description.AmetysRepositoryException
- if an error occurs.public void removeDescription() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public String getURL() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setURL(String url) throws AmetysRepositoryException
url
- the URL.AmetysRepositoryException
- if an error occurs.public ExplorerNode getExplorerRootNode() throws AmetysRepositoryException
AmetysObjectIterable
.AmetysRepositoryException
- if an error occurs.public AmetysObjectIterable<ExplorerNode> getExplorerNodes() throws AmetysRepositoryException
AmetysObjectIterable
.AmetysRepositoryException
- if an error occurs.public String getMailingList() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setMailingList(String mailingList) throws AmetysRepositoryException
mailingList
- the mailing list.AmetysRepositoryException
- if an error occurs.public void removeMailingList() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public Date getCreationDate() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setCreationDate(Date creationDate) throws AmetysRepositoryException
creationDate
- the date of creationAmetysRepositoryException
- if an error occurs.public Node getEventsRootNode() throws RepositoryException
EventHolder
getEventsRootNode
in interface EventHolder
RepositoryException
- if failed to get event holder nodepublic NodeIterator getEvents() throws RepositoryException
EventHolder
getEvents
in interface EventHolder
RepositoryException
- if failed to get events' nodespublic Collection<Site> getSites()
public void setSites(Collection<String> sites)
sites
- The names of the sitepublic UserIdentity getManager()
public void setManager(UserIdentity user)
user
- The managerpublic String[] getModules()
public void setModules(String[] modules)
modules
- The list of modulespublic void addModule(String moduleId)
moduleId
- The module idpublic void removeModule(String moduleId)
moduleId
- The module idpublic Project.InscriptionStatus getInscriptionStatus()
public void setInscriptionStatus(String inscriptionStatus)
inscriptionStatus
- The inscription statuspublic String getDefaultProfile()
public void setDefaultProfile(String profileId)
profileId
- The ID of the profile