psdi.app.contract

Class ContractAsset

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, ContractAssetRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class ContractAsset
    extends Mbo
    implements ContractAssetRemote
    MBO object to represent the object for authorizing contracts. Only those sites that have an entry in this table will be able to access the contract.
    See Contract Package description.
    The attributes in this object are as follows:


    Attribute Name Description
    ContractAssetId Unique identifier for every ContractAsset record.
    ContractNum Contract number.
    OrgId The organization identifier which indicates the organization in which this contract was created..
    RevisionNum Revision number of the contract.

    Last Update: Monday, April 11, 2004 - Ganesh - javadocs

    • Constructor Detail

      • ContractAsset

        public ContractAsset(MboSet ms)
                      throws MXException,
                             java.rmi.RemoteException
        Construct the ContractAuth object.
        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new ContractAuth record. Required Fields of the ContractAuth are set in this method. The following fields are initialised with their respective values


        Attribute Name Attribute Value
        contractauthid unique identifier for every contractauth.
        contractnum contract number of the contract.
        vendor Vendor of the contract.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Set value for CONTRACTNUM.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "CONTRACTNUM" or else nothing will be propagated.
        keyValue - The new value of CONTRACTNUM.
        Throws:
        MXException
        java.rmi.RemoteException
      • calculateEndDate

        public java.util.Date calculateEndDate()
                                        throws MXException,
                                               java.rmi.RemoteException
        Calculate the end date by adding the term to the current date. The term is in months.
        Returns:
        Date The calculated end date.
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Makes sure that at lease one of the asset and the location fields have been entered.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: Mbo
        Can the object be deleted ? This is object specific and should be overridden.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException