psdi.app.sfwlicview

Class ContSfwLic

  • java.lang.Object
    • Constructor Detail

      • ContSfwLic

        public ContSfwLic(MboSet ms)
                   throws MXException,
                          java.rmi.RemoteException
        Construct the contract license object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        sets field defaults for a new ContLicense object
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        delete this contract license object. If it the last contract license of a contract line then set contractline.licensed and swview.fullylic fields to false.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • save

        protected void save()
                     throws MXException,
                            java.rmi.RemoteException
        Keep swlicense.associated field updated: true when the sfwlicenseid exists in contlicense, else false.
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Licenses can only be deleted to contracts that is in a status of Approved.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException