|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cmis.interopserver.services.base.InteropDmisProxyObject org.cmis.interopserver.services.base.BaseSoapBindingImpl org.cmis.interopserver.services.capv2.CAPv2SoapBindingImpl
public class CAPv2SoapBindingImpl
Field Summary | |
---|---|
static java.lang.String |
PARSE_ERROR
|
Fields inherited from class org.cmis.interopserver.services.base.BaseSoapBindingImpl |
---|
alCogs, cogNameMapping, GENERIC_INTERNAL_ERROR, INVALID_SESSION_MESSAGE, log, SERVER_ERROR |
Constructor Summary | |
---|---|
CAPv2SoapBindingImpl()
|
Method Summary | |
---|---|
protected java.lang.String |
AlertToXML(org.cmis.interopserver.beans.capv2.Alert cap)
|
org.cmis.interopserver.beans.capv2.Alert |
getCAPAlert(java.lang.String messageid)
Gets the Alert that corresponds to this identifier. |
org.cmis.interopserver.beans.capv2.Alert[] |
getCAPAlerts(java.util.Calendar lastupdate)
Gets all Alerts since the given date-time, exclusive. |
org.cmis.interopserver.beans.capv2.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.capv2.Alert cap)
Posts this Alert globally across the system. |
void |
postCAPAlert(org.cmis.interopserver.beans.capv2.Alert cap,
org.cmis.interopserver.beans.capv2.CAPAttachmentDescriptor[] attachments)
This method is identitical to postCAPAlert(Alert), but also includes attachments. |
void |
postCAPAlert(org.cmis.interopserver.beans.capv2.Alert cap,
org.cmis.interopserver.beans.SimpleCOG[] mailList)
Posts this Alert to the specified list of COGs. |
void |
postCAPAlert(org.cmis.interopserver.beans.capv2.Alert cap,
org.cmis.interopserver.beans.SimpleCOG[] mailList,
org.cmis.interopserver.beans.capv2.CAPAttachmentDescriptor[] attachments)
This is identitical to postCAPAlert(alert, mailList), above, but also includes attachments. |
protected org.cmis.interopserver.beans.capv2.Alert |
XMLToAlert(java.lang.String string)
|
Methods inherited from class org.cmis.interopserver.services.base.BaseSoapBindingImpl |
---|
addAttachment, addAttachment, clientNotifyViaSMTP, clientNotifyViaUrl, convertSimpleCogs, getCogNameMapping, getCogs, getDataHandler, getMyCog, ping |
Methods inherited from class org.cmis.interopserver.services.base.InteropDmisProxyObject |
---|
getOperator, getProxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.cmis.interopserver.services.capv2.CAPv2 |
---|
getCogs, getMyCog, ping |
Field Detail |
---|
public static final java.lang.String PARSE_ERROR
Constructor Detail |
---|
public CAPv2SoapBindingImpl()
Method Detail |
---|
public org.cmis.interopserver.beans.capv2.Alert getCAPAlert(java.lang.String messageid) throws java.rmi.RemoteException
CAPv2
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.
getCAPAlert
in interface CAPv2
messageid
- (cap sender):(cap identifier)
java.rmi.RemoteException
- A remote exception occurredpublic org.cmis.interopserver.beans.capv2.Alert[] getCAPAlerts(java.lang.String[] searchTerms) throws java.rmi.RemoteException
CAPv2
getCAPAlerts
in interface CAPv2
searchTerms
-
java.rmi.RemoteException
RemoteException
- if there is some errorpublic org.cmis.interopserver.beans.capv2.Alert[] getCAPAlerts(java.util.Calendar lastupdate) throws java.rmi.RemoteException
CAPv2
getCAPAlerts
in interface CAPv2
lastupdate
- a date-time cutoff for retrieving posted events. This value
is being compared to the sent field of the Alert message.
java.rmi.RemoteException
- A remote exception occurredpublic void postCAPAlert(org.cmis.interopserver.beans.capv2.Alert cap, org.cmis.interopserver.beans.SimpleCOG[] mailList, org.cmis.interopserver.beans.capv2.CAPAttachmentDescriptor[] attachments) throws java.rmi.RemoteException
CAPv2
postCAPAlert
in interface CAPv2
cap
- mailList
- attachments
-
java.rmi.RemoteException
postCAPAlert
public void postCAPAlert(org.cmis.interopserver.beans.capv2.Alert cap, org.cmis.interopserver.beans.SimpleCOG[] mailList) throws java.rmi.RemoteException
CAPv2
CAPv2.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.
postCAPAlert
in interface CAPv2
cap
- Alert to be posted.mailList
- Array of SimpleCOGs to receive the alert.
java.rmi.RemoteException
- A remote exception occurredpublic void postCAPAlert(org.cmis.interopserver.beans.capv2.Alert cap, org.cmis.interopserver.beans.capv2.CAPAttachmentDescriptor[] attachments) throws java.rmi.RemoteException
CAPv2
postCAPAlert
in interface CAPv2
cap
- attachments
-
java.rmi.RemoteException
postCAPAlert
public void postCAPAlert(org.cmis.interopserver.beans.capv2.Alert cap) throws java.rmi.RemoteException
CAPv2
Alert.scope
field is "Private" and the org.cmis.interopserver.beans.cap.Alert#address
field contains a space-delimited series COGs in
the form "COGx" where x is a valid COG SimpleCOG.id
(for example, COG1737 COG1000 COG2
) then the Alert will be posted to only
those specified COGs. If any of the COG ids are invalid, an error will be returned and no
posting will take place. In any other case, the Alert will be posted globally across the
DMIS system (to all COGs). This method does not return anything; if no error is returned
then the posting has succeeded.
postCAPAlert
in interface CAPv2
cap
- Alert to be posted.
java.rmi.RemoteException
- A remote exception occurredpublic java.util.Calendar getServerTime() throws java.rmi.RemoteException
CAPv2
getServerTime
in interface CAPv2
java.rmi.RemoteException
RemoteException
protected org.cmis.interopserver.beans.capv2.Alert XMLToAlert(java.lang.String string) throws java.io.IOException
string
-
java.io.IOException
protected java.lang.String AlertToXML(org.cmis.interopserver.beans.capv2.Alert cap) throws java.io.IOException
cap
-
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |