psdi.app.jobplan

Class JobPlanService

    • Constructor Detail

      • JobPlanService

        public JobPlanService()
                       throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • JobPlanService

        public JobPlanService(MXServer mxServer)
                       throws java.rmi.RemoteException
        Parameters:
        srvEnv - -- the "Server Environment" this Service is being created in.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getValidJobPlansForOrgAndSite

        public MboSetRemote getValidJobPlansForOrgAndSite(UserInfo userInfo,
                                                          java.lang.String orgid,
                                                          java.lang.String siteid)
                                                   throws MXException,
                                                          java.rmi.RemoteException
        Get all the valid job plans for a given organization & site combination.
        Parameters:
        userInfo - - userInfo object for the logged in user.
        orgid - - organization id
        siteid - - site id
        Returns:
        = An MboSetRemote object Returns an empty object if no jobplans are found.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        JobPlanSet.getValidJobPlansForOrgAndSite(java.lang.String, java.lang.String)
      • getMultiSiteJobPlan

        public MboSetRemote getMultiSiteJobPlan(UserInfo userInfo,
                                                java.lang.String jpnum,
                                                java.lang.String orgid,
                                                java.lang.String siteid)
                                         throws MXException,
                                                java.rmi.RemoteException
        Get a set of Job Plans for the given jobplan number, organization & site combination.
        Parameters:
        userInfo - - userInfo object for the logged in user.
        jpnum - - name of the jobplan.
        orgid - - organization id
        siteid - - site id
        Returns:
        = An MboSetRemote object Returns an empty object if no jobplans are found.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        JobPlanSet.getMultiSiteJobPlan(java.lang.String, java.lang.String, java.lang.String)
      • getMultiSiteJobPlan

        public MboSetRemote getMultiSiteJobPlan(UserInfo userInfo,
                                                java.lang.String jpnum,
                                                java.lang.String revisionNum,
                                                java.lang.String orgid,
                                                java.lang.String siteid)
                                         throws MXException,
                                                java.rmi.RemoteException
        Get a set of Job Plans for the given jobplan number,revision num, organization & site combination.
        Parameters:
        userInfo - - userInfo object for the logged in user.
        jpnum - - name of the jobplan.
        revisionNum- - revision number.
        orgid - - organization id
        siteid - - site id
        Returns:
        = An MboSetRemote object Returns an empty object if no jobplans are found.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        JobPlanSet.getMultiSiteJobPlan(java.lang.String, java.lang.String, java.lang.String)
      • changeStatus

        public void changeStatus(JobPlanRemote jobplan,
                                 java.lang.String status,
                                 java.util.Date date,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Service Method used to change jobplan status.
        Parameters:
        jobplan - Job Plan Mbo
        status - The new jobplan status
        date - The date of the jobplan status change. Defaults to the current date/time if null.
        memo - The status change memo.
        Throws:
        MXException
        java.rmi.RemoteException