psdi.app.citype

Class CdmCiTypeStatusHandler

    • Constructor Detail

      • CdmCiTypeStatusHandler

        public CdmCiTypeStatusHandler(StatefulMbo sm)
        Parameters:
        sm -
    • Method Detail

      • setUseWithActCI

        public void setUseWithActCI()
                             throws java.rmi.RemoteException,
                                    MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • setRootUseWithActCI

        public void setRootUseWithActCI(MboSetRemote classUseWithSetAdd,
                                        MboRemote domainMbo,
                                        int topLevel)
                                 throws java.rmi.RemoteException,
                                        MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • changeStatus

        public void changeStatus(java.lang.String currentStatus,
                                 java.lang.String status,
                                 java.util.Date asOfDate,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Object can over override this method to process pre status change logic. called by statefulmbo
        Overrides:
        changeStatus in class StatusHandler
        Throws:
        MXException
        java.rmi.RemoteException
      • checkStatusChangeAuthorization

        public void checkStatusChangeAuthorization(java.lang.String desiredStatus)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Checks to see if the user is authorised to make a status changes. In other words , it checks if the user has the required privilege to change the status. After ensuring that the user has the required privilege, this methods checks if the status change is legal.
        Specified by:
        checkStatusChangeAuthorization in class StatusHandler
        Parameters:
        desiredStatus - The current external status of the CI Type.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        checkUserSecurity, possibleStatusChange
      • checkUserSecurity

        public void checkUserSecurity(java.lang.String desiredMaxStatus)
                               throws MXException,
                                      java.rmi.RemoteException
        Check out the users security rights to call the specified status. Note the status passed in is the INTERNAL status code.
        Note that the SigOption Option Name doesn't always match the status name.
        Parameters:
        status - The status to check if we can change to.
        Throws:
        MXAccessException - Throws an access exception "notauthorized" if the check fails.
        MXException
        java.rmi.RemoteException
      • addClassUseWith

        protected void addClassUseWith(java.lang.String classStructureID,
                                       MboSetRemote classUseWithSetAdd,
                                       MboRemote domainMbo,
                                       int topLevel)
                                throws MXException,
                                       java.rmi.RemoteException
        Set the use with actci record for a classStructureID
        Throws:
        MXException
        java.rmi.RemoteException