psdi.app.ticket

Class WorkView

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


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

    This is a site level object.

    The key attributes for this object are recordkey and class.

    The attributes in this object are as follows:

    Attribute NameDescription
    ClassClassification of the record that can be either a Service Request, Problem, Incident, Activity, Change, Release or Work Order.
    DescriptionDescription of the Record.
    HistoryFlagIndicates if this record is in history. Closed and cancelled work orders and closed tickets are in history.
    IsTaskIndicates if the record is considered to be a work order task.
    OrgIdIdentifier of the organization for this record.
    OwnerAttribute that identifies the Owner for the record.
    OwnerGroupAttribute that identifies the Owner group for the record.
    PriorityPriority of the record.
    RecordKeyIdentifier of a record for a given workview class.
    ReportedByReported By of the record.
    ReportedDateReported Date of the record.
    SiteIdIdentifier of the site for this record.
    StatusThe status of the record.
    TicketIdNon-persistent attribute, can be used to setup a cross over domain to cross over additional fields from ticket to workview at post commit.
    WonumNon-persistent attribute, can be used to setup a cross over domain to cross over additional fields from work order to workview at post commit.

    • Constructor Detail

      • WorkView

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

      • add

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

        public void update()
                    throws MXException,
                           java.rmi.RemoteException
        Update values for a exist WorkView when owner is modified
        Throws:
        MXException
        java.rmi.RemoteException
      • validateKeyUniqueness

        public void validateKeyUniqueness()
                                   throws MXException,
                                          java.rmi.RemoteException
        Issue 08-25676, performace: override validateKeyUniqueness() so guaranteedUnique in the mboValues of the keys can be set to true. The keys for a WorkView object (recordkey, class, siteid) have already been validated for the owning workorder (recordkey == wonum and siteid) or ticket (recordkey == ticketid and class). Mbovalue.guaranteedUnique is set to true for each key, super.validateKeyUniqueness is called, and then guaranteedUnique is set back to false.
        Overrides:
        validateKeyUniqueness 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
        method for propagating key value
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Key Name
        keyValue - Key Value
        Throws:
        MXException
        java.rmi.RemoteException