@Singleton public class StatusServiceImpl extends Object implements StatusService
| Constructor and Description |
|---|
StatusServiceImpl(DAOHandler daoHandler) |
StatusServiceImpl(DAOHandler daoHandler,
StatusStorage statusStorage,
ProjectStorage projectStorage,
org.exoplatform.services.listener.ListenerService listenerService) |
| Modifier and Type | Method and Description |
|---|---|
void |
createInitialStatuses(ProjectDto proj)
Create initial statuses for given
project. |
StatusDto |
createStatus(ProjectDto project,
String name) |
StatusDto |
createStatus(ProjectDto project,
String name,
int rank) |
StatusDto |
getDefaultStatus(long projectId)
Return the default status of the project which is ideally the first step in the project workflow.
|
StatusDto |
getStatus(long statusId)
Return the
Status with given statusId. |
List<StatusDto> |
getStatuses(long projectId)
Return the list of statuses from a project with given
projectId. |
void |
removeStatus(long statusID) |
StatusDto |
updateStatus(long id,
String name) |
StatusDto |
updateStatus(StatusDto statusDto) |
public StatusServiceImpl(DAOHandler daoHandler, StatusStorage statusStorage, ProjectStorage projectStorage, org.exoplatform.services.listener.ListenerService listenerService)
public StatusServiceImpl(DAOHandler daoHandler)
public void createInitialStatuses(ProjectDto proj)
StatusServiceproject.
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.
createInitialStatuses in interface StatusServiceproj - The given project.public StatusDto getStatus(long statusId)
StatusServiceStatus with given statusId.getStatus in interface StatusServicestatusId - The status id.public StatusDto getDefaultStatus(long projectId)
StatusServicegetDefaultStatus in interface StatusServiceprojectId - The project id.public List<StatusDto> getStatuses(long projectId)
StatusServiceprojectId.getStatuses in interface StatusServiceprojectId - The project id.public StatusDto createStatus(ProjectDto project, String name)
createStatus in interface StatusServicepublic StatusDto createStatus(ProjectDto project, String name, int rank) throws NotAllowedOperationOnEntityException
createStatus in interface StatusServiceNotAllowedOperationOnEntityExceptionpublic void removeStatus(long statusID)
throws Exception
removeStatus in interface StatusServiceExceptionpublic StatusDto updateStatus(long id, String name) throws EntityNotFoundException, NotAllowedOperationOnEntityException
updateStatus in interface StatusServiceEntityNotFoundExceptionNotAllowedOperationOnEntityExceptionpublic StatusDto updateStatus(StatusDto statusDto) throws EntityNotFoundException, NotAllowedOperationOnEntityException
updateStatus in interface StatusServiceEntityNotFoundExceptionNotAllowedOperationOnEntityExceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.