public interface EffortNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Effort
objects in this Foundry.
This also
includes existing efforts 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
EffortLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForEffortNotifications()
Tests if this user can register for
Effort
notifications. |
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
void |
registerForChangedEffort(Id effortId)
Registers for notification of an updated effort.
|
void |
registerForChangedEfforts()
Registers for notification of updated efforts.
|
void |
registerForChangedEffortsForCommission(Id commissionId)
Register for notifications of updated efforts for the given commission
Id. |
void |
registerForChangedEffortsForResource(Id resourceId)
Register for notifications of updated efforts for the given resource
Id. |
void |
registerForChangedEffortsForWork(Id workId)
Register for notifications of updated efforts for the given work
Id. |
void |
registerForDeletedEffort(Id effortId)
Registers for notification of a deleted effort.
|
void |
registerForDeletedEfforts()
Registers for notification of deleted efforts.
|
void |
registerForDeletedEffortsForCommission(Id commissionId)
Register for notifications of deleted efforts for the given commission
Id. |
void |
registerForDeletedEffortsForResource(Id resourceId)
Register for notifications of deleted efforts for the given resource
Id. |
void |
registerForDeletedEffortsForWork(Id workId)
Register for notifications of deleted efforts for the given work
Id. |
void |
registerForNewEfforts()
Register for notifications of new efforts.
|
void |
registerForNewEffortsForCommission(Id commissionId)
Register for notifications of new efforts for the given commission
Id. |
void |
registerForNewEffortsForResource(Id resourceId)
Register for notifications of new efforts for the given resource
Id. |
void |
registerForNewEffortsForWork(Id workId)
Register for notifications of new efforts 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 canRegisterForEffortNotifications()
Effort
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 registerForNewEfforts() throws OperationFailedException, PermissionDeniedException
EffortReceiver.newEfforts()
is invoked when a new
Effort
appears in this foundry.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEffortsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
EffortReceiver.newEfforts()
is
invoked when a new Effort
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 registerForNewEffortsForCommission(Id commissionId) throws OperationFailedException, PermissionDeniedException
Id.
EffortReceiver.newEfforts()
is
invoked when a new Effort
is created.commissionId
- the Id
of the commission to
monitorNullArgumentException
- commissionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEffortsForWork(Id workId) throws OperationFailedException, PermissionDeniedException
Id.
EffortReceiver.newEfforts()
is invoked when
a new Effort
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 registerForChangedEfforts() throws OperationFailedException, PermissionDeniedException
EffortReceiver.changedEfforts()
is invoked when an effort in
this foundry is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEffortsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
EffortReceiver.changedEfforts()
is
invoked when an effort 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 registerForChangedEffortsForCommission(Id commissionId) throws OperationFailedException, PermissionDeniedException
Id.
EffortReceiver.changedEfforts()
is
invoked when an effort 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 registerForChangedEffortsForWork(Id workId) throws OperationFailedException, PermissionDeniedException
Id.
EffortReceiver.changedEfforst()
is
invoked when an effort 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 registerForChangedEffort(Id effortId) throws OperationFailedException, PermissionDeniedException
EffortReceiver.changedEfforts()
is invoked when the specified
effort in this foundry is changed.effortId
- the Id
of the Effort
to
monitorNullArgumentException
- effortId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEfforts() throws OperationFailedException, PermissionDeniedException
EffortReceiver.deletedEfforts()
is invoked when an effort is
deleted or removed from this foundry.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEffortsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
EffortReceiver.deletedEfforts()
is
invoked when an effort in this foundry is removed or deleted.resourceId
- the Id
of the resource to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEffortsForCommission(Id commissionId) throws OperationFailedException, PermissionDeniedException
Id.
EffortReceiver.deletedEfforts()
is
invoked when an effort in this foundry is removed or deleted.commissionId
- the Id
of the commission to
monitorNullArgumentException
- commissionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEffortsForWork(Id workId) throws OperationFailedException, PermissionDeniedException
Id.
EffortReceiver.deletedEfforts()
is
invoked when an effort in this foundry is removed or deleted.workId
- the Id
of the work to monitorNullArgumentException
- workId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEffort(Id effortId) throws OperationFailedException, PermissionDeniedException
EffortReceiver.deletedEfforts()
is invoked when the specified
effort is deleted or removed from this foundry.effortId
- the Id
of the Effort
to
monitorNullArgumentException
- effortId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.