@Deprecated public interface CourierService
CourierService is the Interface for a Sakai service which can be used to push messages from the Sakai server components to the user interface in the browser.
It is used mostly to cause a tool in a particular portal instance to be refreshed to respond to a change noticed at the server.
An Address identifies a particular client's window: it merges the Usage session, the window's portal page location, and perhaps the tool id (for floating tool windows).
A Delivery object captures the Address, the HTML Element Id involved, and any other details of a particular type of delivery.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME
Deprecated.
This string can be used to find the service in the service manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(String address)
Deprecated.
Clear any pending delivery requests to this session client window.
|
void |
clear(String address,
String elementId)
Deprecated.
Clear any pending delivery requests to the particular client window for this element.
|
void |
deliver(Delivery delivery)
Deprecated.
Queue up a delivery for the client window identified in the Delivery object.
|
List |
getDeliveries(String address)
Deprecated.
Access and de-queue the Deliveries queued up for a particular session client window.
|
List<DeliveryProvider> |
getDeliveryProviders()
Deprecated.
Access a list of DeliveryProviders registered with the CourierService.
|
boolean |
hasDeliveries(String address)
Deprecated.
Check to see if there are any deliveries queued up for a particular session client window.
|
void |
registerDeliveryProvider(DeliveryProvider provider)
Deprecated.
Register a DeliveryProvider with the CourierService.
|
static final String SERVICE_NAME
void deliver(Delivery delivery)
delivery - The Delivery (or extension) object to deliver.void clear(String address, String elementId)
address - The address of the client window.elementId - The id of the html element.void clear(String address)
address - The address of client window.List getDeliveries(String address)
address - The address of client window.boolean hasDeliveries(String address)
address - The address of the client window.List<DeliveryProvider> getDeliveryProviders()
void registerDeliveryProvider(DeliveryProvider provider)
provider - Copyright © 2003–2020 The Sakai Foundation. All rights reserved.