psdi.app.ticket

Class TicketSet

    • Constructor Detail

      • TicketSet

        public TicketSet(MboServerInterface ms)
                  throws MXException,
                         java.rmi.RemoteException
        Construct the set
        Parameters:
        ms - The Mbo Server interface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generate a new Ticket object
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - MboSet
        Returns:
        the new Ticket object
        Throws:
        MXException
        java.rmi.RemoteException
      • setHistory

        public void setHistory(boolean historyTikcets)
                        throws MXException,
                               java.rmi.RemoteException
        Sets the userpref history setting.
        Parameters:
        historyTikcets - The userpref setting for history tickets.
        Throws:
        MXException
        java.rmi.RemoteException
      • setCurrent

        public void setCurrent(boolean currentTickets)
                        throws MXException,
                               java.rmi.RemoteException
        Sets the userpref current setting.
        Parameters:
        currentTickets - The userpref setting for current tickets
        Throws:
        MXException
        java.rmi.RemoteException
      • getHistory

        public boolean getHistory()
                           throws MXException,
                                  java.rmi.RemoteException
        Get method to show only closed Tickets.
        Returns:
        The userpref setting for history Tickets.
        Throws:
        MXException
        java.rmi.RemoteException
      • getCurrent

        public boolean getCurrent()
                           throws MXException,
                                  java.rmi.RemoteException
        Gets the current setting which was set by the user.
        Returns:
        The userpref setting for current Tickets
        Throws:
        MXException
        java.rmi.RemoteException
      • getUserPrefWhere

        public java.lang.String getUserPrefWhere()
        Overrides the MboSet getUserPrefWhere() to return a userpref where clause which is appended to the existing whereClause. This is called by the framework to allow any application specific modifications to the whereClause. In this case this method is overridden to support filters on history/current tickets.
        Overrides:
        getUserPrefWhere in class MboSet
        Returns:
        The userpref where clause.
        See Also:
        Show tickets in history?, Show open Tickets?
      • canAdd

        public void canAdd()
                    throws MXException
        Tickets may be added to a set which is owned by a Ticket which may not own other Tickets.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXException