public interface AvailabilityNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Availability objects in this Foundry.
This session is intended for consumers needing to synchronize their state
with this service without the use of polling. Notifications are cancelled
when this session is closed.
The two views defined in this session correspond to the views in the
AvailabilityLookupSession.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRegisterForAvailabilityNotifications()
Tests if this user can register for
Availability
notifications. |
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
void |
registerForChangedAvailabilities()
Registers for notification of updated availabilities.
|
void |
registerForChangedAvailabilitiesForJob(Id jobId)
Registers for notification of updated availabilities for the given
job.
|
void |
registerForChangedAvailabilitiesForResource(Id resourceId)
Registers for notification of updated availabilities for the given
resource.
|
void |
registerForChangedAvailability(Id availabilityId)
Registers for notification of an updated availability.
|
void |
registerForDeletedAvailabilities()
Registers for notification of deleted availabilities.
|
void |
registerForDeletedAvailabilitiesForJob(Id jobId)
Registers for notification of deleted availabilities for the given
job.
|
void |
registerForDeletedAvailabilitiesForResource(Id resourceId)
Registers for notification of deleted availabilities for the given
resource.
|
void |
registerForDeletedAvailability(Id availabilityId)
Registers for notification of a deleted availability.
|
void |
registerForNewAvailabilities()
Register for notifications of new availabilities.
|
void |
registerForNewAvailabilitiesForJob(Id jobId)
Register for notifications of new availabilities for the given job.
|
void |
registerForNewAvailabilitiesForResource(Id resourceId)
Register for notifications of new availabilities for the given
resource.
|
void |
useFederatedFoundryView()
Federates the view for methods in this session.
|
void |
useIsolatedFoundryView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getFoundryId()
Foundry Id associated with this
session. Foundry Id associated with this sessionmandatory - This method must be implemented. Foundry getFoundry() throws OperationFailedException, PermissionDeniedException
Foundry associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canRegisterForAvailabilityNotifications()
Availability
notifications. A return of true does not guarantee successful
authorization. A return of false indicates that it is known all
methods in this session will result in a PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer notification operations. false if notification methods are not
authorized, true otherwisemandatory - This method must be implemented. void useFederatedFoundryView()
mandatory - This method is must be implemented. void useIsolatedFoundryView()
mandatory - This method is must be implemented. void registerForNewAvailabilities()
throws OperationFailedException,
PermissionDeniedException
AvailabilityReceiver.newAvailabilities() is invoked when a new
Availability appears in this foundry.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewAvailabilitiesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
AvailabilityReceiver.newAvailabilities() is
invoked when a new Availability appears in this
foundry.resourceId - the Id of the resource to monitorNullArgumentException - resourceId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewAvailabilitiesForJob(Id jobId) throws OperationFailedException, PermissionDeniedException
AvailabilityReceiver.newAvailabilities() is invoked
when a new Availability appears in this foundry.jobId - the Id of the job to monitorNullArgumentException - jobId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedAvailabilities()
throws OperationFailedException,
PermissionDeniedException
AvailabilityReceiver.changedAvailabilities() is invoked when
an availability in this foundry is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedAvailabilitiesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
AvailabilityReceiver.changedAvailabilities()
is invoked when an availability in this foundry is changed.resourceId - the Id of the resource to monitorNullArgumentException - resourceId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedAvailabilitiesForJob(Id jobId) throws OperationFailedException, PermissionDeniedException
AvailabilityReceiver.changedAvailability() is
invoked when an availability in this foundry is changed.jobId - the Id of the job to monitorNullArgumentException - jobId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedAvailability(Id availabilityId) throws OperationFailedException, PermissionDeniedException
AvailabilityReceiver.changedAvailabilities() is invoked when
the specified availability in this foundry is changed.availabilityId - the Id of the
Availability to monitorNullArgumentException - availabilityId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedAvailabilities()
throws OperationFailedException,
PermissionDeniedException
AvailabilityReceiver.deletedAvailabilities() is invoked when
an availability is deleted or removed from this foundry.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedAvailabilitiesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
AvailabilityReceiver.deletedAvailabilities()
is invoked when an availability is deleted or removed from this
foundry.resourceId - the Id of the resource to monitorNullArgumentException - resourceId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedAvailabilitiesForJob(Id jobId) throws OperationFailedException, PermissionDeniedException
AvailabilityReceiver.deletedAvailabilities() is
invoked when an availability is deleted or removed from this foundry.jobId - the Id of the job to monitorNullArgumentException - jobId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedAvailability(Id availabilityId) throws OperationFailedException, PermissionDeniedException
AvailabilityReceiver.deletedAvailabilities() is invoked when
the specified availability is deleted or removed from this foundry.availabilityId - the Id of the
Availability to monitorNullArgumentException - availabilityId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.