Package org.exoplatform.task.storage
Interface StatusStorage
- All Known Implementing Classes:
StatusStorageImpl
public interface StatusStorage
-
Method Summary
Modifier and TypeMethodDescriptioncreateStatus(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
-
getStatus
Return theStatuswith givenstatusId.- Parameters:
statusId- the given 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 given project id.- Returns:
- the default status of the given project.
-
getStatuses
Return the list of statuses from a project with givenprojectId.- Parameters:
projectId- the given project id.- Returns:
- the status of the given project.
-
createStatus
-
createStatus
StatusDto createStatus(ProjectDto project, String status, int rank) throws NotAllowedOperationOnEntityException -
removeStatus
- Throws:
Exception
-
updateStatus
StatusDto updateStatus(long statusId, String statusName) throws EntityNotFoundException, NotAllowedOperationOnEntityException -
updateStatus
StatusDto updateStatus(StatusDto statusDto) throws EntityNotFoundException, NotAllowedOperationOnEntityException
-