public interface ProcessEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to ProcessEnabler
objects in this Office.
This also includes existing ProcessEnablers
that may appear
or disappear due to changes in the Office
hierarchy, 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
ProcessEnablerLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeProcessEnablerNotification(Id notificationId)
Acknowledge a step processor notification.
|
boolean |
canRegisterForProcessEnablerNotifications()
Tests if this user can register for
ProcessEnabler
notifications. |
Office |
getOffice()
Gets the
Office associated with this session. |
Id |
getOfficeId()
Gets the
Office Id associated with this
session. |
void |
registerForChangedProcessEnabler(Id processEnablerId)
Registers for notification of an updated process enabler.
|
void |
registerForChangedProcessEnablers()
Registers for notification of updated office.
|
void |
registerForDeletedProcessEnabler(Id processEnablerId)
Registers for notification of a deleted process enabler.
|
void |
registerForDeletedProcessEnablers()
Registers for notification of deleted process enablers.
|
void |
registerForNewProcessEnablers()
Register for notifications of new process enablers.
|
void |
reliableProcessEnablerNotifications()
Reliable notifications are desired.
|
void |
unreliableProcessEnablerNotifications()
Unreliable notifications are desired.
|
void |
useFederatedOfficeView()
Federates the view for methods in this session.
|
void |
useIsolatedOfficeView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getOfficeId()
Office
Id
associated with this
session. Office Id
associated with this sessionmandatory
- This method must be implemented. Office getOffice() throws OperationFailedException, PermissionDeniedException
Office
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForProcessEnablerNotifications()
ProcessEnabler
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 useFederatedOfficeView()
mandatory
- This method is must be implemented. void useIsolatedOfficeView()
mandatory
- This method is must be implemented. void reliableProcessEnablerNotifications()
acknowledgeProcessEnablerNotification()
.mandatory
- This method is must be implemented. void unreliableProcessEnablerNotifications()
mandatory
- This method is must be implemented. void acknowledgeProcessEnablerNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProcessEnablers() throws OperationFailedException, PermissionDeniedException
ProcessEnablerReceiver.newProcessEnablers()
is invoked when a
new ProcessEnabler
appears in this office.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProcessEnablers() throws OperationFailedException, PermissionDeniedException
ProcessEnablerReceiver.changedProcessEnablers()
is invoked
when a process enabler in this office is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProcessEnabler(Id processEnablerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedProcessEnablers()
is invoked when
the specified process enabler in this office is changed.processEnablerId
- the Id
of the
ProcessEnabler
to monitorNullArgumentException
- processEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProcessEnablers() throws OperationFailedException, PermissionDeniedException
ProcessEnablerReceiver.deletedProcessEnablers()
is invoked
when a process enabler is deleted or removed from this office.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProcessEnabler(Id processEnablerId) throws OperationFailedException, PermissionDeniedException
ProcessEnablerReceiver.deletedProcessEnablers()
is invoked
when the specified process enabler is deleted or removed from this
office.processEnablerId
- the Id
of the
ProcessEnabler
to monitorNullArgumentException
- processEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.