Interface AuthorizationQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidRelationshipQuery, OsidTemporalQuery, Suppliable
The query for authorizations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the agentIdquery terms.voidClears the agent query terms.voidClears the explicit authorization query terms.voidClears the functionIdquery terms.voidClears the function query terms.voidClears the qualifierIdquery terms.voidClears the qualifier query terms.voidClears the related authorizationIdquery terms.voidClears the related authorization query terms.voidClears the resourceIdquery terms.voidClears the resource query terms.voidClears the trustIdquery terms.voidClears the vaultIdquery terms.voidClears the vault query terms.getAgentQuery(boolean match) Gets the agent query.getAuthorizationQueryRecord(Type authorizationRecordType) Gets the authorization query record corresponding to the givenAuthorizationrecordType.getFunctionQuery(boolean match) Gets the function query.getQualifierQuery(boolean match) Gets the qualiier query.getRelatedAuthorizationQuery(boolean match) Gets the authorization query.getResourceQuery(boolean match) Gets the resource query.Gets the query for a vault.voidmatchAgentId(Id agentId, boolean match) Matches the agent identified by the givenId.voidmatchAnyAgent(boolean match) Matches authorizations that have any agent.voidmatchAnyResource(boolean match) Matches authorizations that have any resource.voidmatchAnyTrustId(boolean match) Matches authorizations that have any trust defined.voidmatchExplicitAuthorizations(boolean match) Matches explciit authorizations.voidmatchFunctionId(Id functionId, boolean match) Matches the function identified by the givenId.voidmatchQualifierId(Id qualifierId, boolean match) Matches the qualifier identified by the givenId.voidmatchRelatedAuthorizationId(Id id, boolean match) Adds anIdto match explicit or implicitly related authorizations depending onmatchExplicitAuthorizations().voidmatchResourceId(Id resourceId, boolean match) Matches the resource identified by the givenId.voidmatchTrustId(Id trustId, boolean match) Matches the trust identified by the givenId.voidmatchVaultId(Id vaultId, boolean match) Sets the vaultIdfor this query.booleanTests if anAgentQueryis available.booleanTests if aFunctionQueryis available.booleanTests if aQualifierQueryis available.booleanTests if anAuthorizationQueryis available.booleanTests if aResourceQueryis available.booleanTests if aVaultQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods inherited from interface OsidObjectQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.Methods inherited from interface OsidRelationshipQuery
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryModifier and TypeMethodDescriptionvoidClears all stateIdterms.voidClears all end reason state terms.getEndReasonQuery(boolean match) Gets the query for the end reason state.voidmatchAnyEndReason(boolean match) Match any end reason state.voidmatchEndReasonId(Id stateId, boolean match) Match theIdof the end reason state.booleanTests if aStateQueryfor the end reason is available.Methods inherited from interface OsidTemporalQuery
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDateModifier and TypeMethodDescriptionvoidClears the date query terms.voidClears the effective query terms.voidClears the end date query terms.voidClears the start date query terms.voidmatchAnyEndDate(boolean match) Matches temporals with any end date set.voidmatchAnyStartDate(boolean match) Matches temporals with any start date set.voidMatches temporals where the given date range falls entirely between the start and end dates inclusive.voidmatchEffective(boolean match) Match effective objects where the current date falls within the start and end dates inclusive.voidmatchEndDate(DateTime start, DateTime end, boolean match) Matches temporals whose effective end date falls in between the given dates inclusive.voidmatchStartDate(DateTime start, DateTime end, boolean match) Matches temporals whose start date falls in between the given dates inclusive.
-
Method Details
-
matchExplicitAuthorizations
void matchExplicitAuthorizations(boolean match) Matches explciit authorizations.- Parameters:
match-trueto match explicit authorizations,falseto match implciit authorizations- Compliance:
mandatory- This method must be implemented.
-
clearExplicitAuthorizationsTerms
void clearExplicitAuthorizationsTerms()Clears the explicit authorization query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRelatedAuthorizationId
Adds anIdto match explicit or implicitly related authorizations depending onmatchExplicitAuthorizations(). MultipleIdscan be added to perform a booleanORamong them.- Parameters:
id-Idto matchmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-idisnull- Compliance:
mandatory- This method must be implemented.
-
clearRelatedAuthorizationIdTerms
void clearRelatedAuthorizationIdTerms()Clears the related authorizationIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRelatedAuthorizationQuery
boolean supportsRelatedAuthorizationQuery()Tests if anAuthorizationQueryis available.- Returns:
trueif an authorization query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRelatedAuthorizationQuery
Gets the authorization query.- Parameters:
match-trueif a positive match,falsefor a negative match- Returns:
- the
AuthorizationQuery - Throws:
UnimplementedException-supportsRelatedAuthorizationQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRelatedAuthorizationQuery()} is {@code true} .
-
clearRelatedAuthorizationTerms
void clearRelatedAuthorizationTerms()Clears the related authorization query terms.- Compliance:
mandatory- This method must be implemented.
-
matchResourceId
Matches the resource identified by the givenId.- Parameters:
resourceId- theIdof theResourcematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearResourceIdTerms
void clearResourceIdTerms()Clears the resourceIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsResourceQuery
boolean supportsResourceQuery()Tests if aResourceQueryis available.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getResourceQuery
Gets the resource query.- Parameters:
match-trueif a positive match,falsefor a negative match- Returns:
- the
ResourceQuery - Throws:
UnimplementedException-supportsResourceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsResourceQuery()} is {@code true} .
-
matchAnyResource
void matchAnyResource(boolean match) Matches authorizations that have any resource.- Parameters:
match-trueto match authorizations with any resource,falseto match authorizations with no resource- Compliance:
mandatory- This method must be implemented.
-
clearResourceTerms
void clearResourceTerms()Clears the resource query terms.- Compliance:
mandatory- This method must be implemented.
-
matchTrustId
Matches the trust identified by the givenId.- Parameters:
trustId- theIdof theTrustmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-trustIdisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyTrustId
void matchAnyTrustId(boolean match) Matches authorizations that have any trust defined.- Parameters:
match-trueto match authorizations with any trust,falseto match authorizations with no trusts- Compliance:
mandatory- This method must be implemented.
-
clearTrustIdTerms
void clearTrustIdTerms()Clears the trustIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
matchAgentId
Matches the agent identified by the givenId.- Parameters:
agentId- the Id of theAgentmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-agentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAgentIdTerms
void clearAgentIdTerms()Clears the agentIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsAgentQuery
boolean supportsAgentQuery()Tests if anAgentQueryis available.- Returns:
trueif an agent query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAgentQuery
Gets the agent query.- Parameters:
match-trueif a positive match,falsefor a negative match- Returns:
- the
AgentQuery - Throws:
UnimplementedException-supportsAgentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAgentQuery()} is {@code true} .
-
matchAnyAgent
void matchAnyAgent(boolean match) Matches authorizations that have any agent.- Parameters:
match-trueto match authorizations with any agent,falseto match authorizations with no agent- Compliance:
mandatory- This method must be implemented.
-
clearAgentTerms
void clearAgentTerms()Clears the agent query terms.- Compliance:
mandatory- This method must be implemented.
-
matchFunctionId
Matches the function identified by the givenId.- Parameters:
functionId- the Id of theFunctionmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-functionIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearFunctionIdTerms
void clearFunctionIdTerms()Clears the functionIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsFunctionQuery
boolean supportsFunctionQuery()Tests if aFunctionQueryis available.- Returns:
trueif a function query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getFunctionQuery
Gets the function query.- Parameters:
match-trueif a positive match,falsefor a negative match- Returns:
- the
FunctinQuery - Throws:
UnimplementedException-supportsFunctionQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFunctionQuery()} is {@code true} .
-
clearFunctionTerms
void clearFunctionTerms()Clears the function query terms.- Compliance:
mandatory- This method must be implemented.
-
matchQualifierId
Matches the qualifier identified by the givenId.- Parameters:
qualifierId- the Id of theQualifiermatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-qualifierIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearQualifierIdTerms
void clearQualifierIdTerms()Clears the qualifierIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsQualifierQuery
boolean supportsQualifierQuery()Tests if aQualifierQueryis available.- Returns:
trueif a qualifier query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getQualifierQuery
Gets the qualiier query.- Parameters:
match-trueif a positive match,falsefor a negative match- Returns:
- the
QualifierQuery - Throws:
UnimplementedException-supportsQualifierQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsQualifierQuery()} is {@code true} .
-
clearQualifierTerms
void clearQualifierTerms()Clears the qualifier query terms.- Compliance:
mandatory- This method must be implemented.
-
matchVaultId
Sets the vaultIdfor this query.- Parameters:
vaultId- a vaultIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-vaultIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearVaultIdTerms
void clearVaultIdTerms()Clears the vaultIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsVaultQuery
boolean supportsVaultQuery()Tests if aVaultQueryis available.- Returns:
trueif a vault query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getVaultQuery
VaultQuery getVaultQuery()Gets the query for a vault. Multiple retrievals produce a nestedORterm.- Returns:
- the vault query
- Throws:
UnimplementedException-supportsVaultQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsVaultQuery()} is {@code true} .
-
clearVaultTerms
void clearVaultTerms()Clears the vault query terms.- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationQueryRecord
AuthorizationQueryRecord getAuthorizationQueryRecord(Type authorizationRecordType) throws OperationFailedException Gets the authorization query record corresponding to the givenAuthorizationrecordType. Multiple retrievals produce a nestedORterm.- Parameters:
authorizationRecordType- an authorization record type- Returns:
- the authorization query record
- Throws:
NullArgumentException-authorizationRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(authorizationRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-