Class PermissionStateTransitionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
energy.eddie.api.agnostic.process.model.PermissionStateTransitionException
All Implemented Interfaces:
Serializable

public class PermissionStateTransitionException extends Exception
See Also:
  • Constructor Details

    • PermissionStateTransitionException

      public PermissionStateTransitionException(String permissionId, PermissionProcessStatus desiredState, List<PermissionProcessStatus> allowedCurrentStates, PermissionProcessStatus currentStatus)
      Indicate that a permission state transition was requested, but cannot be executed because the permission current state is not the required previous state for a successful transition. The permission has to be in a state of allowedCurrentStates that a transition to desiredState is permitted.
      Parameters:
      permissionId - ID of the permission that should be transitioned.
      desiredState - State to which the permission should be transitioned.
      allowedCurrentStates - List of states which allow the permission to be transitioned to desiredState.
      currentStatus - Current state of the permission.
    • PermissionStateTransitionException

      public PermissionStateTransitionException(String permissionId, PermissionProcessStatus desiredState, PermissionProcessStatus allowedCurrentStates, PermissionProcessStatus currentStatus)
      Convenience method for PermissionStateTransitionException(String, PermissionProcessStatus, List, PermissionProcessStatus) if there is only one state that allows the transition to desiredState.
    • PermissionStateTransitionException

      public PermissionStateTransitionException(String permissionId, String desiredState, List<String> allowedCurrentStates, String currentStatus)