Package org.exoplatform.task.service
Interface StatusService
-
- All Known Implementing Classes:
StatusServiceImpl
public interface StatusService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateInitialStatuses(ProjectDto project)Create initial statuses for givenproject.StatusDtocreateStatus(ProjectDto project, String status)StatusDtocreateStatus(ProjectDto project, String status, int rank)StatusDtogetDefaultStatus(long projectId)Return the default status of the project which is ideally the first step in the project workflow.StatusDtogetStatus(long statusId)Return theStatuswith givenstatusId.List<StatusDto>getStatuses(long projectId)Return the list of statuses from a project with givenprojectId.voidremoveStatus(long statusId)StatusDtoupdateStatus(long statusId, String statusName)StatusDtoupdateStatus(StatusDto statusDto)
-
-
-
Method Detail
-
createInitialStatuses
void createInitialStatuses(ProjectDto project)
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
StatusDto getStatus(long statusId)
Return theStatuswith givenstatusId.- Parameters:
statusId- The status id.- Returns:
- The status of the given statusId.
-
getDefaultStatus
StatusDto getDefaultStatus(long projectId)
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
List<StatusDto> getStatuses(long projectId)
Return the list of statuses from a project with givenprojectId.- Parameters:
projectId- The project id.- Returns:
- The status of the given project.
-
createStatus
StatusDto createStatus(ProjectDto project, String status)
-
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
-
-