Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: OGOJOGI: job.getHistory(): msg#00027

cms.opengroupware.xmlrpc.devel

Subject: Re: OGOJOGI: job.getHistory()

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christoph Guse wrote:
| I tried to use job.getHistory() in the job class. I extended XmlRpcJob
| so the remote method jobs.getHistory() is called. I get values from the
| OGo-Server:

How did you do this? I mean, how does your call look like?


| Unfortunately I'm not able to put the methodResponse in an object like
| History, because I don't fully understand how OGOJOGI put the XML result
| in an object.

Well... if you do something like
caller.invoke(....)
~ (where "caller" is an object of type XmlRpcCaller) you'll get back a
Map (or a Hashtable), holding the result from OG.o (the XmlRpc Struct
type is put into a Map/Hashtable).
JOGI uses a XmlRpcBaseDocument (or something like that) as an aid for
this, ie. classes like Person, ... (which map to an OG.o document, which
are returned as XmlRpc structs) are derived from XmlRpcBasedocument.

Depends on what you want to do, you could simply have your Job
getHistory() return a List of ... I don't know, Maps that hold the Job
information. This is a solution if the History information is read only,
and you don't want to allow the users to modify the contents.
A cleaner way would be to create a History object that hides the
internals and provided methods to access the information.

murphee
- --
Werner Schuster (murphee)
Student of SoftwareEngineering and KnowledgeManagement
Maintainer of the OGO-JOGI Project @ http://ogo-jogi.sourceforge.net/
Blog @ http://jroller.com/page/murphee
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCX+FOgLjXNIXpN6MRAsW7AKCBHsgmqRXQs0eKeJH6WfP2Gz2qLACdGJSt
RYf6riTFKFLzRrHCnDPlOCI=
=R2r/
-----END PGP SIGNATURE-----
--
OpenGroupware.org XML-RPC
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation