public interface StatusService
| Modifier and Type | Method and Description |
|---|---|
void |
createInitialStatuses(ProjectDto project)
Create initial statuses for given
project. |
StatusDto |
createStatus(ProjectDto project,
String status) |
StatusDto |
createStatus(ProjectDto project,
String status,
int rank) |
StatusDto |
getDefaultStatus(long projectId)
Return the default status of the project which is ideally the first step in the project workflow.
|
StatusDto |
getStatus(long statusId)
Return the
Status with given statusId. |
List<StatusDto> |
getStatuses(long projectId)
Return the list of statuses from a project with given
projectId. |
void |
removeStatus(long statusId) |
StatusDto |
updateStatus(long statusId,
String statusName) |
StatusDto |
updateStatus(StatusDto statusDto) |
void createInitialStatuses(ProjectDto 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 - The given project.StatusDto getStatus(long statusId)
Status with given statusId.statusId - The status id.StatusDto getDefaultStatus(long projectId)
projectId - The project id.List<StatusDto> getStatuses(long projectId)
projectId.projectId - The project id.StatusDto createStatus(ProjectDto project, String status)
StatusDto createStatus(ProjectDto project, String status, int rank) throws NotAllowedOperationOnEntityException
void removeStatus(long statusId)
throws EntityNotFoundException,
NotAllowedOperationOnEntityException,
Exception
StatusDto updateStatus(long statusId, String statusName) throws EntityNotFoundException, NotAllowedOperationOnEntityException
StatusDto updateStatus(StatusDto statusDto) throws EntityNotFoundException, NotAllowedOperationOnEntityException
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.