psdi.app.inventory

Class InvPickListStatusHandler

  • All Implemented Interfaces:
    MboConstants


    public class InvPickListStatusHandler
    extends StatusHandler
    Handles all the status changes for an InvPickList object.
    • Constructor Detail

      • InvPickListStatusHandler

        public InvPickListStatusHandler(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 picklist.
        Specified by:
        checkStatusChangeAuthorization in class StatusHandler
        Parameters:
        desiredStatus - The status to change the picklist 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 exception is thrown. This method does not check user's security clearance.
        Overrides:
        canChangeStatus in class StatusHandler
        Parameters:
        currentStatus - The inventory usage document's current status
        desiredStatus - The status to change the inventory usage document to. This is the synonym value.
        accessModifier - If this flag is set to NOACCESSCHECK, a work flow controlled inventory Usage document may change status.
        Throws:
        MXException - Throws a MXAccessException.
        java.rmi.RemoteException
      • 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 - Item's current status.
        memo - Memo text.
        desiredStatus - The status to change to.
        Throws:
        MXException
        java.rmi.RemoteException