public interface CommissionNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Commission
objects in this Foundry.
This
also includes existing commissions 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
CommissionLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForCommissionNotifications()
Tests if this user can register for
Commission
notifications. |
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
void |
registerForChangedCommission(Id commissionId)
Registers for notification of an updated commission.
|
void |
registerForChangedCommissions()
Registers for notification of updated commissions.
|
void |
registerForChangedCommissionsForResource(Id resourceId)
Register for notifications of updated commissions for the given
resource
Id. |
void |
registerForChangedCommissionsForWork(Id workId)
Register for notifications of updated commissions for the given work
Id. |
void |
registerForDeletedCommission(Id commissionId)
Registers for notification of a deleted commission.
|
void |
registerForDeletedCommissions()
Registers for notification of deleted commissions.
|
void |
registerForDeletedCommissionsForResource(Id resourceId)
Register for notifications of deleted commissions for the given
resource
Id. |
void |
registerForDeletedCommissionsForWork(Id workId)
Register for notifications of deleted commissions for the given work
Id. |
void |
registerForNewCommissions()
Register for notifications of new commissions.
|
void |
registerForNewCommissionsForResource(Id resourceId)
Register for notifications of new commissions for the given resource
Id. |
void |
registerForNewCommissionsForWork(Id workId)
Register for notifications of new commissions for the given work
Id. |
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 canRegisterForCommissionNotifications()
Commission
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 registerForNewCommissions() throws OperationFailedException, PermissionDeniedException
CommissionReceiver.newCommissions()
is invoked when a new
Commission
appears in this foundry.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewCommissionsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
CommissionReceiver.newCommissions()
is invoked when a new Commission
is created.resourceId
- the Id
of the resource to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewCommissionsForWork(Id workId) throws OperationFailedException, PermissionDeniedException
Id.
CommissionReceiver.newCommissions()
is invoked when a new Commission
is created.workId
- the Id
of the work to monitorNullArgumentException
- workId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCommissions() throws OperationFailedException, PermissionDeniedException
CommissionReceiver.changedCommissions()
is invoked when a
commission in this foundry is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCommissionsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
CommissionReceiver.changedCommissions()
is invoked when a
Commission
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 registerForChangedCommissionsForWork(Id workId) throws OperationFailedException, PermissionDeniedException
Id.
CommissionReceiver.changedCommissions()
is invoked when a Commission
in this foundry is
changed.workId
- the Id
of the work to monitorNullArgumentException
- workId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCommission(Id commissionId) throws OperationFailedException, PermissionDeniedException
CommissionReceiver.changedCommissions()
is invoked when the
specified commission in this foundry is changed.commissionId
- the Id
of the Commission
to monitorNullArgumentException
- commissionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCommissions() throws OperationFailedException, PermissionDeniedException
CommissionReceiver.deletedCommissions()
is invoked when a
commission is deleted or removed from this foundry.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCommissionsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
CommissionReceiver.deletedCommissions()
is invoked when a
Commission
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 registerForDeletedCommissionsForWork(Id workId) throws OperationFailedException, PermissionDeniedException
Id.
CommissionReceiver.deletedCommissions()
is invoked when a Commission
is deleted or
removed from this foundry.workId
- the Id
of the work to monitorNullArgumentException
- workId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCommission(Id commissionId) throws OperationFailedException, PermissionDeniedException
CommissionReceiver.deletedCommissions()
is invoked when the
specified commission is deleted or removed from this foundry.commissionId
- the Id
of the Commission
to monitorNullArgumentException
- commissionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.