|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CAP1_1
The CAP 1.1 interface for posting and retrieving CAP 1.1 alerts.
Title: Interoperability CAP 1.1
Description: The CAP 1.1 interface for posting and retrieving CAP 1.1 alerts.
Copyright: Copyright (c) 2006
Company: Battelle
Method Summary | |
---|---|
org.cmis.interopserver.beans.cap1_1.Alert[] |
getAlertsSentByPostedDate(java.util.Calendar in0)
Gets all Alerts sent by the caller since the given date-time, exclusive. |
org.cmis.interopserver.beans.cap1_1.Alert[] |
getAlertsSentBySentDate(java.util.Calendar in0)
Gets all Alerts sent by the caller since the given date-time, exclusive. |
org.cmis.interopserver.beans.cap1_1.Alert |
getCAPAlert(java.lang.String in0)
Gets the Alert that corresponds to this identifier. |
org.cmis.interopserver.beans.cap1_1.Alert[] |
getCAPAlerts(java.util.Calendar in0)
Gets all Alerts since the given date-time, exclusive. |
org.cmis.interopserver.beans.cap1_1.Alert[] |
getCAPAlertsByPostedDate(java.util.Calendar in0)
Gets all Alerts since the given date-time, exclusive. |
org.cmis.interopserver.beans.cap1_1.Alert[] |
getCAPAlertsGlobalByPostedDate(java.util.Calendar in0)
Gets all Alerts globally posted across the system since the given date-time, exclusive.. |
org.cmis.interopserver.beans.cap1_1.Alert[] |
getCAPAlertsGlobalBySentDate(java.util.Calendar in0)
Gets all Alerts globally posted across the system since the given date-time, exclusive.. |
org.cmis.interopserver.beans.SimpleCOG[] |
getCogs()
Gets a list of valid SimpleCOGs that includes all possible COGs for a post operation such as postCAPAlert() or postIncident() . |
org.cmis.interopserver.beans.SimpleCOG |
getMyCog()
Gets the SimpleCOG of the caller |
org.cmis.interopserver.beans.cap1_1.Alert[] |
getMyCogsAlertsByPostedDate(java.util.Calendar in0)
Gets all Alerts posted to the caller since the given date-time, exclusive. |
org.cmis.interopserver.beans.cap1_1.Alert[] |
getMyCogsAlertsBySentDate(java.util.Calendar in0)
Gets all Alerts posted to the caller since the given date-time, exclusive. |
java.util.Calendar |
getServerTime()
Retrieves the current time on the server; useful for time-synching to ensure that getCAPAlertsByPostedDate() is accurate. |
java.lang.String |
ping()
This method takes no parameters and returns only "pong" indicating success. |
void |
postCAPAlert(org.cmis.interopserver.beans.cap1_1.Alert alert)
Posts this Alert globally across the system. |
void |
postCAPAlert(org.cmis.interopserver.beans.cap1_1.Alert in0,
org.cmis.interopserver.beans.SimpleCOG[] in1)
Posts this Alert to the specified list of COGs. |
Method Detail |
---|
org.cmis.interopserver.beans.cap1_1.Alert getCAPAlert(java.lang.String in0) throws java.rmi.RemoteException
sender
, a colon,
and the CAP identifier
to use as the "messageId".
If the "messageid" does not correspond to a CAP Alert in the DMIS system,
an empty value (NULL), will be returned.
in0
- String -> messageId (cap sender):(cap identifier)
java.rmi.RemoteException
org.cmis.interopserver.beans.cap1_1.Alert[] getCAPAlerts(java.util.Calendar in0) throws java.rmi.RemoteException
in0
- Calendar -> a date-time cutoff for retrieving posted events, please
note this value is being compared to the Sent field in the Alert
java.rmi.RemoteException
java.util.Calendar getServerTime() throws java.rmi.RemoteException
java.rmi.RemoteException
void postCAPAlert(org.cmis.interopserver.beans.cap1_1.Alert in0, org.cmis.interopserver.beans.SimpleCOG[] in1) throws java.rmi.RemoteException
postCAPAlert(Alert)
with a Private scope and 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.
in0
- Alert -> CAP Alert to be postedin1
- SimpleCOG[] -> a list of COGs to post the CAP Alert
java.rmi.RemoteException
void postCAPAlert(org.cmis.interopserver.beans.cap1_1.Alert alert) throws java.rmi.RemoteException
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.
alert
- Alert to be posted.
java.rmi.RemoteException
- A remote exception occurredorg.cmis.interopserver.beans.SimpleCOG[] getCogs() throws java.rmi.RemoteException
postCAPAlert()
or postIncident()
. All COGs EXCEPT the operator's COG
will be returned.
java.rmi.RemoteException
- An exception occurred remotelyorg.cmis.interopserver.beans.SimpleCOG getMyCog() throws java.rmi.RemoteException
java.rmi.RemoteException
- An exception occurred remotelyjava.lang.String ping() throws java.rmi.RemoteException
java.rmi.RemoteException
- An exception occurred remotelyorg.cmis.interopserver.beans.cap1_1.Alert[] getCAPAlertsByPostedDate(java.util.Calendar in0) throws java.rmi.RemoteException
getCAPAlerts(Calendar)
except that the date-time value
is being compared to the actual time that Alert is posted to the DMIS server
instead of the sent field in the Alert.
in0
- Calendar --> a date-time cutoff for retrieving posted events,
please note this value is being compared to the actual time that Alert is
posted to the DMIS server.
java.rmi.RemoteException
org.cmis.interopserver.beans.cap1_1.Alert[] getCAPAlertsGlobalBySentDate(java.util.Calendar in0) throws java.rmi.RemoteException
in0
- Calendar --> value being compared to the sent field
java.rmi.RemoteException
org.cmis.interopserver.beans.cap1_1.Alert[] getCAPAlertsGlobalByPostedDate(java.util.Calendar in0) throws java.rmi.RemoteException
in0
- Calendar --> value being compared to the actual time Alert is being
posted to DMIS.
java.rmi.RemoteException
org.cmis.interopserver.beans.cap1_1.Alert[] getMyCogsAlertsByPostedDate(java.util.Calendar in0) throws java.rmi.RemoteException
in0
- Calendar --> date-time value being compared to the time each
Alert is being posted to the DMIS system.
java.rmi.RemoteException
org.cmis.interopserver.beans.cap1_1.Alert[] getMyCogsAlertsBySentDate(java.util.Calendar in0) throws java.rmi.RemoteException
in0
- Calendar --> date-time value being compared to the Alert's sent
field
Alert is being posted to the DMIS system.
java.rmi.RemoteException
org.cmis.interopserver.beans.cap1_1.Alert[] getAlertsSentBySentDate(java.util.Calendar in0) throws java.rmi.RemoteException
in0
- Calendar --> date-time value being compared to each Alert's
sent filed
of each Alert
java.rmi.RemoteException
org.cmis.interopserver.beans.cap1_1.Alert[] getAlertsSentByPostedDate(java.util.Calendar in0) throws java.rmi.RemoteException
in0
- Calendar --> date-time value being compared to the time each
Alert is being posted to the DMIS system.
java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |