Class StatusStorageImpl
- java.lang.Object
-
- org.exoplatform.task.storage.impl.StatusStorageImpl
-
- All Implemented Interfaces:
StatusStorage
public class StatusStorageImpl extends Object implements StatusStorage
-
-
Constructor Summary
Constructors Constructor Description StatusStorageImpl(DAOHandler daoHandler, ProjectStorage projectStorage)
-
Method Summary
All Methods Instance Methods Concrete 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)
-
-
-
Constructor Detail
-
StatusStorageImpl
public StatusStorageImpl(DAOHandler daoHandler, ProjectStorage projectStorage)
-
-
Method Detail
-
getStatus
public StatusDto getStatus(long statusId)
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
public StatusDto getDefaultStatus(long projectId)
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
public List<StatusDto> getStatuses(long projectId)
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
public StatusDto createStatus(ProjectDto project, String status)
- Specified by:
createStatusin interfaceStatusStorage
-
createStatus
public StatusDto createStatus(ProjectDto project, String status, int rank) throws NotAllowedOperationOnEntityException
- Specified by:
createStatusin interfaceStatusStorage- Throws:
NotAllowedOperationOnEntityException
-
removeStatus
public void removeStatus(long statusId) throws Exception- 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
-
-