org.opengroupware.jogi.ogo
Interface JobManager

All Superinterfaces:
java.util.Observer
All Known Implementing Classes:
XmlRpcJobManager

public interface JobManager
extends java.util.Observer

Allows to manage Jobs on an OpenGroupware.org installation. As the Jobs are specific to a person (or at least always assigned to a person), there is no fetch() in this class. Use the getAllJobs and methods in Person to find out about Jobs.

Author:
Andreas Rath (teddius) , Werner Schuster (murphee)

Method Summary
 void delete(Person pers, Job job)
           
 void delete(Person pers, java.util.List list)
          Deletes a list of Jobs.
 void delete(Person pers, java.lang.String id)
           
 java.util.Iterator getAllJobs(Person person, java.util.Date startDate, java.util.Date endDate)
           
 java.util.Iterator getJobByIdList(java.util.List list)
           
 java.util.Iterator getJobs(java.lang.String[] job_ids)
           
 Job insert(Person person, java.util.Date startDate, java.util.Date endDate, java.lang.String name)
           
 Job insert(Person pers, Job job)
           
 
Methods inherited from interface java.util.Observer
update
 

Method Detail

getAllJobs

public java.util.Iterator getAllJobs(Person person,
                                     java.util.Date startDate,
                                     java.util.Date endDate)
                              throws OgoException,
                                     ConnectionException
Throws:
OgoException
ConnectionException

getJobByIdList

public java.util.Iterator getJobByIdList(java.util.List list)
                                  throws OgoException,
                                         ConnectionException
Throws:
OgoException
ConnectionException

insert

public Job insert(Person pers,
                  Job job)
           throws OgoException,
                  ConnectionException
Throws:
OgoException
ConnectionException

getJobs

public java.util.Iterator getJobs(java.lang.String[] job_ids)
                           throws OgoException,
                                  ConnectionException
Throws:
OgoException
ConnectionException

delete

public void delete(Person pers,
                   Job job)
            throws OgoException,
                   ConnectionException
Throws:
OgoException
ConnectionException

delete

public void delete(Person pers,
                   java.lang.String id)
            throws OgoException,
                   ConnectionException
Throws:
OgoException
ConnectionException

delete

public void delete(Person pers,
                   java.util.List list)
            throws OgoException,
                   ConnectionException
Deletes a list of Jobs.

Parameters:
pers - can be a List of Job objects or of Job Ids (as Strings).
list -
Throws:
OgoException
ConnectionException

insert

public Job insert(Person person,
                  java.util.Date startDate,
                  java.util.Date endDate,
                  java.lang.String name)
           throws OgoException,
                  ConnectionException
Parameters:
person - the Person that this Job is associated with
startDate - the start date for this Job
endDate - the end date for this Job (can be null)
name - the name of this Job
Returns:
a Job object representing the inserted one
Throws:
OgoException
ConnectionException


Copyright © 2003 ogojogi Project, All Rights Reserved.