public class ResourceCalendarGatewayClient extends Interface_Client
| Constructor and Description |
|---|
ResourceCalendarGatewayClient()
empty constructor
|
ResourceCalendarGatewayClient(java.lang.String uri)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
checkConnection(java.lang.String handle)
Check that a session handle is active
|
java.lang.String |
connect(java.lang.String userID,
java.lang.String password)
Connects an external entity to the resource service
|
void |
disconnect(java.lang.String handle)
Disconnects an external entity from the resource service
|
java.lang.String |
getAvailability(java.lang.String resourceXML,
java.util.Date fromDate,
java.util.Date toDate,
java.lang.String handle)
Gets the periods (timeslots) between 'from' and 'to' when the resource
described by the resource record xml, is available
|
java.lang.String |
getAvailability(java.lang.String resourceXML,
long from,
long to,
java.lang.String handle)
Gets the periods (timeslots) between 'from' and 'to' when the resource
described by the resource record xml, is available
|
java.lang.String |
getReservations(java.lang.String resourceXML,
java.util.Date fromDate,
java.util.Date toDate,
java.lang.String handle)
Gets all the current reservations held for a resource within a time period
|
java.lang.String |
getReservations(java.lang.String resourceXML,
long from,
long to,
java.lang.String handle)
Gets all the current reservations held for a resource within a time period
|
java.lang.String |
getResourceAvailability(java.lang.String resourceID,
java.util.Date fromDate,
java.util.Date toDate,
java.lang.String handle)
Gets the periods (timeslots) between 'from' and 'to' when the resource is
available
|
java.lang.String |
getResourceAvailability(java.lang.String resourceID,
long from,
long to,
java.lang.String handle)
Gets the periods (timeslots) between 'from' and 'to' when the resource is
available
|
java.lang.String |
registerStatusChangeListener(java.lang.String uri,
java.lang.String handle)
Registers a URI as a listener for status change events.
|
void |
removeStatusChangeListener(java.lang.String uri,
java.lang.String handle)
Removes a URI as a listener for status change events.
|
java.lang.String |
saveReservations(java.lang.String planXML,
boolean checkOnly,
java.lang.String handle)
Saves all the reservations within a UtilisationPlan (where possible)
|
executeGet, executePost, getReply, initPostConnection, prepareParamMap, send, setReadTimeout, stripOuterElement, successfulpublic ResourceCalendarGatewayClient()
public ResourceCalendarGatewayClient(java.lang.String uri)
uri - the uri of the resourceService's gatewaypublic java.lang.String connect(java.lang.String userID,
java.lang.String password)
throws java.io.IOException
userID - the useridpassword - the corresponding passwordjava.io.IOException - if the service can't be reachedpublic java.lang.String checkConnection(java.lang.String handle)
throws java.io.IOException
handle - the session handle to checkjava.io.IOException - if the service can't be reachedpublic void disconnect(java.lang.String handle)
throws java.io.IOException
handle - the sessionHandle to disconnectjava.io.IOException - if the service can't be reachedpublic java.lang.String registerStatusChangeListener(java.lang.String uri,
java.lang.String handle)
throws java.io.IOException
uri - the uri to which status change announcements are madehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic void removeStatusChangeListener(java.lang.String uri,
java.lang.String handle)
throws java.io.IOException
uri - the uri to remove as a listener for status change announcementshandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getAvailability(java.lang.String resourceXML,
long from,
long to,
java.lang.String handle)
throws java.io.IOException
resourceXML - the resource record to check for availabilityfrom - the start of the date/time rangeto - the end of the date/time rangehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getAvailability(java.lang.String resourceXML,
java.util.Date fromDate,
java.util.Date toDate,
java.lang.String handle)
throws java.io.IOException
resourceXML - the resource record to check for availabilityfromDate - the start of the date/time rangetoDate - the end of the date/time rangehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getResourceAvailability(java.lang.String resourceID,
long from,
long to,
java.lang.String handle)
throws java.io.IOException
resourceID - the resource to check for availabilityfrom - the start of the date/time rangeto - the end of the date/time rangehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getResourceAvailability(java.lang.String resourceID,
java.util.Date fromDate,
java.util.Date toDate,
java.lang.String handle)
throws java.io.IOException
resourceID - the resource to check for availabilityfromDate - the start of the date/time rangetoDate - the end of the date/time rangehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getReservations(java.lang.String resourceXML,
long from,
long to,
java.lang.String handle)
throws java.io.IOException
resourceXML - the resource(s) to get the reservations forfrom - the start of the date/time rangeto - the end of the date/time rangehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getReservations(java.lang.String resourceXML,
java.util.Date fromDate,
java.util.Date toDate,
java.lang.String handle)
throws java.io.IOException
resourceXML - the resource(s) to get the reservations forfromDate - the start of the date/time rangetoDate - the end of the date/time rangehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String saveReservations(java.lang.String planXML,
boolean checkOnly,
java.lang.String handle)
throws java.io.IOException
planXML - the UtilisationPlan containing the reservationscheckOnly - if true, will report on the effects only - won't update the
reservationshandle - a valid session handlejava.io.IOException - if the service can't be reachedCopyright © 2004-2014 The YAWL Foundation.