Class AbstractAuthorizationQueryInspector
java.lang.Object
net.okapia.osid.jamocha.spi.AbstractOsidQueryInspector
net.okapia.osid.jamocha.spi.AbstractOsidIdentifiableQueryInspector
net.okapia.osid.jamocha.spi.AbstractOsidObjectQueryInspector
net.okapia.osid.jamocha.spi.AbstractTemporalOsidObjectQueryInspector
net.okapia.osid.jamocha.spi.AbstractOsidRelationshipQueryInspector
net.okapia.osid.jamocha.authorization.authorization.spi.AbstractAuthorizationQueryInspector
- All Implemented Interfaces:
AuthorizationQueryInspector, Extensible, OsidBrowsableQueryInspector, OsidExtensibleQueryInspector, OsidIdentifiableQueryInspector, OsidObjectQueryInspector, OsidQueryInspector, OsidRelationshipQueryInspector, OsidTemporalQueryInspector
- Direct Known Subclasses:
AuthorizationQueryUninspector
public abstract class AbstractAuthorizationQueryInspector
extends AbstractOsidRelationshipQueryInspector
implements AuthorizationQueryInspector
A query inspector template for authorizations.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractTemporalOsidObjectQueryInspector
AbstractTemporalOsidObjectQueryInspector.OsidTemporalQueryInspectorModifier and TypeClassDescriptionprotected classComposed OsidTemporalQueryInspector.Nested classes/interfaces inherited from class AbstractOsidObjectQueryInspector
AbstractOsidObjectQueryInspector.OsidBrowsableQueryInspectorModifier and TypeClassDescriptionprotected classComposed BrowsableQueryInspector. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newAbstractAuthorizationQueryInspector. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAuthorizationQueryInspectorRecord(AuthorizationQueryInspectorRecord authorizationQueryInspectorRecord, Type authorizationRecordType) Adds a record to this authorization query.IdTerm[]Gets the agentIdquery terms.Gets the agent query terms.getAuthorizationQueryInspectorRecord(Type authorizationRecordType) Gets the record corresponding to the given authorization query inspector recordType.Gets the explicit authorization query terms.IdTerm[]Gets the functionIdquery terms.Gets the function query terms.IdTerm[]Gets the qualifierIdquery terms.Gets the qualifier query terms.IdTerm[]Gets the related authorizationIdquery terms.Gets the related authorization query terms.IdTerm[]Gets the resourceIdquery terms.Gets the resource query terms.IdTerm[]Gets the trustIdquery terms.IdTerm[]Gets the vaultIdquery terms.Gets the vault query terms.Methods inherited from class AbstractOsidRelationshipQueryInspector
getEndReasonIdTerms, getEndReasonTermsModifier and TypeMethodDescriptionIdTerm[]Gets the end reaosn stateIdquery terms.Gets the end reason state query terms.Methods inherited from class AbstractTemporalOsidObjectQueryInspector
getDateTerms, getEffectiveTerms, getEndDateTerms, getStartDateTermsModifier and TypeMethodDescriptionGets the date query terms.Gets the effective query terms.Gets the end date query terms.Gets the start date query terms.Methods inherited from class AbstractOsidObjectQueryInspector
addRecordType, getCommentIdTerms, getCommentTerms, getCreditIdTerms, getCreditTerms, getDescriptionTerms, getDisplayNameTerms, getGenusTypeTerms, getJournalEntryIdTerms, getJournalEntryTerms, getParentGenusTypeTerms, getRecordTypes, getRecordTypeTerms, getRelationshipIdTerms, getRelationshipPeerIdTerms, getRelationshipTerms, getStateIdTerms, getStateTerms, getStatisticTerms, getSubjectIdTerms, getSubjectRelevancyTerms, getSubjectTerms, hasRecordTypeModifier and TypeMethodDescriptionprotected voidaddRecordType(Type recordType) Adds a record type.IdTerm[]Gets the commentIdquery terms.Gets the comment query terms.IdTerm[]Gets the creditIdquery terms.Gets the credit query terms.Gets the description query terms.Gets the display name query terms.TypeTerm[]Gets the genus type query terms.IdTerm[]Gets the journal entryIdquery terms.Gets the journal entry query terms.TypeTerm[]Gets the parent genus type query terms.Gets the record types available in this object.TypeTerm[]Gets the record type query terms.IdTerm[]Gets the relationshipIdquery terms.IdTerm[]Gets the relationship peerIdquery terms.Gets the relationship query terms.IdTerm[]Gets the stateIdquery terms.Gets the state query terms.Gets the statistic query terms.IdTerm[]Gets the subjectIdquery terms.Gets the relevancy query terms.Gets the subject query terms.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from class AbstractOsidIdentifiableQueryInspector
getIdTermsMethods inherited from class AbstractOsidQueryInspector
getAnyTerms, getKeywordTermsModifier and TypeMethodDescriptionGets the any query terms.Gets the keyword query terms.
-
Constructor Details
-
AbstractAuthorizationQueryInspector
public AbstractAuthorizationQueryInspector()Constructs a newAbstractAuthorizationQueryInspector.
-
-
Method Details
-
getExplicitAuthorizationsTerms
Gets the explicit authorization query terms.- Specified by:
getExplicitAuthorizationsTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getRelatedAuthorizationIdTerms
Gets the related authorizationIdquery terms.- Specified by:
getRelatedAuthorizationIdTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getRelatedAuthorizationTerms
Gets the related authorization query terms.- Specified by:
getRelatedAuthorizationTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getResourceIdTerms
Gets the resourceIdquery terms.- Specified by:
getResourceIdTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getResourceTerms
Gets the resource query terms.- Specified by:
getResourceTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getTrustIdTerms
Gets the trustIdquery terms.- Specified by:
getTrustIdTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getAgentIdTerms
Gets the agentIdquery terms.- Specified by:
getAgentIdTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getAgentTerms
Gets the agent query terms.- Specified by:
getAgentTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getFunctionIdTerms
Gets the functionIdquery terms.- Specified by:
getFunctionIdTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getFunctionTerms
Gets the function query terms.- Specified by:
getFunctionTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getQualifierIdTerms
Gets the qualifierIdquery terms.- Specified by:
getQualifierIdTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getQualifierTerms
Gets the qualifier query terms.- Specified by:
getQualifierTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getVaultIdTerms
Gets the vaultIdquery terms.- Specified by:
getVaultIdTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getVaultTerms
Gets the vault query terms.- Specified by:
getVaultTermsin interfaceAuthorizationQueryInspector- Returns:
- the query terms
-
getAuthorizationQueryInspectorRecord
@OSID public AuthorizationQueryInspectorRecord getAuthorizationQueryInspectorRecord(Type authorizationRecordType) throws OperationFailedException Gets the record corresponding to the given authorization query inspector recordType.This method must be used to retrieve an authorization implementing the requested record.- Specified by:
getAuthorizationQueryInspectorRecordin interfaceAuthorizationQueryInspector- Parameters:
authorizationRecordType- an authorization record type- Returns:
- the authorization query inspsector record
- Throws:
NullArgumentException-authorizationRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(authorizationRecordType)isfalse
-
addAuthorizationQueryInspectorRecord
protected void addAuthorizationQueryInspectorRecord(AuthorizationQueryInspectorRecord authorizationQueryInspectorRecord, Type authorizationRecordType) Adds a record to this authorization query.- Parameters:
authorizationQueryInspectorRecord- authorization query inspector recordauthorizationRecordType- authorization record type- Throws:
NullArgumentException-recordisnull
-