psdi.app.solution

Class SolutionStatusHandler

  • All Implemented Interfaces:
    MboConstants


    public class SolutionStatusHandler
    extends StatusHandler
    Handles all the status changes for a solution object.This is a helper class.
    • Constructor Detail

      • SolutionStatusHandler

        public SolutionStatusHandler(StatefulMbo sm)
        Constructor
        Parameters:
        sm -
    • Method Detail

      • checkStatusChangeAuthorization

        public void checkStatusChangeAuthorization(java.lang.String desiredStatus)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Determines which statuses to show in the list returned by the Mbo's getStatusList method. This test determines whether a status change is possible by only checking the user's security and the current status of the solution.
        Specified by:
        checkStatusChangeAuthorization in class StatusHandler
        Parameters:
        desiredStatus - The status to change the Solution to. This is the synonym value.
        Throws:
        MXException - Throws an access exception with group key "access" and error key "notauthorized" if the user does not have security for a status change.
        java.rmi.RemoteException
        See Also:
        The calling method.
      • canChangeStatus

        public void canChangeStatus(java.lang.String currentStatus,
                                    java.lang.String desiredStatus,
                                    long accessModifier)
                             throws MXException,
                                    java.rmi.RemoteException
        Defines which status changes are legal. If a status change is not legal, an MXAccessException is thrown.
        Overrides:
        canChangeStatus in class StatusHandler
        Parameters:
        currentStatus - The current external status of the Labor
        desiredStatus - The desired external status of the Labor
        accessModifier -
        Throws:
        MXApplicationException("SOLUTION", - "invalidstatus")
        MXException
        java.rmi.RemoteException
        See Also:
        possibleStatusChange
      • changeStatus

        public void changeStatus(java.lang.String currentStatus,
                                 java.lang.String desiredStatus,
                                 java.util.Date asOfDate,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Change the status from the current state to a desired state.
        Overrides:
        changeStatus in class StatusHandler
        Parameters:
        asOfDate - The date as of the status change is to be made. If null, set to the current date/time.
        currentStatus - The parent WO's status now.
        memo - Memo text.
        desiredStatus - The status to change to.
        Throws:
        MXException
        java.rmi.RemoteException