public class StatusStorageImpl extends Object implements StatusStorage
| Constructor and Description |
|---|
StatusStorageImpl(DAOHandler daoHandler,
ProjectStorage projectStorage,
TaskStorage taskStorage) |
| Modifier and Type | Method and Description |
|---|---|
StatusDto |
createStatus(ProjectDto project,
String status) |
StatusDto |
createStatus(ProjectDto project,
String status,
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. |
List<StatusDto> |
listStatusToDTOs(List<Status> status) |
List<Status> |
listStatusToEntitys(List<StatusDto> status) |
void |
removeStatus(long statusId) |
StatusDto |
statusToDTO(Status status) |
Status |
statusToEntity(StatusDto statusDto) |
StatusDto |
updateStatus(long statusId,
String statusName) |
StatusDto |
updateStatus(StatusDto statusDto) |
public StatusStorageImpl(DAOHandler daoHandler, ProjectStorage projectStorage, TaskStorage taskStorage)
public StatusDto getStatus(long statusId)
StatusStorageStatus with given statusId.getStatus in interface StatusStoragestatusId - the given status id.public StatusDto getDefaultStatus(long projectId)
StatusStoragegetDefaultStatus in interface StatusStorageprojectId - the given project id.public List<StatusDto> getStatuses(long projectId)
StatusStorageprojectId.getStatuses in interface StatusStorageprojectId - the given project id.public StatusDto createStatus(ProjectDto project, String status)
createStatus in interface StatusStoragepublic StatusDto createStatus(ProjectDto project, String status, int rank) throws NotAllowedOperationOnEntityException
createStatus in interface StatusStorageNotAllowedOperationOnEntityExceptionpublic void removeStatus(long statusId)
throws Exception
removeStatus in interface StatusStorageExceptionpublic StatusDto updateStatus(long statusId, String statusName) throws EntityNotFoundException, NotAllowedOperationOnEntityException
updateStatus in interface StatusStorageEntityNotFoundExceptionNotAllowedOperationOnEntityExceptionpublic StatusDto updateStatus(StatusDto statusDto) throws EntityNotFoundException, NotAllowedOperationOnEntityException
updateStatus in interface StatusStorageEntityNotFoundExceptionNotAllowedOperationOnEntityExceptionpublic Status statusToEntity(StatusDto statusDto)
statusToEntity in interface StatusStoragepublic StatusDto statusToDTO(Status status)
statusToDTO in interface StatusStoragepublic List<StatusDto> listStatusToDTOs(List<Status> status)
listStatusToDTOs in interface StatusStoragepublic List<Status> listStatusToEntitys(List<StatusDto> status)
listStatusToEntitys in interface StatusStorageCopyright © 2003–2021 eXo Platform SAS. All rights reserved.