org.cmis.interopserver.services.cap1_1
Class CAP1_1Handler
java.lang.Object
org.cmis.interopserver.services.capv2.CAPv2Handler
org.cmis.interopserver.services.cap1_1.CAP1_1Handler
public class CAP1_1Handler
- extends CAPv2Handler
|
Field Summary |
(package private) boolean |
addNoteElement
whether we're adding a "note" element that says who posted this attachment and when. |
(package private) static java.util.logging.Logger |
log
|
(package private) boolean |
verifyAgainstSchema
whether we'll verify incoming cap messages against the schema (the location of which is hardcoded, by the way) |
|
Constructor Summary |
CAP1_1Handler(org.cmis.client.common.ThinRPCLayer proxy)
normal constructor |
|
Method Summary |
org.cmis.interopserver.beans.cap1_1.Alert[] |
getCAP1_1AlertsByDate(java.util.Calendar lastupdate,
long cogId,
java.lang.String[] searchCriteria)
Gets all cap alerts on or after the given date. |
org.cmis.interopserver.beans.cap1_1.Alert |
getCAP1_1ById(java.lang.String messageid,
long cogId)
gets the CAP that corresponds to this ID, or null if it isn't there. |
org.w3c.dom.Document |
getValidatedDocumentFromString(java.lang.String capXML)
|
long |
postCAPAlert(org.w3c.dom.Document cap,
java.lang.String messageId,
java.util.List mailList,
java.util.List attachmentDescriptors,
java.util.List dataHandlers)
Posts a cap alert. |
| Methods inherited from class org.cmis.interopserver.services.capv2.CAPv2Handler |
addResourceElement, getCAPAlertById, getCAPAlertsByDate, getCAPAlertsByMultiSearch, getCAPAlertsByXPath, getCAPById, getCOGName, getDocumentArrayFromStringArray, getDocumentFromString, getLastTime, getPrettyXMLFromDocument, getProxy, getUniqueId, getXMLFromDocument, handleAttachments, isAddNoteElement, isVerifyAgainstSchema, pingServerTime, postCAPAlert, postCAPAlert, postCAPAlert, postMultipleCAPAlerts, postMultipleCAPAlerts, processCAPForPosting, setAddNoteElement, setLastTime, setVerifyAgainstSchema, verifyCAPAlert, XMLToAlert |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static java.util.logging.Logger log
verifyAgainstSchema
boolean verifyAgainstSchema
- whether we'll verify incoming cap messages against the schema (the location of which is hardcoded, by the way)
addNoteElement
boolean addNoteElement
- whether we're adding a "note" element that says who posted this attachment and when. It was for debugging purposes during the beta phase.
CAP1_1Handler
public CAP1_1Handler(org.cmis.client.common.ThinRPCLayer proxy)
- normal constructor
getValidatedDocumentFromString
public org.w3c.dom.Document getValidatedDocumentFromString(java.lang.String capXML)
throws java.lang.Exception
- Overrides:
getValidatedDocumentFromString in class CAPv2Handler
- Throws:
java.lang.Exception
getCAP1_1ById
public org.cmis.interopserver.beans.cap1_1.Alert getCAP1_1ById(java.lang.String messageid,
long cogId)
throws java.lang.Exception
- gets the CAP that corresponds to this ID, or null if it isn't there.
- Parameters:
messageid - cogId - cog ID of the COG we're looking up.
- Returns:
- NULL if it isn't there.
- Throws:
a - TransportException if there are communication problems; if the TransportException
wraps another exception, it throws that exception instead.
java.lang.Exception
getCAP1_1AlertsByDate
public org.cmis.interopserver.beans.cap1_1.Alert[] getCAP1_1AlertsByDate(java.util.Calendar lastupdate,
long cogId,
java.lang.String[] searchCriteria)
throws java.lang.Exception
- Gets all cap alerts on or after the given date.
- Parameters:
lastupdate - cogId - cog ID of the COG we're looking up.
- Throws:
java.lang.Exception
postCAPAlert
public long postCAPAlert(org.w3c.dom.Document cap,
java.lang.String messageId,
java.util.List mailList,
java.util.List attachmentDescriptors,
java.util.List dataHandlers)
throws org.cmis.transport.common.TransportException,
org.xml.sax.SAXException,
java.lang.Exception
- Posts a cap alert. Can take attachments; datahandlers and attachmentDescriptors must match
1 to 1.
If mailList is empty the cap will be posted globally.
- Overrides:
postCAPAlert in class CAPv2Handler
- Parameters:
cap - messageId - mailList - attachmentDescriptors - dataHandlers -
- Returns:
-
- Throws:
org.cmis.transport.common.TransportException
SAXException
java.lang.Exception