public interface JobProcessorEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to JobProcessorEnabler
objects in this Foundry.
This also includes existing JobProcessorEnablers
that may appear or disappear due to changes in the Foundry
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
JobProcessorEnablerLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForJobProcessorEnablerNotifications()
Tests if this user can register for
JobProcessorEnabler
notifications. |
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
void |
registerForChangedJobProcessorEnabler(Id jobProcessorEnablerId)
Registers for notification of an updated job processor enabler.
|
void |
registerForChangedJobProcessorEnablers()
Registers for notification of updated foundry enabelrs.
|
void |
registerForDeletedJobProcessorEnabler(Id jobProcessorEnablerId)
Registers for notification of a deleted job processor enabler.
|
void |
registerForDeletedJobProcessorEnablers()
Registers for notification of deleted job processor enablers.
|
void |
registerForNewJobProcessorEnablers()
Register for notifications of new job processor enablers.
|
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, supportsTransactions
close
Id 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 canRegisterForJobProcessorEnablerNotifications()
JobProcessorEnabler
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 registerForNewJobProcessorEnablers() throws OperationFailedException, PermissionDeniedException
JobProcessorEnablerReceiver.newJobProcessorEnablers()
is
invoked when a new JobProcessorEnabler
appears in this
foundry.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedJobProcessorEnablers() throws OperationFailedException, PermissionDeniedException
JobProcessorEnablerReceiver.changedJobProcessorEnablers()
is
invoked when a job processor enabler in this foundry is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedJobProcessorEnabler(Id jobProcessorEnablerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedJobProcessorEnablers()
is invoked
when the specified job processor enabler in this foundry is changed.jobProcessorEnablerId
- the Id
of the
JobProcessorEnabler
to monitorNullArgumentException
- jobProcessorEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedJobProcessorEnablers() throws OperationFailedException, PermissionDeniedException
JobProcessorEnablerReceiver.deletedJobProcessorEnablers()
is
invoked when a job processor enabler is deleted or removed from this
foundry.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedJobProcessorEnabler(Id jobProcessorEnablerId) throws OperationFailedException, PermissionDeniedException
JobProcessorEnablerReceiver.deletedJobProcessorEnablers()
is
invoked when the specified job processor enabler is deleted or removed
from this foundry.jobProcessorEnablerId
- the Id
of the
JobProcessorEnabler
to monitorNullArgumentException
- jobProcessorEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.