|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CAP
The CAP interface for posting and retrieving CAP alerts.
| Method Summary | |
|---|---|
org.cmis.interopserver.beans.cap.Alert |
getCAPAlert(java.lang.String messageid)
Gets the Alert that corresponds to this identifier. |
org.cmis.interopserver.beans.cap.Alert[] |
getCAPAlerts(java.util.Calendar lastupdate)
Gets all Alerts since the given date-time, exclusive. |
org.cmis.interopserver.beans.cap.Alert[] |
getCAPAlerts(java.lang.String[] searchTerms)
Gets all Alerts that are visible to the user that match ALL of the given search terms. |
java.util.Calendar |
getServerTime()
Retrieves the current time on the server; useful for time-synching to ensure that getCAPAlerts(time) is accurate. |
void |
postCAPAlert(org.cmis.interopserver.beans.cap.Alert alert)
Gets all Alerts with a |
void |
postCAPAlert(org.cmis.interopserver.beans.cap.Alert alert,
org.cmis.interopserver.beans.cap.CAPAttachmentDescriptor[] attachments)
This is identitical to postCAPAlert(Alert), above, but also includes attachments. |
void |
postCAPAlert(org.cmis.interopserver.beans.cap.Alert alert,
org.cmis.interopserver.beans.SimpleCOG[] mailList)
Posts this Alert to the specified list of COGs. |
void |
postCAPAlert(org.cmis.interopserver.beans.cap.Alert alert,
org.cmis.interopserver.beans.SimpleCOG[] mailList,
org.cmis.interopserver.beans.cap.CAPAttachmentDescriptor[] attachments)
This is identitical to postCAPAlert(alert, mailList), above, but also includes attachments. |
| Methods inherited from interface org.cmis.interopserver.services.base.Base |
|---|
getCogs, getMyCog, ping |
| Method Detail |
|---|
org.cmis.interopserver.beans.cap.Alert getCAPAlert(java.lang.String messageid)
throws java.rmi.RemoteException
sender, a colon, and the CAP
identifier to use as the "messageid".
For example: user@123.org:#1234 Any leading or trailing white space will be removed.
If the "messageid" does not correspond to a CAP Alert in the DMIS system, an error will be returned.
messageid - (cap sender):(cap identifier)
java.rmi.RemoteException - A remote exception occurred
org.cmis.interopserver.beans.cap.Alert[] getCAPAlerts(java.lang.String[] searchTerms)
throws java.rmi.RemoteException
searchTerms -
java.rmi.RemoteException - if there is some error
org.cmis.interopserver.beans.cap.Alert[] getCAPAlerts(java.util.Calendar lastupdate)
throws java.rmi.RemoteException
lastupdate - a date-time cutoff for retrieving posted events
java.rmi.RemoteException - A remote exception occurred
void postCAPAlert(org.cmis.interopserver.beans.cap.Alert alert)
throws java.rmi.RemoteException
lastupdate - a date-time cutoff for retrieving posted events
java.rmi.RemoteException - A remote exception occurred
void postCAPAlert(org.cmis.interopserver.beans.cap.Alert alert,
org.cmis.interopserver.beans.SimpleCOG[] mailList)
throws java.rmi.RemoteException
postCAPAlert(Alert) with COG ids specified in the address
field as described above. This method will ignore the address and scope fields of the
Alert and post it only to the COGs specified in the array of SimpleCOG objects supplied.
If any of the COGs specified in the COG array are invalid, an error will be returned and no
posting will take place. The same is true if there are duplicates in the COG array, or if
the sender's COG is specified in the COG array. This method does not return anything; if
no error is returned then the posting has succeeded.
alert - Alert to be posted.mailList - Array of SimpleCOGs to receive the alert.
java.rmi.RemoteException - A remote exception occurred
void postCAPAlert(org.cmis.interopserver.beans.cap.Alert alert,
org.cmis.interopserver.beans.cap.CAPAttachmentDescriptor[] attachments)
throws java.rmi.RemoteException
alert - Alert to be posted.attachments - Descriptions of the attachments that are added to this message via the
SOAP with Attachments specification. These must correspond, one-to-one, with attachments
in this message. The first attachment descriptor in the array describes the first attachment
in the message, and so on.
java.rmi.RemoteException - A remote exception occurredpostCAPAlert
void postCAPAlert(org.cmis.interopserver.beans.cap.Alert alert,
org.cmis.interopserver.beans.SimpleCOG[] mailList,
org.cmis.interopserver.beans.cap.CAPAttachmentDescriptor[] attachments)
throws java.rmi.RemoteException
alert - Alert to be posted.attachments - Descriptions of the attachments that are added to this message via the
SOAP with Attachments specification. These must correspond, one-to-one, with attachments
in this message. The first attachment descriptor in the array describes the first attachment
in the message, and so on.
java.rmi.RemoteException - A remote exception occurredpostCAPAlert
java.util.Calendar getServerTime()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||