Package org.exoplatform.task.storage
Interface StatusStorage
-
- All Known Implementing Classes:
StatusStorageImpl
public interface StatusStorage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
-
getStatus
StatusDto getStatus(long statusId)
Return theStatuswith givenstatusId.- Parameters:
statusId- the given 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 given 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 given 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
-
updateStatus
StatusDto updateStatus(long statusId, String statusName) throws EntityNotFoundException, NotAllowedOperationOnEntityException
-
updateStatus
StatusDto updateStatus(StatusDto statusDto) throws EntityNotFoundException, NotAllowedOperationOnEntityException
-
-