@Singleton public class StatusServiceImpl extends Object implements StatusService
| Constructor and Description |
|---|
StatusServiceImpl(DAOHandler daoHandler) |
| Modifier and Type | Method and Description |
|---|---|
Status |
createStatus(Project project,
String name) |
Status |
deleteStatus(long statusID) |
Status |
findLowestRankStatusByProject(long projectId) |
List<String> |
getDefaultStatus() |
Status |
getStatusById(long statusId) |
Status |
swapPosition(long statusID,
long otherID) |
Status |
updateStatus(long id,
String name) |
public StatusServiceImpl(DAOHandler daoHandler)
public List<String> getDefaultStatus()
getDefaultStatus in interface StatusServicepublic Status getStatusById(long statusId)
getStatusById in interface StatusServicepublic Status findLowestRankStatusByProject(long projectId)
findLowestRankStatusByProject in interface StatusServicepublic Status createStatus(Project project, String name)
createStatus in interface StatusServicepublic Status deleteStatus(long statusID) throws StatusNotFoundException, NotAllowedOperationOnEntityException
deleteStatus in interface StatusServiceStatusNotFoundExceptionNotAllowedOperationOnEntityExceptionpublic Status updateStatus(long id, String name) throws StatusNotFoundException, NotAllowedOperationOnEntityException
updateStatus in interface StatusServiceStatusNotFoundExceptionNotAllowedOperationOnEntityExceptionpublic Status swapPosition(long statusID, long otherID) throws NotAllowedOperationOnEntityException
swapPosition in interface StatusServiceNotAllowedOperationOnEntityExceptionCopyright © 2003–2015 eXo Platform SAS. All rights reserved.