Vault¶
Vault¶
Bases:
dlkit.osid.objects.OsidCatalog,dlkit.osid.sessions.OsidSessionA vault defines a collection of authorizations and functions.
Gets the vault record corresponding to the given
VaultrecordType.This method is used to retrieve an object implementing the requested record. The
vault_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(vault_record_type)istrue.Parameters: vault_record_type ( osid.type.Type) – a vault record typeReturns: the vault record Return type: osid.authorization.records.VaultRecordRaise: NullArgument–vault_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(vault_record_type)isfalsecompliance: mandatory – This method must be implemented.
Authorization Methods¶
Gets the
VaultIdassociated with this session.
Returns: the Vault Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
Gets the
Vaultassociated with this session.
Returns: the Vaultassociated with this sessionReturn type: osid.authorization.VaultRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Tests if this user can perform authorization checks.
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
PermissionDenied. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
Returns: falseif authorization methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Determines if the given agent is authorized.
An agent is authorized if an active authorization exists whose
Agent,FunctionandQualifiermatches the supplied parameters. Authorizations may be defined using groupings or hieratchical structures for both theAgentand theQualifierbut are queried in the de-nornmalized form.The
Agentis generally determined through the use of an Authentication OSID. TheFunctionandQualifierare already known as they map to the desired authorization to validate.
Parameters:
- agent_id (
osid.id.Id) – theIdof anAgent- function_id (
osid.id.Id) – theIdof aFunction- qualifier_id (
osid.id.Id) – theIdof aQualifierReturns:
trueif the user is authorized,falseothersiseReturn type:
booleanRaise:
NotFound–function_idis not foundRaise:
NullArgument–agent_id,function_idorqualifier_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failure making requestcompliance: mandatory – This method must be implemented. implementation notes: Authorizations may be stored in a normalized form with respect to various Resources and created using specific nodes in a
FunctionorQualiferhierarchy. The provider needs to maintain a de-normalized implicit authorization store or expand the applicable hierarchies on the fly to honor this query. Querying the authorization service may in itself require a separate authorization. APermissionDeniedis a result of this authorization failure. If no explicit or implicit authorization exists for the queried tuple, this method should returnfalse.
Gets the
AuthorizationConditionfor making conditional authorization checks.
Parameters: function_id ( osid.id.Id) – theIdof aFunctionReturns: an authorization condition Return type: osid.authorization.AuthorizationConditionRaise: NotFound–function_idis not foundRaise: NullArgument–function_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failure making requestcompliance: mandatory – This method must be implemented.
Determines if the given agent is authorized.
An agent is authorized if an active authorization exists whose
Agent,FunctionandQualifiermatches the supplied parameters. Authorizations may be defined using groupings or hieratchical structures for both theAgentand theQualifierbut are queried in the de-nornmalized form.The
Agentis generally determined through the use of an Authentication OSID. TheFunctionandQualifierare already known as they map to the desired authorization to validate.
Parameters:
- agent_id (
osid.id.Id) – theIdof anAgent- function_id (
osid.id.Id) – theIdof aFunction- qualifier_id (
osid.id.Id) – theIdof aQualifier- condition (
osid.authorization.AuthorizationCondition) – an authorization conditionReturns:
trueif the user is authorized,falseothersiseReturn type:
booleanRaise:
NotFound–function_idis not foundRaise:
NullArgument–agent_id,function_id, qualifier_id, orconditionisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failure making requestRaise:
Unsupported–conditionis not of this servicecompliance: mandatory – This method must be implemented. implementation notes: Authorizations may be stored in a normalized form with respect to various Resources and created using specific nodes in a
FunctionorQualiferhierarchy. The provider needs to maintain a de-normalized implicit authorization store or expand the applicable hierarchies on the fly to honor this query. Querying the authorization service may in itself require a separate authorization. APermissionDeniedis a result of this authorization failure. If no explicit or implicit authorization exists for the queried tuple, this method should returnfalse.
Authorization Lookup Methods¶
Vault.vault_idGets the
VaultIdassociated with this session.
Returns: the Vault Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
Vault.vaultGets the
Vaultassociated with this session.
Returns: the Vaultassociated with this sessionReturn type: osid.authorization.VaultRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Tests if this user can perform authorization lookups.
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
PermissionDenied. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
Returns: falseif lookup methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
A complete view of the
Authorizationreturns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
Federates the view for methods in this session.
A federated view will include authorizations in vaults which are children of this vault in the vault hierarchy.
compliance: mandatory – This method is must be implemented.
Isolates the view for methods in this session.
An isolated view restricts searches to this vault only.
compliance: mandatory – This method is must be implemented.
Only authorizations whose effective dates are current are returned by methods in this session.
compliance: mandatory – This method is must be implemented.
All authorizations of any effective dates are returned by all methods in this session.
compliance: mandatory – This method is must be implemented.
Sets the view for methods in this session to implicit authorizations.
An implicit view will include authorizations derived from other authorizations as a result of the
Qualifier,FunctionorResourcehierarchies. This method is the opposite ofexplicit_autcompliance: mandatory – This method is must be implemented.
Sets the view for methods in this session to explicit authorizations.
An explicit view includes only those authorizations that were explicitly defined and not implied. This method is the opposite of
implicitAuthorizationView().compliance: mandatory – This method is must be implemented.
Gets the
Authorizationspecified by itsId.In plenary mode, the exact
Idis found or aNotFoundresults. Otherwise, the returnedAuthorizationmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to anAuthorizationand retained for compatibility.
Parameters: authorization_id ( osid.id.Id) – theIdof theAuthorizationto retrieveReturns: the returned AuthorizationReturn type: osid.authorization.AuthorizationRaise: NotFound– noAuthorizationfound with the givenIdRaise: NullArgument–authorization_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the authorizations specified in the
Idlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleAuthorizationsmay be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: authorization_ids ( osid.id.IdList) – the list ofIdsto retrieveReturns: the returned Authorization listReturn type: osid.authorization.AuthorizationListRaise: NotFound– anId wasnot foundRaise: NullArgument–authorization_idsisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListcorresponding to the given authorization genusTypewhich does not include authorizations of genus types derived from the specifiedType.In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Parameters: authorization_genus_type ( osid.type.Type) – an authorization genus typeReturns: the returned AuthorizationlistReturn type: osid.authorization.AuthorizationListRaise: NullArgument–authorization_genus_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failure occurredcompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListcorresponding to the given authorization genusTypeand include authorizations of genus types derived from the specifiedType.In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Parameters: authorization_genus_type ( osid.type.Type) – an authorization genus typeReturns: the returned AuthorizationlistReturn type: osid.authorization.AuthorizationListRaise: NullArgument–authorization_genus_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failure occurredcompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListcontaining the given authorization recordType.In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Parameters: authorization_record_type ( osid.type.Type) – an authorization record typeReturns: the returned AuthorizationlistReturn type: osid.authorization.AuthorizationListRaise: NullArgument–authorization_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failure occurredcompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListeffective during the entire given date range inclusive but not confined to the date range.
Parameters:
- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
AuthorizationlistReturn type:
osid.authorization.AuthorizationListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failure occurredcompliance: mandatory – This method must be implemented.
Gets a list of
Authorizationsassociated with a given resource.Authorizations related to the given resource, including those related through an
Agent,are returned. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Parameters: resource_id ( osid.id.Id) – a resourceIdReturns: the returned Authorization listReturn type: osid.authorization.AuthorizationListRaise: NullArgument–resource_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListeffective during the entire given date range inclusive but not confined to the date range.Authorizations related to the given resource, including those related through an
Agent,are returned.In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned.
Parameters:
- resource_id (
osid.id.Id) – a resourceId- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
AuthorizationlistReturn type:
osid.authorization.AuthorizationListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–resource_id, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failure occurredcompliance: mandatory – This method must be implemented.
Gets a list of
Authorizationsassociated with a given agent.In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Parameters: agent_id ( osid.id.Id) – an agentIdReturns: the returned Authorization listReturn type: osid.authorization.AuthorizationListRaise: NullArgument–agent_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListfor the given agent and effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- agent_id (
osid.id.Id) – an agentId- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
AuthorizationlistReturn type:
osid.authorization.AuthorizationListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–agent_id, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failure occurredcompliance: mandatory – This method must be implemented.
Gets a list of
Authorizationsassociated with a given function.In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Parameters: function_id ( osid.id.Id) – a functionIdReturns: the returned Authorization listReturn type: osid.authorization.AuthorizationListRaise: NullArgument–function_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListfor the given function and effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- function_id (
osid.id.Id) – a functionId- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
AuthorizationlistReturn type:
osid.authorization.AuthorizationListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–function_id, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failure occurredcompliance: mandatory – This method must be implemented.
Gets a list of
Authorizationsassociated with a given resource.Authorizations related to the given resource, including those related through an
Agent,are returned. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Parameters:
- resource_id (
osid.id.Id) – a resourceId- function_id (
osid.id.Id) – a functionIdReturns: the returned
Authorization listReturn type:
osid.authorization.AuthorizationListRaise:
NullArgument–resource_idorfunction_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListeffective during the entire given date range inclusive but not confined to the date range.Authorizations related to the given resource, including those related through an
Agent,are returned.In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned.
Parameters:
- resource_id (
osid.id.Id) – a resourceId- function_id (
osid.id.Id) – a functionId- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
AuthorizationlistReturn type:
osid.authorization.AuthorizationListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–resource_id, function_id, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failure occurredcompliance: mandatory – This method must be implemented.
Gets a list of
Authorizationsassociated with a given agent.Authorizations related to the given resource, including those related through an
Agent,are returned. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Parameters:
- agent_id (
osid.id.Id) – an agentId- function_id (
osid.id.Id) – a functionIdReturns: the returned
Authorization listReturn type:
osid.authorization.AuthorizationListRaise:
NullArgument–agent_idorfunction_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Gets an
AuthorizationListfor the given agent and effective during the entire given date range inclusive but not confined to the date range.
Parameters:
- agent_id (
osid.id.Id) – an agentId- function_id (
osid.id.Id) – a functionId- from (
osid.calendaring.DateTime) – starting date- to (
osid.calendaring.DateTime) – ending dateReturns: the returned
AuthorizationlistReturn type:
osid.authorization.AuthorizationListRaise:
InvalidArgument–fromis greater thantoRaise:
NullArgument–agent_id, function_id, fromortoisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failure occurredcompliance: mandatory – This method must be implemented.
Gets a list of
Authorizationsassociated with a given qualifier.In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Parameters: qualifier_id ( osid.id.Id) – a qualifierIdReturns: the returned Authorization listReturn type: osid.authorization.AuthorizationListRaise: NullArgument–qualifier_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Gets the explicit
Authorizationthat generated the given implicit authorization.If the given
Authorizationis explicit, then the sameAuthorizationis returned.
Parameters: authorization_id ( osid.id.Id) – an authorizationReturns: the explicit AuthorizationReturn type: osid.authorization.AuthorizationRaise: NotFound–authorization_idis not foundRaise: NullArgument–authorization_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Geta all
Authorizations.In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session.
Returns: a list of AuthorizationsReturn type: osid.authorization.AuthorizationListRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Authorization Query Methods¶
Vault.vault_idGets the
VaultIdassociated with this session.
Returns: the Vault Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
Vault.vaultGets the
Vaultassociated with this session.
Returns: the Vaultassociated with this sessionReturn type: osid.authorization.VaultRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Tests if this user can perform authorization searches.
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
PermissionDenied. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.
Returns: falseif search methods are not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Vault.use_federated_vault_view()Federates the view for methods in this session.
A federated view will include authorizations in vaults which are children of this vault in the vault hierarchy.
compliance: mandatory – This method is must be implemented.
Vault.use_isolated_vault_view()Isolates the view for methods in this session.
An isolated view restricts searches to this vault only.
compliance: mandatory – This method is must be implemented.
Vault.use_implicit_authorization_view()Sets the view for methods in this session to implicit authorizations.
An implicit view will include authorizations derived from other authorizations as a result of the
Qualifier,FunctionorResourcehierarchies. This method is the opposite ofexplicit_autcompliance: mandatory – This method is must be implemented.
Vault.use_explicit_authorization_view()Sets the view for methods in this session to explicit authorizations.
An explicit view includes only those authorizations that were explicitly defined and not implied. This method is the opposite of
implicitAuthorizationView().compliance: mandatory – This method is must be implemented.
Gets an authorization query.
Returns: the authorization query Return type: osid.authorization.AuthorizationQuerycompliance: mandatory – This method must be implemented.
Gets a list of
Authorizationsmatching the given query.
Parameters: authorization_query ( osid.authorization.AuthorizationQuery) – the authorization queryReturns: the returned AuthorizationListReturn type: osid.authorization.AuthorizationListRaise: NullArgument–authorization_queryisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–authorization_queryis not of this servicecompliance: mandatory – This method must be implemented.
Authorization Admin Methods¶
Vault.vault_idGets the
VaultIdassociated with this session.
Returns: the Vault Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
Vault.vaultGets the
Vaultassociated with this session.
Returns: the Vaultassociated with this sessionReturn type: osid.authorization.VaultRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Tests if this user can create
Authorizations.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
PermissionDenied. This is intended as a hint to an application that may opt not to offer create operations to unauthorized users.
Returns: falseifAuthorizationcreation is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Tests if this user can create a single
Authorizationusing the desired record types.While
AuthorizationManager.getAuthorizationRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificAuthorization. Providing an empty array tests if anAuthorizationcan be created with no records.
Parameters: authorization_record_types ( osid.type.Type[]) – array of authorization record typesReturns: trueifAuthorizationcreation using the specifiedTypesis supported,falseotherwiseReturn type: booleanRaise: NullArgument–authorization_record_typesisnullcompliance: mandatory – This method must be implemented.
Gets the authorization form for creating new authorizations.
A new form should be requested for each create transaction.
Parameters:
- agent_id (
osid.id.Id) – the agentId- function_id (
osid.id.Id) – the functionId- qualifier_id (
osid.id.Id) – the qualifierId- authorization_record_types (
osid.type.Type[]) – array of authorization record typesReturns: the authorization form
Return type:
osid.authorization.AuthorizationFormRaise:
NotFound–agent_id, function_idorqualifier_idis not foundRaise:
NullArgument–agent_id, function_id, qualifier_idorauthorization_record_typesisnullRaise:
OperationFailed–unable to complete requestRaise:
PermissionDenied– authorization failureRaise:
Unsupported– unable to get form with requested record typescompliance: mandatory – This method must be implemented.
Gets the authorization form for creating new authorizations.
A new form should be requested for each create transaction.
Parameters:
- resource_id (
osid.id.Id) – the resourceId- function_id (
osid.id.Id) – the functionId- qualifier_id (
osid.id.Id) – the qualifierId- authorization_record_types (
osid.type.Type[]) – array of authorization record typesReturns: the authorization form
Return type:
osid.authorization.AuthorizationFormRaise:
NotFound–resource_id, function_idorqualifier_idis not foundRaise:
NullArgument–resource_id, function_id, qualifier_id,orauthorization_record_typesisnullRaise:
OperationFailed–unable to complete requestRaise:
PermissionDenied– authorization failureRaise:
Unsupported– unable to get form with requested record typescompliance: mandatory – This method must be implemented.
Gets the authorization form for creating new authorizations.
A new form should be requested for each create transaction.
Parameters:
- resource_id (
osid.id.Id) – a resourceId- trust_id (
osid.id.Id) – anIdfor a circle of trust- function_id (
osid.id.Id) – a functionId- qualifier_id (
osid.id.Id) – the qualifierId- authorization_record_types (
osid.type.Type[]) – array of authorization record typesReturns: the authorization form
Return type:
osid.authorization.AuthorizationFormRaise:
NotFound–resource_id, trust_id, function_id, orqualifieridis not foundRaise:
NullArgument–resource_id, trust_id,resource_id, qualifier_idorauthorization_record_typesisnullRaise:
OperationFailed–unable to complete requestRaise:
PermissionDenied– authorization failureRaise:
Unsupported– unable to get form with requested record typescompliance: mandatory – This method must be implemented.
Creates a new explicit
Authorization.
Parameters: authorization_form ( osid.authorization.AuthorizationForm) – the authorization formReturns: the newAuthorizationReturn type: osid.authorization.AuthorizationRaise: IllegalState–authorization_formalready used in a create transactionRaise: InvalidArgument– one or more of the form elements is invalidRaise: NullArgument–authorization_formisnullRaise: OperationFailed–unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–authorization_formdid not originate from this servicecompliance: mandatory – This method must be implemented.
Tests if this user can update
Authorizations.A return of true does not guarantee successful authorization. A return of false indicates that it is known updating an
Authorizationwill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.
Returns: falseif authorization modification is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the authorization form for updating an existing authorization.
A new authorization form should be requested for each update transaction.
Parameters: authorization_id ( osid.id.Id) – theIdof theAuthorizationReturns: the authorization form Return type: osid.authorization.AuthorizationFormRaise: NotFound–authorization_idis not foundRaise: NullArgument–authorization_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Updates an existing authorization.
Parameters: authorization_form ( osid.authorization.AuthorizationForm) – the authorizationIdRaise: IllegalState–authorization_formalready used in an update transactionRaise: InvalidArgument– one or more of the form elements is invalidRaise: NullArgument–authorization_formisnullRaise: OperationFailed–unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–authorization_formdid not originate fromget_authorization_form_for_update()compliance: mandatory – This method must be implemented.
Tests if this user can delete
Authorizations.A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting an
Authorizationwill result in aPermissionDenied. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.
Returns: falseifAuthorizationdeletion is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Deletes the
Authorizationidentified by the givenId.
Parameters: authorization_id ( osid.id.Id) – theIdof theAuthorizationto deleteRaise: NotFound– anAuthorizationwas not found identified by the givenIdRaise: NullArgument–authorization_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
Tests if this user can manage
Idaliases forAuthorizations.A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a
PermissionDenied. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.
Returns: falseifAuthorizationaliasing is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Adds an
Idto anAuthorizationfor the purpose of creating compatibility.The primary
Idof theAuthorizationis determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another authorization. it is reassigned to the given authorizationId.
Parameters:
- authorization_id (
osid.id.Id) – theIdof anAuthorization- alias_id (
osid.id.Id) – the aliasIdRaise:
AlreadyExists–alias_idis already assignedRaise:
NotFound–authorization_idnot foundRaise:
NullArgument–authorization_idoralias_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.