psdi.app.person.virtual

Class PersonAvail

    • Constructor Detail

      • PersonAvail

        public PersonAvail(MboSet ms)
                    throws MXException,
                           java.rmi.RemoteException
        Construct the PersonAvail object
        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
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        If the availability has been modified, we must check that all fields are filled in, and that the number of work hours is within the range of the times specified.
        Specified by:
        appValidate in interface PersonAvailRemote
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Delete can only happen if there is a ModAvail record for this line.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setupFields

        public void setupFields(java.util.GregorianCalendar startCal,
                                MboRemote person,
                                java.lang.String orgid,
                                AvailCalc availCalc)
                         throws MXException,
                                java.rmi.RemoteException
        Set up the fields by getting the workperiod or modavail mbo associated with each day and copying the relevant data.
        Specified by:
        setupFields in interface PersonAvailRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • saveModifiedAvailability

        public void saveModifiedAvailability()
                                      throws MXException,
                                             java.rmi.RemoteException
        If the mbo has been modified, update the ModAvail mbo that already exists, if there is one, or we add a new ModAvail mbo and update that if one did not already exist.
        Specified by:
        saveModifiedAvailability in interface PersonAvailRemote
        Throws:
        MXException
        java.rmi.RemoteException