OSID Logo
OSID Specifications
authorization rules package
Version 3.1.0
Interfaceosid.authorization.rules.AuthorizationEnablerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.authorization.rules.AuthorizationRulesManager
osid.authorization.rules.AuthorizationRulesProxyManager
Description

This session provides methods to apply AuthorizationEnablers to Authorizations. An Authorization with multiple AuthorizationEnablers means any positive rule evaluation across the enablers result in an effective Authorization.

MethodgetVaultId
Description

Gets the Vault Id associated with this session.

Returnosid.id.Id the Vault Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetVault
Description

Gets the Vault associated with this session.

Returnosid.authorization.Vault the vault
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanAssignAuthorizationEnablers
Description

Tests if this user can alter authorization enabler/authorization mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 lookup operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodassignAuthorizationEnablerToAuthorization
Description

Adds an existing AuthorizationEnabler to an Authorization.

Parametersosid.id.IdauthorizationEnablerId the Id of the AuthorizationEnabler
osid.id.IdauthorizationId the Id of the Authorization
ErrorsALREADY_EXISTS authorizationEnablerId already assigned to authorizationId
NOT_FOUND authorizationEnablerId or authorizationId not found
NULL_ARGUMENT authorizationEnablerId or authorizationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignAuthorizationEnablerFromAuthorization
Description

Removes an AuthorizationEnabler from an Authorization.

Parametersosid.id.IdauthorizationEnablerId the Id of the AuthorizationEnabler
osid.id.IdauthorizationId the Id of the Authorization
ErrorsNOT_FOUND authorizationEnablerId or authorizationId not found or not mapped
NULL_ARGUMENT authorizationEnablerId or authorizationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSequenceAuthorizationEnablers
Description

Tests if this user can order AuthorizationEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnboolean false if AuthorizationEnabler ordering is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodmoveAuthorizationEnablerAhead
Description

Reorders authorization enablers for an authorization by moving the specified authorization enabler in front of a reference authorization enabler.

Parametersosid.id.IdauthorizationEnablerId the Id of an AuthorizationEnabler
osid.id.IdauthorizationId the Id of an Authorization
osid.id.IdreferenceId the reference authorization enabler Id
ErrorsNOT_FOUND authorizationEnablerId, authorizationId, or referenceId not found or, authorizationEnablerId or referenceId not related to authorizationId
NULL_ARGUMENT authorizationEnablerId, authorizationId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodmoveAuthorizationEnablerBehind
Description

Reorders authorization enablers for an authorization by moving the specified authorization enabler behind a reference authorization enabler.

Parametersosid.id.IdauthorizationEnablerId the Id of an AuthorizationEnabler
osid.id.IdauthorizationId the Id of an Authorization
osid.id.IdreferenceId the reference authorization enabler Id
ErrorsNOT_FOUND authorizationEnabelrId, authorizationId, or referenceId not found or, authorizationEnablerId or referenceId not related to authorizationId
NULL_ARGUMENT authorizationEnablerId, authorizationId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderAuthorizationEnablers
Description

Reorders a set of authorization enablers for an authorization.

Parametersosid.id.Id[]authorizationEnablerIds the Ids for a set of AuthorizationEnablers
osid.id.IdauthorizationId the Id of an Authorization
ErrorsNOT_FOUND authorizationId not found or, an authorizationEnablerId not related to authorizationId
NULL_ARGUMENT authorizationEnablerIds or authorizationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.