psdi.app.ticket

Class TicketAsset

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


    public class TicketAsset
    extends Mbo
    implements TicketAssetRemote
    MBO to represent a TicketAsset See the Ticket package description for details.

    This is a system level object.

    There are no key attributes for this object.

    The attributes in this object are as follows:

    Identifier of the Asset
    CLASS Type of the ticket
    CREATEDATE Creation Date
    LDKEY Long description Key
    LOCATION Identifier of Location
    ORGID Constraint Identifier of the organization
    SITEID Unique Identifier of the Site
    TICKETASSETID Unique Identifier
    TICKETID Identifier of the Ticket

    • Constructor Detail

      • TicketAsset

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Sets default values for a new TicketAsset
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method overrides the skipCopyField() in the Mbo. This method takes the MboValueInfo as its parameter to see if this field needs to be copied or skipped.If this field does not need to be copied, it returns true. The following fields donot get copied from the source ticket to the target TicketAsset.
        1. ticketid
        2. class
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        True,if the field does not need to be copied.In all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
      • getLocForAsset

        public void getLocForAsset()
                            throws MXException,
                                   java.rmi.RemoteException
        Called by the assetnum attribute to set the ticketasset's location to the Asset's location If the asset has a valid location for the ticketasset, that location will be put on the ticketasset, if the location field is blank. If the ticketasset's locaiton is not blank, a warning will be given (MXApplicationException, ticket, AssetChangeLoc, parameter of the asset's location), but the location field won't change.
        Throws:
        MXException
        java.rmi.RemoteException