psdi.app.asset

Class AssetUserCust

  • All Implemented Interfaces:
    java.rmi.Remote, AssetLocUserCustRemote, AssetUserCustRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class AssetUserCust
    extends AssetLocUserCust
    implements AssetUserCustRemote
    MBO object to represent AssetUserCust. See Asset package description for details.

    This is a site level object.

    The key attributes for this object are as follows: SiteId and Assetnum.

    The attributes in this object are as follows:

    Attribute NameDescription
    AssetnumUnique identifier of the Asset.
    IsCustodianT/F is this person a custodian?
    IsUserT/F is this person a user?
    OrgidOrganization this asset belongs to.
    PersonPerson the record is about.
    SiteidSite this organization belongs to.
    • Constructor Detail

      • AssetUserCust

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

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Cannot delete a row if this person is in Planned Modifications.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessmodifier)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        Mark the object to be deleted depending on the access modifier. This will usually be overridden in the subclass of Mbo as there may be application specific rules as to if and when an object can be deleted. Object is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        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)
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        This is called whenever a change is made to the attributes of AssetUserCust. When any field related to AssetUserCust is changed, the owner Asset's changedate/changeby is updated.
        Overrides:
        modify in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException