org.opengroupware.jogi.connect.xmlrpc
Class XmlRpcJob
java.lang.Object
java.util.Observable
org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
org.opengroupware.jogi.connect.xmlrpc.XmlRpcJob
- All Implemented Interfaces:
- Job
- public class XmlRpcJob
- extends XmlRpcBaseDocument
- implements Job
- Author:
- Werner Schuster (murphee), Andreas Rath (teddius)
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 |
KEY_ID
public static final java.lang.String KEY_ID
- See Also:
- Constant Field Values
KEY_CATEGORY
public static final java.lang.String KEY_CATEGORY
- See Also:
- Constant Field Values
KEY_START_DATE
public static final java.lang.String KEY_START_DATE
- See Also:
- Constant Field Values
KEY_END_DATE
public static final java.lang.String KEY_END_DATE
- See Also:
- Constant Field Values
KEY_STATUS
public static final java.lang.String KEY_STATUS
- See Also:
- Constant Field Values
KEY_PRIORITY
public static final java.lang.String KEY_PRIORITY
- See Also:
- Constant Field Values
KEY_NAME
public static final java.lang.String KEY_NAME
- See Also:
- Constant Field Values
KEY_IS_TEAM_JOB
public static final java.lang.String KEY_IS_TEAM_JOB
- See Also:
- Constant Field Values
KEY_KEYWORDS
public static final java.lang.String KEY_KEYWORDS
- See Also:
- Constant Field Values
KEY_EXECUTOR
public static final java.lang.String KEY_EXECUTOR
- See Also:
- Constant Field Values
KEY_CREATOR
public static final java.lang.String KEY_CREATOR
- See Also:
- Constant Field Values
OGO_CALL_JOB_MARK_DONE
public static final java.lang.String OGO_CALL_JOB_MARK_DONE
- See Also:
- Constant Field Values
OGO_CALL_JOB_ARCHIVE_JOB
public static final java.lang.String OGO_CALL_JOB_ARCHIVE_JOB
- See Also:
- Constant Field Values
OGO_CALL_JOB_ACCEPT_JOB
public static final java.lang.String OGO_CALL_JOB_ACCEPT_JOB
- See Also:
- Constant Field Values
OGO_CALL_JOB_ANNOTATE_JOB
public static final java.lang.String OGO_CALL_JOB_ANNOTATE_JOB
- See Also:
- Constant Field Values
OGO_CALL_JOB_REJECT_JOB
public static final java.lang.String OGO_CALL_JOB_REJECT_JOB
- See Also:
- Constant Field Values
OGO_CALL_JOB_REACTIVATE_JOB
public static final java.lang.String OGO_CALL_JOB_REACTIVATE_JOB
- See Also:
- Constant Field Values
caller_
protected XmlRpcCaller caller_
ogo_
protected OpenGroupWare ogo_
XmlRpcJob
protected XmlRpcJob(java.util.Date startDate,
java.util.Date endDate,
java.lang.String name,
XmlRpcCaller caller,
OpenGroupWare ogo)
throws OgoException,
ConnectionException
XmlRpcJob
protected XmlRpcJob(XmlRpcCaller caller,
java.util.Map content,
OpenGroupWare ogo)
throws OgoException,
ConnectionException
changeJobProperty
protected boolean changeJobProperty(java.lang.String functionName,
java.lang.String comment)
throws OgoException,
ConnectionException
- Throws:
OgoException
ConnectionException
markDone
public boolean markDone()
throws OgoException,
ConnectionException
- Specified by:
markDone
in interface Job
- Throws:
OgoException
ConnectionException
archiveJob
public boolean archiveJob()
throws OgoException,
ConnectionException
- Specified by:
archiveJob
in interface Job
- Throws:
OgoException
ConnectionException
acceptJob
public boolean acceptJob()
throws OgoException,
ConnectionException
- Specified by:
acceptJob
in interface Job
- Throws:
OgoException
ConnectionException
rejectJob
public boolean rejectJob()
throws OgoException,
ConnectionException
- Specified by:
rejectJob
in interface Job
- Throws:
OgoException
ConnectionException
reactivateJob
public boolean reactivateJob()
throws OgoException,
ConnectionException
- Specified by:
reactivateJob
in interface Job
- Throws:
OgoException
ConnectionException
reactivateJob
public boolean reactivateJob(java.lang.String comment)
throws OgoException,
ConnectionException
- Specified by:
reactivateJob
in interface Job
- Throws:
OgoException
ConnectionException
markDone
public boolean markDone(java.lang.String comment)
throws OgoException,
ConnectionException
- Specified by:
markDone
in interface Job
- Throws:
OgoException
ConnectionException
archiveJob
public boolean archiveJob(java.lang.String comment)
throws OgoException,
ConnectionException
- Specified by:
archiveJob
in interface Job
- Throws:
OgoException
ConnectionException
acceptJob
public boolean acceptJob(java.lang.String comment)
throws OgoException,
ConnectionException
- Specified by:
acceptJob
in interface Job
- Throws:
OgoException
ConnectionException
annotateJob
public boolean annotateJob(java.lang.String comment)
throws OgoException,
ConnectionException
- Specified by:
annotateJob
in interface Job
- Throws:
OgoException
ConnectionException
rejectJob
public boolean rejectJob(java.lang.String comment)
throws OgoException,
ConnectionException
- Specified by:
rejectJob
in interface Job
- Throws:
OgoException
ConnectionException
getHistory
public java.util.List getHistory()
- Specified by:
getHistory
in interface Job
setStartDate
public void setStartDate(java.util.Date start_date)
throws OgoException,
ConnectionException
- Specified by:
setStartDate
in interface Job
- Throws:
OgoException
ConnectionException
getStartDate
public java.util.Date getStartDate()
throws OgoException,
ConnectionException
- Specified by:
getStartDate
in interface Job
- Throws:
OgoException
ConnectionException
setEndDate
public void setEndDate(java.util.Date end_date)
throws OgoException,
ConnectionException
- Specified by:
setEndDate
in interface Job
- Throws:
OgoException
ConnectionException
getEndDate
public java.util.Date getEndDate()
throws OgoException,
ConnectionException
- Specified by:
getEndDate
in interface Job
- Throws:
OgoException
ConnectionException
setAccountMap
protected void setAccountMap(java.lang.String key,
java.lang.String id,
java.lang.String login)
throws OgoException,
ConnectionException
- Throws:
OgoException
ConnectionException
getAccountId
protected java.lang.String getAccountId(java.lang.String key)
throws OgoException,
ConnectionException
- Throws:
OgoException
ConnectionException
setExecutor
public void setExecutor(Account account)
throws OgoException,
ConnectionException
- Specified by:
setExecutor
in interface Job
- Throws:
OgoException
ConnectionException
getExecutor
public Account getExecutor()
throws OgoException,
ConnectionException
- Specified by:
getExecutor
in interface Job
- Throws:
OgoException
ConnectionException
setCreator
public void setCreator(Account account)
throws OgoException,
ConnectionException
- Specified by:
setCreator
in interface Job
- Throws:
OgoException
ConnectionException
getCreator
public Account getCreator()
throws OgoException,
ConnectionException
- Specified by:
getCreator
in interface Job
- Throws:
OgoException
ConnectionException
setName
public void setName(java.lang.String name)
throws OgoException,
ConnectionException
- Specified by:
setName
in interface Job
- Throws:
OgoException
ConnectionException
getName
public java.lang.String getName()
throws OgoException,
ConnectionException
- Specified by:
getName
in interface Job
- Throws:
OgoException
ConnectionException
setPriority
public void setPriority(int priority)
throws OgoException,
ConnectionException
- Specified by:
setPriority
in interface Job
- Throws:
OgoException
ConnectionException
getPriority
public int getPriority()
throws OgoException,
ConnectionException
- Specified by:
getPriority
in interface Job
- Throws:
OgoException
ConnectionException
setKeywords
public void setKeywords(java.lang.String key_words)
throws OgoException,
ConnectionException
- Specified by:
setKeywords
in interface Job
- Throws:
OgoException
ConnectionException
getKeywords
public java.lang.String getKeywords()
throws OgoException,
ConnectionException
- Specified by:
getKeywords
in interface Job
- Throws:
OgoException
ConnectionException
setStatus
public void setStatus(java.lang.String status)
throws OgoException,
ConnectionException
- Specified by:
setStatus
in interface Job
- Throws:
OgoException
ConnectionException
getStatus
public java.lang.String getStatus()
throws OgoException,
ConnectionException
- Specified by:
getStatus
in interface Job
- Throws:
OgoException
ConnectionException
isTeamJob
public boolean isTeamJob()
throws OgoException,
ConnectionException
- Specified by:
isTeamJob
in interface Job
- Throws:
OgoException
ConnectionException
setIsTeamJob
public void setIsTeamJob(boolean bool)
throws OgoException,
ConnectionException
- Specified by:
setIsTeamJob
in interface Job
- Throws:
OgoException
ConnectionException
setCategory
public void setCategory(java.lang.String cat)
throws OgoException,
ConnectionException
- Specified by:
setCategory
in interface Job
- Throws:
OgoException
ConnectionException
getCategory
public java.lang.String getCategory()
throws OgoException,
ConnectionException
- Specified by:
getCategory
in interface Job
- 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
.
getId
public java.lang.String getId()
throws OgoException,
ConnectionException
- Specified by:
getId
in interface Job
- Overrides:
getId
in class XmlRpcBaseDocument
- Throws:
OgoException
ConnectionException
Copyright © 2003 ogojogi Project, All Rights Reserved.