Class StatusServiceImpl
java.lang.Object
org.exoplatform.task.service.impl.StatusServiceImpl
- All Implemented Interfaces:
StatusService
-
Constructor Summary
ConstructorsConstructorDescriptionStatusServiceImpl(DAOHandler daoHandler) StatusServiceImpl(DAOHandler daoHandler, StatusStorage statusStorage, ProjectStorage projectStorage, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate initial statuses for givenproject.createStatus(ProjectDto project, String name) createStatus(ProjectDto project, String name, 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 id, String name) updateStatus(StatusDto statusDto)
-
Constructor Details
-
StatusServiceImpl
public StatusServiceImpl(DAOHandler daoHandler, StatusStorage statusStorage, ProjectStorage projectStorage, org.exoplatform.services.listener.ListenerService listenerService) -
StatusServiceImpl
-
-
Method Details
-
createInitialStatuses
Description copied from interface:StatusServiceCreate 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.- Specified by:
createInitialStatusesin interfaceStatusService- Parameters:
proj- The given project.
-
getStatus
Description copied from interface:StatusServiceReturn theStatuswith givenstatusId.- Specified by:
getStatusin interfaceStatusService- Parameters:
statusId- The status id.- Returns:
- The status of the given statusId.
-
getDefaultStatus
Description copied from interface:StatusServiceReturn the default status of the project which is ideally the first step in the project workflow.- Specified by:
getDefaultStatusin interfaceStatusService- Parameters:
projectId- The project id.- Returns:
- The default status of the given project.
-
getStatuses
Description copied from interface:StatusServiceReturn the list of statuses from a project with givenprojectId.- Specified by:
getStatusesin interfaceStatusService- Parameters:
projectId- The project id.- Returns:
- The status of the given project.
-
createStatus
- Specified by:
createStatusin interfaceStatusService
-
createStatus
public StatusDto createStatus(ProjectDto project, String name, int rank) throws NotAllowedOperationOnEntityException - Specified by:
createStatusin interfaceStatusService- Throws:
NotAllowedOperationOnEntityException
-
removeStatus
- Specified by:
removeStatusin interfaceStatusService- Throws:
Exception
-
updateStatus
public StatusDto updateStatus(long id, String name) throws EntityNotFoundException, NotAllowedOperationOnEntityException - Specified by:
updateStatusin interfaceStatusService- Throws:
EntityNotFoundExceptionNotAllowedOperationOnEntityException
-
updateStatus
public StatusDto updateStatus(StatusDto statusDto) throws EntityNotFoundException, NotAllowedOperationOnEntityException - Specified by:
updateStatusin interfaceStatusService- Throws:
EntityNotFoundExceptionNotAllowedOperationOnEntityException
-