psdi.app.persongroup

Interface PersonGroupRemote

  • All Superinterfaces:
    MboRemote, java.rmi.Remote
    All Known Implementing Classes:
    PersonGroup


    public interface PersonGroupRemote
    extends MboRemote
    Remote Interface to the AssignmntQueue object.
    • Method Detail

      • getResponsibleParty

        PersonGroupTeamSetRemote getResponsibleParty()
                                              throws MXException,
                                                     java.rmi.RemoteException
        Obtain the initial responsible party for this work order person group. It returns the mbo set of PersonGroupTeam sorted by respartygroupseq.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.persongroup.getCurrentFirstAvailablePerson().
      • getCurrentResponsiblePerson

        PersonRemote getCurrentResponsiblePerson(java.util.Date date,
                                                 java.lang.String orgID,
                                                 java.lang.String siteID,
                                                 boolean treatNoCalAsAvailable)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getCurrentResponsiblePerson

        PersonRemote getCurrentResponsiblePerson(java.util.Date date,
                                                 java.lang.String orgID,
                                                 java.lang.String siteID)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getCurrentResponsiblePerson

        PersonRemote getCurrentResponsiblePerson(java.util.Date date)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getAvailablePersonforBroadcast

        PersonSetRemote getAvailablePersonforBroadcast(java.lang.String orgID,
                                                       java.lang.String siteID)
                                                throws MXException,
                                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getNextAvailablePerson

        PersonRemote getNextAvailablePerson(java.util.Date date,
                                            java.lang.String skipPersonId)
                                     throws MXException,
                                            java.rmi.RemoteException
        Returns the next available Person in the person group in the sequence after the given Person. Note that the logic behind this method does not return any SITE default person or ORG default person or Group default person. The code simply loops through the list of persons in the sequence defined for the person group and finds the next available person. If no person is available, returns null. If skipPersonId is set to null, then finds the available person in the sequence order from first to last. If no person is available, returns null. If a person in the person group does not have a calendar/shift, then it is assumed that the person is available.
        Parameters:
        date - date for which avaialbility needs to be checked.
        skipPersonId - Person Id in the sequence from which to find the next available person in the person group. If null is specified for this, returns the first available person in the person group.
        Returns:
        PersonRemote Returns the next available person, otherwise returns null.
        Throws:
        MXException
        java.rmi.RemoteException
      • getNextAvailablePerson

        PersonRemote getNextAvailablePerson(java.util.Date date,
                                            java.lang.String orgID,
                                            java.lang.String siteID,
                                            java.lang.String skipPersonId)
                                     throws MXException,
                                            java.rmi.RemoteException
        Returns the next available Person in the person group in the sequence after the given Person. Note that the logic behind this method does not return any SITE default person or ORG default person or Group default person. The code simply loops through the list of persons in the sequence defined for the person group and finds the next available person. If no person is available, returns null. If skipPersonId is set to null, then finds the available person in the sequence order from first to last. If no person is available, returns null. If a person in the person group does not have a calendar/shift, then it is assumed that the person is available. If siteID is passed, then only finds the available person based on the following - person defined with useforsite that matches the siteID or - persons that do not have the useforsite specified or usefororg specified and skipping the passed skipPersonID in the sequence order. If orgID is passed, then only finds the available person based on the following - person defined with usefororg that matches the orgID or - person defined with useforsite that belongs to the orgID - persons that do not have the useforsite specified or usefororg specified and skipping the passed skipPersonID in the sequence order. If both siteID and orgID are specified, then the behavior is same as just passing in orgID NOTE: For a person within a person group, you can only specify either useforsite or usefororg and not both.
        Parameters:
        date - date for which avaialbility needs to be checked.
        orgID - organization id
        siteID - site id
        skipPersonId - Person Id in the sequence from which to find the next available person in the person group. If null is specified for this, returns the first available person in the person group.
        Returns:
        PersonRemote Returns the next available person, otherwise returns null.
        Throws:
        MXException
        java.rmi.RemoteException