Class StatusAPI


@Deprecated public class StatusAPI extends AEntityAPI<Status>
Deprecated.
Use WorkflowStateAPI and the new workflow engine.
API class for manipulation of Status entities.
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • StatusAPI

      public StatusAPI()
      Deprecated.
  • Method Details

    • getByProjekt

      public List<Status> getByProjekt(UserContext uc, Projekt projekt)
      Deprecated.
      Method for determining all Status if a Projekt.
      Parameters:
      uc - UserContext the user context in which the action is to be performed.
      projekt - Projekt whose Status is to be determined.
      Returns:
      List of Status by Projekt.
      Since:
      2.4.3
    • getStatusPre

      public List<Status> getStatusPre(UserContext uc, Status state)
      Deprecated.
      Retrieves the Status.getStatusPre().
      Parameters:
      uc - Current user context.
      state - The state for which to get the Status.getStatusPre().
      Returns:
      All states that allow a state change to the given state.
    • getByUUID

      public Status getByUUID(UserContext uc, Projekt project, String uuid)
      Deprecated.
      Returns the state with the given UUID
      Parameters:
      uc - UserContext to use
      project - Projekt context in which to look for the state
      uuid - String UUID of the state
      Returns:
      Status for the given UUID and project
      Since:
      6.x.x
    • getByUUID

      public Status getByUUID(UserContext uc, Projekt project, UUID uuid)
      Deprecated.
      Returns the state with the given UUID
      Parameters:
      uc - UserContext to use
      project - Projekt context in which to look for the state
      uuid - UUID UUID of the state
      Returns:
      Status for the given UUID and project
      Since:
      6.x.x
    • move

      public Status move(UserContext uc, Status status, int newIdxNum)
      Deprecated.
      Method for moving a status to the committed index.
      Parameters:
      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.
      Returns:
      Status the moved status.
    • getFolgeStatus

      @Deprecated public List<Status> getFolgeStatus(UserContext uc, Benutzer benutzer, Projekt projekt, Status aktuellerStatus)
      Deprecated.
      Method for determining the List of follow-up Status which based on the committed Status and the appropriate Projekt may be set, taking into account the authority of the given Benutzer.
      Parameters:
      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.
      Returns:
      List of Status which are available for status change.
      Since:
      2.4.3