Queries¶
Authorization Query¶
Bases:
dlkit.osid.queries.OsidRelationshipQuery
The query for authorizations.
Matches explciit authorizations.
Parameters: match ( boolean
) –true
to match explicit authorizations,false
to match implciit authorizationscompliance: mandatory – This method must be implemented.
Adds an
Id
to match explicit or implicitly related authorizations depending onmatchExplicitAuthorizations()
.Multiple
Ids
can be added to perform a booleanOR
among them.Parameters: - id (
osid.id.Id
) –Id
to match - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–id
isnull
compliance: mandatory – This method must be implemented.
- id (
Tests if an
AuthorizationQuery
is available.Returns: true
if an authorization query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the authorization query.
Parameters: match ( boolean
) –true
if a positive match,false
for a negative matchReturns: the AuthorizationQuery
Return type: osid.authorization.AuthorizationQuery
Raise: Unimplemented
–supports_related_authorization_query()
isfalse
compliance: 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
) – theId
of theResource
- match (
boolean
) –true
if a positive match,false
for a negative match
Raise: NullArgument
–resource_id
isnull
compliance: mandatory – This method must be implemented.
- resource_id (
Tests if a
ResourceQuery
is available.Returns: true
if a resource query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the resource query.
Parameters: match ( boolean
) –true
if a positive match,false
for a negative matchReturns: the ResourceQuery
Return type: osid.resource.ResourceQuery
Raise: Unimplemented
–supports_resource_query()
isfalse
compliance: optional – This method must be implemented if ``supports_resource_query()`` is ``true``.
Matches authorizations that have any resource.
Parameters: match ( boolean
) –true
to match authorizations with any resource,false
to 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
) – theId
of theTrust
- match (
boolean
) –true
if a positive match,false
for a negative match
Raise: NullArgument
–trust_id
isnull
compliance: mandatory – This method must be implemented.
- trust_id (
Matches authorizations that have any trust defined.
Parameters: match ( boolean
) –true
to match authorizations with any trust,false
to 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
) –true
if a positive match,false
for a negative match
Raise: NullArgument
–agent_id
isnull
compliance: mandatory – This method must be implemented.
- agent_id (
Tests if an
AgentQuery
is available.Returns: true
if an agent query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the agent query.
Parameters: match ( boolean
) –true
if a positive match,false
for a negative matchReturns: the AgentQuery
Return type: osid.authentication.AgentQuery
Raise: Unimplemented
–supports_agent_query()
isfalse
compliance: optional – This method must be implemented if ``supports_agent_query()`` is ``true``.
Matches authorizations that have any agent.
Parameters: match ( boolean
) –true
to match authorizations with any agent,false
to 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
) –true
if a positive match,false
for a negative match
Raise: NullArgument
–function_id
isnull
compliance: mandatory – This method must be implemented.
- function_id (
Tests if a
FunctionQuery
is available.Returns: true
if a function query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the function query.
Parameters: match ( boolean
) –true
if a positive match,false
for a negative matchReturns: the FunctinQuery
Return type: osid.authorization.FunctionQuery
Raise: Unimplemented
–supports_function_query()
isfalse
compliance: 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
) –true
if a positive match,false
for a negative match
Raise: NullArgument
–qualifier_id
isnull
compliance: mandatory – This method must be implemented.
- qualifier_id (
Tests if a
QualifierQuery
is available.Returns: true
if a qualifier query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the qualiier query.
Parameters: match ( boolean
) –true
if a positive match,false
for a negative matchReturns: the QualifierQuery
Return type: osid.authorization.QualifierQuery
Raise: Unimplemented
–supports_qualifier_query()
isfalse
compliance: optional – This method must be implemented if ``supports_qualifier_query()`` is ``true``.
Sets the vault
Id
for this query.Parameters: - vault_id (
osid.id.Id
) – a vaultId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–vault_id
isnull
compliance: mandatory – This method must be implemented.
- vault_id (
Tests if a
VaultQuery
is available.Returns: true
if a vault query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for a vault.
Multiple retrievals produce a nested
OR
term.Returns: the vault query Return type: osid.authorization.VaultQuery
Raise: Unimplemented
–supports_vault_query()
isfalse
compliance: optional – This method must be implemented if ``supports_vault_query()`` is ``true``.
Gets the authorization query record corresponding to the given
Authorization
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: authorization_record_type ( osid.type.Type
) – an authorization record typeReturns: the authorization query record Return type: osid.authorization.records.AuthorizationQueryRecord
Raise: NullArgument
–authorization_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(authorization_record_type)
isfalse
compliance: mandatory – This method must be implemented.
Vault Query¶
Bases:
dlkit.osid.queries.OsidCatalogQuery
This is the query for searching vaults.
Each method specifies an
AND
term while multiple invocations of the same method produce a nestedOR
.Sets the function
Id
for this query.Parameters: - function_id (
osid.id.Id
) – a functionId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–function_id
isnull
compliance: mandatory – This method must be implemented.
- function_id (
Tests if a
FunctionQuery
is available.Returns: true
if a function query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for a function.
Multiple retrievals produce a nested
OR
term.Returns: the function query Return type: osid.authorization.FunctionQuery
Raise: Unimplemented
–supports_function_query()
isfalse
compliance: optional – This method must be implemented if ``supports_function_query()`` is ``true``.
Matches vaults that have any function.
Parameters: match ( boolean
) –true
to match vaults with any function mapping,false
to match vaults with no function mappingcompliance: mandatory – This method must be implemented.
Sets the qualifier
Id
for this query.Parameters: - qualifier_id (
osid.id.Id
) – a qualifierId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–qualifier_id
isnull
compliance: mandatory – This method must be implemented.
- qualifier_id (
Tests if a
QualifierQuery
is available.Returns: true
if a qualifier query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for a qualifier.
Multiple retrievals produce a nested
OR
term.Returns: the qualifier query Return type: osid.authorization.QualifierQuery
Raise: Unimplemented
–supports_qualifier_query()
isfalse
compliance: optional – This method must be implemented if ``supports_qualifier_query()`` is ``true``.
Matches vaults that have any qualifier.
Parameters: match ( boolean
) –true
to match vaults with any qualifier mapping,false
to match vaults with no qualifier mappingcompliance: mandatory – This method must be implemented.
Sets the authorization
Id
for this query.Parameters: - authorization_id (
osid.id.Id
) – an authorizationId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–authorization_id
isnull
compliance: mandatory – This method must be implemented.
- authorization_id (
Tests if an
AuthorizationQuery
is available.Returns: true
if an authorization query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for an authorization.
Multiple retrievals produce a nested
OR
term.Returns: the authorization query Return type: osid.authorization.AuthorizationQuery
Raise: Unimplemented
–supports_authorization_query()
isfalse
compliance: optional – This method must be implemented if ``supports_authorization_query()`` is ``true``.
Matches vaults that have any authorization.
Parameters: match ( boolean
) –true
to match vaults with any authorization mapping,false
to match vaults with no authorization mappingcompliance: mandatory – This method must be implemented.
Sets the vault
Id
for this query to match vaults that have the specified vault as an ancestor.Parameters: - vault_id (
osid.id.Id
) – a vaultId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–vault_id
isnull
compliance: mandatory – This method must be implemented.
- vault_id (
Tests if a
VaultQuery
is available.Returns: true
if a vault query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for a vault.
Multiple retrievals produce a nested
OR
term.Returns: the vault query Return type: osid.authorization.VaultQuery
Raise: Unimplemented
–supports_ancestor_vault_query()
isfalse
compliance: optional – This method must be implemented if ``supports_ancestor_vault_query()`` is ``true``.
Matches vaults that have any ancestor.
Parameters: match ( boolean
) –true
to match vaults with any ancestor,false
to match root vaultscompliance: mandatory – This method must be implemented.
Sets the vault
Id
for this query to match vaults that have the specified vault as a descendant.Parameters: - vault_id (
osid.id.Id
) – a vaultId
- match (
boolean
) –true
for a positive match,false
for negative match
Raise: NullArgument
–vault_id
isnull
compliance: mandatory – This method must be implemented.
- vault_id (
Tests if a
VaultQuery
is available.Returns: true
if a vault query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for a vault.
Multiple retrievals produce a nested
OR
term.Returns: the vault query Return type: osid.authorization.VaultQuery
Raise: Unimplemented
–supports_descendant_vault_query()
isfalse
compliance: optional – This method must be implemented if ``supports_descendant_vault_query()`` is ``true``.
Matches vaults that have any descendant.
Parameters: match ( boolean
) –true
to match vaults with any Ddscendant,false
to match leaf vaultscompliance: mandatory – This method must be implemented.
Gets the vault query record corresponding to the given
Vault
recordType
.Multiple record retrievals produce a nested
OR
term.Parameters: vault_record_type ( osid.type.Type
) – a vault record typeReturns: the vault query record Return type: osid.authorization.records.VaultQueryRecord
Raise: NullArgument
–vault_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(vault_record_type)
isfalse
compliance: mandatory – This method must be implemented.