public interface RepositoryQuery extends OsidCatalogQuery
This is the query for searching repositories. Each method specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAncestorRepositoryIdTerms()
Clears the ancestor repository
Id terms. |
void |
clearAncestorRepositoryTerms()
Clears the ancestor repository terms.
|
void |
clearAssetIdTerms()
Clears the asset
Id terms. |
void |
clearAssetTerms()
Clears the asset terms.
|
void |
clearCompositionIdTerms()
Clears the composition
Id terms. |
void |
clearCompositionTerms()
Clears the composition terms.
|
void |
clearDescendantRepositoryIdTerms()
Clears the descendant repository
Id terms. |
void |
clearDescendantRepositoryTerms()
Clears the descendant repository terms.
|
RepositoryQuery |
getAncestorRepositoryQuery()
Gets the query for a repository.
|
AssetQuery |
getAssetQuery()
Gets the query for an asset.
|
CompositionQuery |
getCompositionQuery()
Gets the query for a composition.
|
RepositoryQuery |
getDescendantRepositoryQuery()
Gets the query for a repository.
|
RepositoryQueryRecord |
getRepositoryQueryRecord(Type repositoryRecordType)
Gets the repository query record corresponding to the given
Repository record Type. |
void |
matchAncestorRepositoryId(Id repositoryId,
boolean match)
Sets the repository
Id for this query to match
repositories that have the specified repository as an ancestor. |
void |
matchAnyAncestorRepository(boolean match)
Matches repositories with any ancestor.
|
void |
matchAnyAsset(boolean match)
Matches repositories that has any asset mapping.
|
void |
matchAnyComposition(boolean match)
Matches repositories that has any composition mapping.
|
void |
matchAnyDescendantRepository(boolean match)
Matches repositories with any descendant.
|
void |
matchAssetId(Id assetId,
boolean match)
Sets the asset
Id for this query. |
void |
matchCompositionId(Id compositionId,
boolean match)
Sets the composition
Id for this query. |
void |
matchDescendantRepositoryId(Id repositoryId,
boolean match)
Sets the repository
Id for this query to match
repositories that have the specified repository as a descendant. |
boolean |
supportsAncestorRepositoryQuery()
Tests if a
RepositoryQuery is available. |
boolean |
supportsAssetQuery()
Tests if an
AssetQuery is available. |
boolean |
supportsCompositionQuery()
Tests if a
CompositionQuery is available. |
boolean |
supportsDescendantRepositoryQuery()
Tests if a
RepositoryQuery is available. |
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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQuery
void matchAssetId(Id assetId, boolean match)
Id
for this query.assetId
- an asset Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- assetId
is
null
mandatory
- This method must be implemented. void clearAssetIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAssetQuery()
AssetQuery
is available. true
if an asset query is available,
false
otherwisemandatory
- This method must be implemented. AssetQuery getAssetQuery()
OR
term.UnimplementedException
- supportsAssetQuery()
is false
optional
- This method must be implemented if
supportsAssetQuery()
is true.
void matchAnyAsset(boolean match)
match
- true
to match repositories with any
asset, false
to match repositories with no
assetmandatory
- This method must be implemented. void clearAssetTerms()
mandatory
- This method must be implemented. void matchCompositionId(Id compositionId, boolean match)
Id
for this query.compositionId
- a composition Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- compositionId
is
null
mandatory
- This method must be implemented. void clearCompositionIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsCompositionQuery()
CompositionQuery
is available. true
if a composition query is available,
false
otherwisemandatory
- This method must be implemented. CompositionQuery getCompositionQuery()
OR
term.UnimplementedException
-
supportsCompositionQuery()
is false
optional
- This method must be implemented if
supportsCompositionQuery()
is true.
void matchAnyComposition(boolean match)
match
- true
to match repositories with any
composition, false
to match repositories with
no compositionmandatory
- This method must be implemented. void clearCompositionTerms()
mandatory
- This method must be implemented. void matchAncestorRepositoryId(Id repositoryId, boolean match)
Id
for this query to match
repositories that have the specified repository as an ancestor.repositoryId
- a repository Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- repositoryId
is
null
mandatory
- This method must be implemented. void clearAncestorRepositoryIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAncestorRepositoryQuery()
RepositoryQuery
is available. true
if a repository query is available,
false
otherwisemandatory
- This method must be implemented. RepositoryQuery getAncestorRepositoryQuery()
OR
term.UnimplementedException
-
supportsAncestorRepositoryQuery()
is false
optional
- This method must be implemented if
supportsAncestorRepositoryQuery()
is true.
void matchAnyAncestorRepository(boolean match)
match
- true
to match repositories with any
ancestor, false
to match root repositoriesmandatory
- This method must be implemented. void clearAncestorRepositoryTerms()
mandatory
- This method must be implemented. void matchDescendantRepositoryId(Id repositoryId, boolean match)
Id
for this query to match
repositories that have the specified repository as a descendant.repositoryId
- a repository Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- repositoryId
is
null
mandatory
- This method must be implemented. void clearDescendantRepositoryIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsDescendantRepositoryQuery()
RepositoryQuery
is available. true
if a repository query is available,
false
otherwisemandatory
- This method must be implemented. RepositoryQuery getDescendantRepositoryQuery()
OR
term.UnimplementedException
-
supportsDescendantRepositoryQuery()
is false
optional
- This method must be implemented if
supportsDescendantRepositoryQuery()
is
true.
void matchAnyDescendantRepository(boolean match)
match
- true
to match repositories with any
descendant, false
to match leaf repositoriesmandatory
- This method must be implemented. void clearDescendantRepositoryTerms()
mandatory
- This method must be implemented. RepositoryQueryRecord getRepositoryQueryRecord(Type repositoryRecordType) throws OperationFailedException
Repository
record Type.
Multiple record
retrievals produce a nested OR
term.repositoryRecordType
- a repository record typeNullArgumentException
- repositoryRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(repositoryRecordType)
is false
mandatory
- This method must be implemented.