org.opengroupware.jogi.connect.xmlrpc
Class XmlRpcProjectManager

java.lang.Object
  extended byorg.opengroupware.jogi.connect.xmlrpc.XmlRpcProjectManager
All Implemented Interfaces:
java.util.Observer, ProjectManager

public class XmlRpcProjectManager
extends java.lang.Object
implements ProjectManager

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

Field Summary
protected  java.util.Map cached_projects_
           
static java.lang.String OGO_CALL_PROJECT_CATEGORIES
           
static java.lang.String OGO_CALL_PROJECT_DELETE
           
static java.lang.String OGO_CALL_PROJECT_FETCH
           
static java.lang.String OGO_CALL_PROJECT_GET_BY_ID
           
static java.lang.String OGO_CALL_PROJECT_GET_BY_NAME
           
static java.lang.String OGO_CALL_PROJECT_INSERT
           
static java.lang.String OGO_CALL_PROJECT_UPDATE
           
 
Constructor Summary
XmlRpcProjectManager(XmlRpcCaller caller)
           
 
Method Summary
protected  XmlRpcProject createNewProject(java.util.Map content)
           
 void delete(Project project)
           
 java.util.Iterator fetch(FetchSpecification spec)
          Fetches a list of Projects.
 java.util.Iterator fetch(java.lang.String fspec)
          Fetches a list of Projects.
protected  XmlRpcProject getCachedProject(java.lang.Object obj)
           
 Project insert(java.lang.String name, java.util.Date startDate, java.util.Date endDate)
           
protected  java.util.List prepareFetchResult(java.lang.Object res)
           
protected  XmlRpcProject receiveProject(java.lang.Object accTemp)
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OGO_CALL_PROJECT_UPDATE

public static final java.lang.String OGO_CALL_PROJECT_UPDATE
See Also:
Constant Field Values

OGO_CALL_PROJECT_DELETE

public static final java.lang.String OGO_CALL_PROJECT_DELETE
See Also:
Constant Field Values

OGO_CALL_PROJECT_INSERT

public static final java.lang.String OGO_CALL_PROJECT_INSERT
See Also:
Constant Field Values

OGO_CALL_PROJECT_GET_BY_ID

public static final java.lang.String OGO_CALL_PROJECT_GET_BY_ID
See Also:
Constant Field Values

OGO_CALL_PROJECT_GET_BY_NAME

public static final java.lang.String OGO_CALL_PROJECT_GET_BY_NAME
See Also:
Constant Field Values

OGO_CALL_PROJECT_CATEGORIES

public static final java.lang.String OGO_CALL_PROJECT_CATEGORIES
See Also:
Constant Field Values

OGO_CALL_PROJECT_FETCH

public static final java.lang.String OGO_CALL_PROJECT_FETCH
See Also:
Constant Field Values

cached_projects_

protected java.util.Map cached_projects_
Constructor Detail

XmlRpcProjectManager

public XmlRpcProjectManager(XmlRpcCaller caller)
Method Detail

insert

public Project insert(java.lang.String name,
                      java.util.Date startDate,
                      java.util.Date endDate)
               throws OgoException,
                      ConnectionException
Specified by:
insert in interface ProjectManager
Throws:
OgoException
ConnectionException

delete

public void delete(Project project)
            throws OgoException,
                   ConnectionException
Specified by:
delete in interface ProjectManager
Throws:
OgoException
ConnectionException

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

fetch

public java.util.Iterator fetch(java.lang.String fspec)
                         throws OgoException,
                                ConnectionException
Description copied from interface: ProjectManager
Fetches a list of Projects.

Specified by:
fetch in interface ProjectManager
Parameters:
fspec - the query expression to find the Projects.
Returns:
an Iterator of Project objects;
Throws:
OgoException
ConnectionException

fetch

public java.util.Iterator fetch(FetchSpecification spec)
                         throws OgoException,
                                ConnectionException
Description copied from interface: ProjectManager
Fetches a list of Projects.

Specified by:
fetch in interface ProjectManager
Parameters:
spec - A FetchSpecification describing the projects to fetch.
Returns:
an Iterator of Project objects;
Throws:
OgoException
ConnectionException
See Also:
FetchSpecification

prepareFetchResult

protected java.util.List prepareFetchResult(java.lang.Object res)
                                     throws OgoException,
                                            ConnectionException
Throws:
OgoException
ConnectionException

receiveProject

protected XmlRpcProject receiveProject(java.lang.Object accTemp)
                                throws OgoException,
                                       ConnectionException
Throws:
OgoException
ConnectionException

getCachedProject

protected XmlRpcProject getCachedProject(java.lang.Object obj)
                                  throws OgoException,
                                         ConnectionException
Throws:
OgoException
ConnectionException

createNewProject

protected XmlRpcProject createNewProject(java.util.Map content)
                                  throws OgoException,
                                         ConnectionException
Throws:
OgoException
ConnectionException


Copyright © 2003 ogojogi Project, All Rights Reserved.