psdi.app.workorder.virtual

Class CalendarViewSet

    • Constructor Detail

      • CalendarViewSet

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

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create an CalendarView object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The CalendarViewSet.
        Returns:
        an CalendarView Mbo object.
        Throws:
        MXException
        java.rmi.RemoteException
      • resetDates

        public void resetDates(java.util.Date newAMClientWorkDate)
                        throws MXException,
                               java.rmi.RemoteException
        Resets the clientAMWorkDate and the DayN fields in the CalendarView mbo.
        Specified by:
        resetDates in interface CalendarViewSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getClientDTFromServerDT

        public java.util.Date getClientDTFromServerDT(java.util.Date serverDateTime)
                                               throws MXException,
                                                      java.rmi.RemoteException
        Changes a datetime in the server's time zone to the equivalent one in the client's time zone. No attempt has been made to optimize this because it should be called only once per use of the Assignment Manager app.
        Specified by:
        getClientDTFromServerDT in interface CalendarViewSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getServerDTFromClientDT

        public java.util.Date getServerDTFromClientDT(java.util.Date clientDateTime)
                                               throws MXException,
                                                      java.rmi.RemoteException
        Changes a datetime in the client's time zone to the equivalent one in the server's time zone. No attempt has been made to optimize this because so far, it's called only when the user calls Show Assignments, which should be reasonably infrequent.
        Specified by:
        getServerDTFromClientDT in interface CalendarViewSetRemote
        Throws:
        MXException
        java.rmi.RemoteException