public class StatusAPI extends AEntityAPI<Status>
Status
entities.entityClass
Constructor and Description |
---|
StatusAPI() |
Modifier and Type | Method and Description |
---|---|
List<Status> |
getByProjekt(UserContext uc,
Projekt projekt)
|
Status |
getByUUID(UserContext uc,
Projekt project,
String uuid)
Returns the state with the given UUID
|
Status |
getByUUID(UserContext uc,
Projekt project,
UUID uuid)
Returns the state with the given UUID
|
List<Status> |
getFolgeStatus(UserContext uc,
Benutzer benutzer,
Projekt projekt,
Status aktuellerStatus)
|
List<Status> |
getStatusPre(UserContext uc,
Status state)
Retrieves the
Status.getStatusPre() . |
Status |
move(UserContext uc,
Status status,
int newIdxNum)
Method for moving a status to the committed index.
|
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
getHandlerProvider
public List<Status> getByProjekt(UserContext uc, Projekt projekt)
public List<Status> getFolgeStatus(UserContext uc, Benutzer benutzer, Projekt projekt, Status aktuellerStatus)
Status
which based on the committed Status
and the
appropriate Projekt
may be set, taking into account the authority of the given Benutzer
.uc
- UserContext
the user context in which the action is to be performed.benutzer
- Benutzer
which follow-up status should be determined.projekt
- Projekt
the project in which the status change is to be executed.aktuellerStatus
- Status
the current status from which the status change is to be executed.List
of Status
which are available for status change.public List<Status> getStatusPre(UserContext uc, Status state)
Status.getStatusPre()
.uc
- Current user context.state
- The state for which to get the Status.getStatusPre()
.public Status getByUUID(UserContext uc, Projekt project, String uuid)
uc
- UserContext
to useproject
- Projekt
context in which to look for the stateuuid
- String
UUID of the stateStatus
for the given UUID and projectpublic Status getByUUID(UserContext uc, Projekt project, UUID uuid)
uc
- UserContext
to useproject
- Projekt
context in which to look for the stateuuid
- UUID
UUID of the stateStatus
for the given UUID and projectpublic Status move(UserContext uc, Status status, int newIdxNum)
uc
- UserContext
the user context in which the action is to be performed.status
- Status
which should be moved.newIdxNum
- index number of the next status.Status
the moved status.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.