Package org.exoplatform.task.service
Interface StatusService
- All Known Implementing Classes:
StatusServiceImpl
public interface StatusService
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateInitialStatuses(ProjectDto project) Create initial statuses for givenproject.createStatus(ProjectDto project, String status) createStatus(ProjectDto project, String status, int rank) getDefaultStatus(long projectId) Return the default status of the project which is ideally the first step in the project workflow.getStatus(long statusId) Return theStatuswith givenstatusId.getStatuses(long projectId) Return the list of statuses from a project with givenprojectId.voidremoveStatus(long statusId) updateStatus(long statusId, String statusName) updateStatus(StatusDto statusDto)
-
Method Details
-
createInitialStatuses
Create initial statuses for givenproject.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.- Parameters:
project- The given project.
-
getStatus
Return theStatuswith givenstatusId.- Parameters:
statusId- The status id.- Returns:
- The status of the given statusId.
-
getDefaultStatus
Return the default status of the project which is ideally the first step in the project workflow.- Parameters:
projectId- The project id.- Returns:
- The default status of the given project.
-
getStatuses
Return the list of statuses from a project with givenprojectId.- Parameters:
projectId- The project id.- Returns:
- The status of the given project.
-
createStatus
-
createStatus
StatusDto createStatus(ProjectDto project, String status, int rank) throws NotAllowedOperationOnEntityException -
removeStatus
void removeStatus(long statusId) throws EntityNotFoundException, NotAllowedOperationOnEntityException, Exception -
updateStatus
StatusDto updateStatus(long statusId, String statusName) throws EntityNotFoundException, NotAllowedOperationOnEntityException -
updateStatus
StatusDto updateStatus(StatusDto statusDto) throws EntityNotFoundException, NotAllowedOperationOnEntityException
-