Class StatusStorageImpl
java.lang.Object
org.exoplatform.task.storage.impl.StatusStorageImpl
- All Implemented Interfaces:
StatusStorage
-
Constructor Summary
ConstructorsConstructorDescriptionStatusStorageImpl(DAOHandler daoHandler, TaskStorage taskStorage, ProjectStorage projectStorage) -
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, boolean removeAll) updateStatus(long statusId, String statusName) updateStatus(StatusDto statusDto)
-
Constructor Details
-
StatusStorageImpl
public StatusStorageImpl(DAOHandler daoHandler, TaskStorage taskStorage, ProjectStorage projectStorage)
-
-
Method Details
-
getStatus
Description copied from interface:StatusStorageReturn theStatuswith givenstatusId.- Specified by:
getStatusin interfaceStatusStorage- Parameters:
statusId- the given status id.- Returns:
- the status of the given statusId.
-
getDefaultStatus
Description copied from interface:StatusStorageReturn the default status of the project which is ideally the first step in the project workflow.- Specified by:
getDefaultStatusin interfaceStatusStorage- Parameters:
projectId- the given project id.- Returns:
- the default status of the given project.
-
getStatuses
Description copied from interface:StatusStorageReturn the list of statuses from a project with givenprojectId.- Specified by:
getStatusesin interfaceStatusStorage- Parameters:
projectId- the given project id.- Returns:
- the status of the given project.
-
createStatus
- Specified by:
createStatusin interfaceStatusStorage
-
createStatus
public StatusDto createStatus(ProjectDto project, String status, int rank) throws NotAllowedOperationOnEntityException - Specified by:
createStatusin interfaceStatusStorage- Throws:
NotAllowedOperationOnEntityException
-
removeStatus
- Specified by:
removeStatusin interfaceStatusStorage- Throws:
Exception
-
updateStatus
public StatusDto updateStatus(long statusId, String statusName) throws EntityNotFoundException, NotAllowedOperationOnEntityException - Specified by:
updateStatusin interfaceStatusStorage- Throws:
EntityNotFoundExceptionNotAllowedOperationOnEntityException
-
updateStatus
public StatusDto updateStatus(StatusDto statusDto) throws EntityNotFoundException, NotAllowedOperationOnEntityException - Specified by:
updateStatusin interfaceStatusStorage- Throws:
EntityNotFoundExceptionNotAllowedOperationOnEntityException
-