@Singleton public class StatusServiceImpl extends Object implements StatusService
| Constructor and Description |
|---|
StatusServiceImpl(DAOHandler daoHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
createInitialStatuses(Project proj)
Create initial statuses for given
project. |
Status |
createStatus(Project project,
String name) |
Status |
getDefaultStatus(long projectId)
Return the default status of the project which is ideally the first step in the project workflow.
|
Status |
getStatus(long statusId)
Return the
Status with given statusId. |
List<Status> |
getStatuses(long projectId)
Return the list of statuses from a project with given
projectId. |
Status |
removeStatus(long statusID) |
Status |
updateStatus(long id,
String name) |
public StatusServiceImpl(DAOHandler daoHandler)
public void createInitialStatuses(Project proj)
StatusServiceproject.
The initial statuses can be configured via a system exo property exo.tasks.default.status.
If it's not configured, the default {"To Do", "In Progress", "Waiting On", "Done"} will be used.createInitialStatuses in interface StatusServicepublic Status getStatus(long statusId)
StatusServiceStatus with given statusId.getStatus in interface StatusServicepublic Status getDefaultStatus(long projectId)
StatusServicegetDefaultStatus in interface StatusServicepublic List<Status> getStatuses(long projectId)
StatusServiceprojectId.getStatuses in interface StatusServicepublic Status createStatus(Project project, String name)
createStatus in interface StatusServicepublic Status removeStatus(long statusID) throws EntityNotFoundException, NotAllowedOperationOnEntityException
removeStatus in interface StatusServiceEntityNotFoundExceptionNotAllowedOperationOnEntityExceptionpublic Status updateStatus(long id, String name) throws EntityNotFoundException, NotAllowedOperationOnEntityException
updateStatus in interface StatusServiceEntityNotFoundExceptionNotAllowedOperationOnEntityExceptionCopyright © 2003–2015 eXo Platform SAS. All rights reserved.