psdi.dm

Class DMPkgDefStatusHandler

    • Field Detail

      • statusChangeMatrix

        public static boolean[][] statusChangeMatrix
        A statusChangeMatrix for the legal status changes that can be made.

        Status   WAPPR   APPR   LOCKED 
        WAPPR false true false
        APPR false false true
        LOCKED false true false
        The above table must be read from right to left only.
        For example , if you want to change the status from WAPPR to APPR , look at the left for the WAPPR row and look at the intersecting APPR column. The value is TRUE. This means that this status change is allowed.
    • Constructor Detail

      • DMPkgDefStatusHandler

        public DMPkgDefStatusHandler(StatefulMbo sm)
    • Method Detail

      • canChangeStatus

        public void canChangeStatus(java.lang.String currentStatus,
                                    java.lang.String desiredStatus,
                                    long accessModifier)
                             throws MXException,
                                    java.rmi.RemoteException
        Description copied from class: StatusHandler
        Can a certain status change be performed ?
        Overrides:
        canChangeStatus in class StatusHandler
        Throws:
        MXException
        java.rmi.RemoteException
      • changeStatus

        public void changeStatus(java.lang.String currentStatus,
                                 java.lang.String desiredStatus,
                                 java.util.Date date,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Description copied from class: StatusHandler
        Change the status from the specified state to a desired state It is up to the programmer to throw and exception from this rountine if the specified status does not exist !
        Overrides:
        changeStatus in class StatusHandler
        Throws:
        MXException
        java.rmi.RemoteException