Queries¶
Authorization Query¶
Bases:
dlkit.osid.queries.OsidRelationshipQueryThe query for authorizations.
Matches explciit authorizations.
Parameters: match ( boolean) –trueto match explicit authorizations,falseto match implciit authorizationscompliance: mandatory – This method must be implemented.
Adds an
Idto match explicit or implicitly related authorizations depending onmatchExplicitAuthorizations().Multiple
Idscan be added to perform a booleanORamong them.Parameters: - id (
osid.id.Id) –Idto match - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–idisnullcompliance: mandatory – This method must be implemented.
- id (
Tests if an
AuthorizationQueryis available.Returns: trueif an authorization query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the authorization query.
Parameters: match ( boolean) –trueif a positive match,falsefor a negative matchReturns: the AuthorizationQueryReturn type: osid.authorization.AuthorizationQueryRaise: Unimplemented–supports_related_authorization_query()isfalsecompliance: optional – This method must be implemented if ``supports_related_authorization_query()`` is ``true``.
Matches the resource identified by the given
Id.Parameters: - resource_id (
osid.id.Id) – theIdof theResource - match (
boolean) –trueif a positive match,falsefor a negative match
Raise: NullArgument–resource_idisnullcompliance: mandatory – This method must be implemented.
- resource_id (
Tests if a
ResourceQueryis available.Returns: trueif a resource query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the resource query.
Parameters: match ( boolean) –trueif a positive match,falsefor a negative matchReturns: the ResourceQueryReturn type: osid.resource.ResourceQueryRaise: Unimplemented–supports_resource_query()isfalsecompliance: optional – This method must be implemented if ``supports_resource_query()`` is ``true``.
Matches authorizations that have any resource.
Parameters: match ( boolean) –trueto match authorizations with any resource,falseto match authorizations with no resourcecompliance: mandatory – This method must be implemented.
Matches the trust identified by the given
Id.Parameters: - trust_id (
osid.id.Id) – theIdof theTrust - match (
boolean) –trueif a positive match,falsefor a negative match
Raise: NullArgument–trust_idisnullcompliance: mandatory – This method must be implemented.
- trust_id (
Matches authorizations that have any trust defined.
Parameters: match ( boolean) –trueto match authorizations with any trust,falseto match authorizations with no trustscompliance: mandatory – This method must be implemented.
Matches the agent identified by the given
Id.Parameters: - agent_id (
osid.id.Id) – the Id of theAgent - match (
boolean) –trueif a positive match,falsefor a negative match
Raise: NullArgument–agent_idisnullcompliance: mandatory – This method must be implemented.
- agent_id (
Tests if an
AgentQueryis available.Returns: trueif an agent query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the agent query.
Parameters: match ( boolean) –trueif a positive match,falsefor a negative matchReturns: the AgentQueryReturn type: osid.authentication.AgentQueryRaise: Unimplemented–supports_agent_query()isfalsecompliance: optional – This method must be implemented if ``supports_agent_query()`` is ``true``.
Matches authorizations that have any agent.
Parameters: match ( boolean) –trueto match authorizations with any agent,falseto match authorizations with no agentcompliance: mandatory – This method must be implemented.
Matches the function identified by the given
Id.Parameters: - function_id (
osid.id.Id) – the Id of theFunction - match (
boolean) –trueif a positive match,falsefor a negative match
Raise: NullArgument–function_idisnullcompliance: mandatory – This method must be implemented.
- function_id (
Tests if a
FunctionQueryis available.Returns: trueif a function query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the function query.
Parameters: match ( boolean) –trueif a positive match,falsefor a negative matchReturns: the FunctinQueryReturn type: osid.authorization.FunctionQueryRaise: Unimplemented–supports_function_query()isfalsecompliance: optional – This method must be implemented if ``supports_function_query()`` is ``true``.
Matches the qualifier identified by the given
Id.Parameters: - qualifier_id (
osid.id.Id) – the Id of theQualifier - match (
boolean) –trueif a positive match,falsefor a negative match
Raise: NullArgument–qualifier_idisnullcompliance: mandatory – This method must be implemented.
- qualifier_id (
Tests if a
QualifierQueryis available.Returns: trueif a qualifier query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the qualiier query.
Parameters: match ( boolean) –trueif a positive match,falsefor a negative matchReturns: the QualifierQueryReturn type: osid.authorization.QualifierQueryRaise: Unimplemented–supports_qualifier_query()isfalsecompliance: optional – This method must be implemented if ``supports_qualifier_query()`` is ``true``.
Sets the vault
Idfor this query.Parameters: - vault_id (
osid.id.Id) – a vaultId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–vault_idisnullcompliance: mandatory – This method must be implemented.
- vault_id (
Tests if a
VaultQueryis available.Returns: trueif a vault query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the query for a vault.
Multiple retrievals produce a nested
ORterm.Returns: the vault query Return type: osid.authorization.VaultQueryRaise: Unimplemented–supports_vault_query()isfalsecompliance: optional – This method must be implemented if ``supports_vault_query()`` is ``true``.
Gets the authorization query record corresponding to the given
AuthorizationrecordType.Multiple retrievals produce a nested
ORterm.Parameters: authorization_record_type ( osid.type.Type) – an authorization record typeReturns: the authorization query record Return type: osid.authorization.records.AuthorizationQueryRecordRaise: NullArgument–authorization_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(authorization_record_type)isfalsecompliance: mandatory – This method must be implemented.
Vault Query¶
Bases:
dlkit.osid.queries.OsidCatalogQueryThis is the query for searching vaults.
Each method specifies an
ANDterm while multiple invocations of the same method produce a nestedOR.Sets the function
Idfor this query.Parameters: - function_id (
osid.id.Id) – a functionId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–function_idisnullcompliance: mandatory – This method must be implemented.
- function_id (
Tests if a
FunctionQueryis available.Returns: trueif a function query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the query for a function.
Multiple retrievals produce a nested
ORterm.Returns: the function query Return type: osid.authorization.FunctionQueryRaise: Unimplemented–supports_function_query()isfalsecompliance: optional – This method must be implemented if ``supports_function_query()`` is ``true``.
Matches vaults that have any function.
Parameters: match ( boolean) –trueto match vaults with any function mapping,falseto match vaults with no function mappingcompliance: mandatory – This method must be implemented.
Sets the qualifier
Idfor this query.Parameters: - qualifier_id (
osid.id.Id) – a qualifierId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–qualifier_idisnullcompliance: mandatory – This method must be implemented.
- qualifier_id (
Tests if a
QualifierQueryis available.Returns: trueif a qualifier query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the query for a qualifier.
Multiple retrievals produce a nested
ORterm.Returns: the qualifier query Return type: osid.authorization.QualifierQueryRaise: Unimplemented–supports_qualifier_query()isfalsecompliance: optional – This method must be implemented if ``supports_qualifier_query()`` is ``true``.
Matches vaults that have any qualifier.
Parameters: match ( boolean) –trueto match vaults with any qualifier mapping,falseto match vaults with no qualifier mappingcompliance: mandatory – This method must be implemented.
Sets the authorization
Idfor this query.Parameters: - authorization_id (
osid.id.Id) – an authorizationId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–authorization_idisnullcompliance: mandatory – This method must be implemented.
- authorization_id (
Tests if an
AuthorizationQueryis available.Returns: trueif an authorization query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the query for an authorization.
Multiple retrievals produce a nested
ORterm.Returns: the authorization query Return type: osid.authorization.AuthorizationQueryRaise: Unimplemented–supports_authorization_query()isfalsecompliance: optional – This method must be implemented if ``supports_authorization_query()`` is ``true``.
Matches vaults that have any authorization.
Parameters: match ( boolean) –trueto match vaults with any authorization mapping,falseto match vaults with no authorization mappingcompliance: mandatory – This method must be implemented.
Sets the vault
Idfor this query to match vaults that have the specified vault as an ancestor.Parameters: - vault_id (
osid.id.Id) – a vaultId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–vault_idisnullcompliance: mandatory – This method must be implemented.
- vault_id (
Tests if a
VaultQueryis available.Returns: trueif a vault query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the query for a vault.
Multiple retrievals produce a nested
ORterm.Returns: the vault query Return type: osid.authorization.VaultQueryRaise: Unimplemented–supports_ancestor_vault_query()isfalsecompliance: optional – This method must be implemented if ``supports_ancestor_vault_query()`` is ``true``.
Matches vaults that have any ancestor.
Parameters: match ( boolean) –trueto match vaults with any ancestor,falseto match root vaultscompliance: mandatory – This method must be implemented.
Sets the vault
Idfor this query to match vaults that have the specified vault as a descendant.Parameters: - vault_id (
osid.id.Id) – a vaultId - match (
boolean) –truefor a positive match,falsefor negative match
Raise: NullArgument–vault_idisnullcompliance: mandatory – This method must be implemented.
- vault_id (
Tests if a
VaultQueryis available.Returns: trueif a vault query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the query for a vault.
Multiple retrievals produce a nested
ORterm.Returns: the vault query Return type: osid.authorization.VaultQueryRaise: Unimplemented–supports_descendant_vault_query()isfalsecompliance: optional – This method must be implemented if ``supports_descendant_vault_query()`` is ``true``.
Matches vaults that have any descendant.
Parameters: match ( boolean) –trueto match vaults with any Ddscendant,falseto match leaf vaultscompliance: mandatory – This method must be implemented.
Gets the vault query record corresponding to the given
VaultrecordType.Multiple record retrievals produce a nested
ORterm.Parameters: vault_record_type ( osid.type.Type) – a vault record typeReturns: the vault query record Return type: osid.authorization.records.VaultQueryRecordRaise: NullArgument–vault_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(vault_record_type)isfalsecompliance: mandatory – This method must be implemented.