org.opengroupware.jogi.connect.xmlrpc
Class XmlRpcResource

java.lang.Object
  extended byjava.util.Observable
      extended byorg.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
          extended byorg.opengroupware.jogi.connect.xmlrpc.XmlRpcResource
All Implemented Interfaces:
Resource

public class XmlRpcResource
extends XmlRpcBaseDocument
implements Resource

Author:
Werner Schuster (murphee)

Field Summary
protected  XmlRpcCaller caller_
           
static java.lang.String KEY_CATEGORY
           
static java.lang.String KEY_NAME
           
 
Fields inherited from class org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
content_, id_, KEY_ID
 
Constructor Summary
protected XmlRpcResource(XmlRpcCaller caller, java.util.Map contents)
           
 
Method Summary
protected  boolean checkNewContent(java.util.Map new_content)
          This method checks whether the provided Map contains a valid document.
 java.lang.String getCategory()
           
 java.lang.String getName()
           
 void setCategory(java.lang.String category)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
fireNotify, getContent, getId, getString, put, setContent
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengroupware.jogi.ogo.Resource
getId
 

Field Detail

KEY_NAME

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

KEY_CATEGORY

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

caller_

protected XmlRpcCaller caller_
Constructor Detail

XmlRpcResource

protected XmlRpcResource(XmlRpcCaller caller,
                         java.util.Map contents)
Method Detail

getName

public java.lang.String getName()
                         throws OgoException,
                                ConnectionException
Specified by:
getName in interface Resource
Throws:
OgoException
ConnectionException

setName

public void setName(java.lang.String name)
             throws OgoException,
                    ConnectionException
Specified by:
setName in interface Resource
Throws:
OgoException
ConnectionException

getCategory

public java.lang.String getCategory()
                             throws OgoException,
                                    ConnectionException
Specified by:
getCategory in interface Resource
Throws:
OgoException
ConnectionException

setCategory

public void setCategory(java.lang.String category)
                 throws OgoException,
                        ConnectionException
Specified by:
setCategory in interface Resource
Throws:
OgoException
ConnectionException

checkNewContent

protected boolean checkNewContent(java.util.Map new_content)
Description copied from class: XmlRpcBaseDocument
This method checks whether the provided Map contains a valid document. If essential parts are missing or are of a wrong type, this method must return false, otherwise true.

Specified by:
checkNewContent in class XmlRpcBaseDocument
Parameters:
new_content - The new content for the document.
Returns:
true if the content meets all requirements, otherwise false.


Copyright © 2003 ogojogi Project, All Rights Reserved.