org.opengroupware.jogi.connect.xmlrpc
Class XmlRpcResource
java.lang.Object
java.util.Observable
org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
org.opengroupware.jogi.connect.xmlrpc.XmlRpcResource
- All Implemented Interfaces:
- Resource
- public class XmlRpcResource
- extends XmlRpcBaseDocument
- implements Resource
- Author:
- Werner Schuster (murphee)
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 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 |
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_
XmlRpcResource
protected XmlRpcResource(XmlRpcCaller caller,
java.util.Map contents)
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.