OSID Logo
OSID Specifications
authorization rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authorization.rules.AuthorizationEnablerNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to AuthorizationEnabler objects in this Vault. This also includes existing AuthorizationEnablers that may appear or disappear due to changes in the Vault 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 AuthorizationEnablerLookupSession.

MethodgetVaultId
Description

Gets the Vault Id associated with this session.

Returnosid.id.Idthe Vault Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetVault
Description

Gets the Vault associated with this session.

Returnosid.authorization.Vaultthe vault
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForAuthorizationEnablerNotifications
Description

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

Federates the view for methods in this session. A federated view will include enablers in vaults which are children of this vault in the vault hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedVaultView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodreliableAuthorizationEnablerNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeAuthorizationEnablerNotification() .

CompliancemandatoryThis method is must be implemented.
MethodunreliableAuthorizationEnablerNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeAuthorizationEnablerNotification
Description

Acknowledge an authorization enabler notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewAuthorizationEnablers
Description

Register for notifications of new authorization enablers. AuthorizationEnablerReceiver.newAuthorizationEnablers() is invoked when a new AuthorizationEnabler appears in this vault.

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

Registers for notification of updated authorization enablers. AuthorizationEnablerReceiver.changedAuthorizationEnablers() is invoked when an authorization enabler in this vault is changed.

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

Registers for notification of an updated authorization enabler. ProvisionableReceiver.changedAuthorizationEnablers() is invoked when the specified authorization enabler in this vault is changed.

Parametersosid.id.IdauthorizationEnablerIdthe Id of the AuthorizationEnabler to monitor
ErrorsNULL_ARGUMENT authorizationEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedAuthorizationEnablers
Description

Registers for notification of deleted authorization enablers. AuthorizationEnablerReceiver.deletedAuthorizationEnablers() is invoked when an authorization enabler is deleted or removed from this vault.

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

Registers for notification of a deleted authorization enabler. AuthorizationEnablerReceiver.deletedAuthorizationEnablers() is invoked when the specified authorization enabler is deleted or removed from this vault.

Parametersosid.id.IdauthorizationEnablerIdthe Id of the AuthorizationEnabler to monitor
ErrorsNULL_ARGUMENT authorizationEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.