public interface StatusService
| Modifier and Type | Method and Description |
|---|---|
void |
createInitialStatuses(Project project)
Create initial statuses for given
project. |
Status |
createStatus(Project project,
String status) |
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 statusId,
String statusName) |
void createInitialStatuses(Project project)
project.
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.project - Status getStatus(long statusId)
Status with given statusId.statusId - Status getDefaultStatus(long projectId)
projectId - List<Status> getStatuses(long projectId)
projectId.projectId - Status removeStatus(long statusId) throws EntityNotFoundException, NotAllowedOperationOnEntityException
Status updateStatus(long statusId, String statusName) throws EntityNotFoundException, NotAllowedOperationOnEntityException
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.