OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.PositionNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to Position objects. 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.

MethodgetRealmId
Description

Gets the Realm Id associated with this session.

Returnosid.id.Idthe Realm Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetRealm
Description

Gets the Realm associated with this session.

Returnosid.personnel.Realmthe realm
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForPositionNotifications
Description

Tests if this user can register for Position 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.

Returnboolean false if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedRealmView
Description

Federates the view for methods in this session. A federated view will include notifications for positions in realms which are children of this realm in the realm hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedRealmView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this realm only.

CompliancemandatoryThis method is must be implemented.
MethodregisterForNewPositions
Description

Register for notifications of new positions. PositionReceiver.newPositions() is invoked when a new Position is appears in this realm.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewPositionsForOrganization
Description

Register for notifications of new positions for an organization. PositionReceiver.newPositions() is invoked when a new Position appears in this realm.

Parametersosid.id.IdorganizationIdan organization to monitor
ErrorsNULL_ARGUMENT organizationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedPositions
Description

Registers for notification of updated positions. PositionReceiver.changedPositions() is invoked when a position in this realm is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedPositionsForOrganization
Description

Register for notifications of changed positions for the given organization. PositionReceiver.changedPositions() is invoked when a Position for the organization in this realm is changed.

Parametersosid.id.IdorganizationIdan organization to monitor
ErrorsNULL_ARGUMENT organizationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedPosition
Description

Registers for notification of an updated position. PositionReceiver.changedPositions() is invoked when the specified position in this realm is changed.

Parametersosid.id.IdpositionIdthe Id of the Position to monitor
ErrorsNOT_FOUNDa position was not found identified by the given Id
NULL_ARGUMENT positionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPositions
Description

Registers for notification of deleted positions. PositionReceiver.deletedPositions() is invoked when a position is removed from this realm.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPositionsForOrganization
Description

Register for notifications of deleted positions for the given organization. PositionReceiver.deletedPositions() is invoked when a Position for the organization is removed from this realm.

Parametersosid.id.IdorganizationIdan organization to monitor
ErrorsNULL_ARGUMENT organizationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPosition
Description

Registers for notification of a deleted position. PositionReceiver.deletedPositions() is invoked when the specified position is removed from this realm.

Parametersosid.id.IdpositionIdthe Id of the Position to monitor
ErrorsNOT_FOUNDa position was not found identified by the given Id
NULL_ARGUMENT positionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.