Interface PackageQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSourceableQuery, Suppliable
This is the query for searching packages. Each method match request
produces an AND term while multiple invocations of a method
produces a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the copyright query terms.voidClears the creatorIdquery terms.voidClears the creator query terms.voidClears the dependencyIdquery terms.voidClears the dependency query terms.voidClears the dependentIdquery terms.voidClears the dependent query terms.voidClears the depotIdquery terms.voidClears the depot query terms.voidClears the installation contentIdterms.voidClears the installation content terms.voidClears the installationIdquery terms.voidClears the installation query terms.voidClears the release date query terms.voidClears the license acknowledgement query terms.voidClears the url query terms.voidClears the versioned packageIdquery terms.voidClears the versioned package query terms.voidClears the version since query terms.voidClears the version query terms.Gets the query for a creator resource.Gets the query for a dependency.Gets the query for a dependent.Gets the query for a depot.Gets the query for the installation content.Gets the query for an installation.getPackageQueryRecord(Type packageRecordType) Gets the package query record corresponding to the givenPackagerecordType.Multiple retrievals produce a nestedORterm.Gets the query for a version chain.voidmatchAnyCopyright(boolean match) Matches packages with any copyright.voidmatchAnyCreator(boolean match) Matches packages with any creator.voidmatchAnyDependency(boolean match) Matches packages that have any dependency.voidmatchAnyDependent(boolean match) Matches packages that have any depenents.voidmatchAnyInstallation(boolean match) Matches any packages that are installed.voidmatchAnyInstallationContent(boolean match) Matches packages with any content.voidmatchAnyReleaseDate(boolean match) Matches packages that have any release date.voidmatchAnyRequiresLicenseAcknowledgement(boolean match) Matches packages that have any acknowledgement value.voidmatchAnyURL(boolean match) Matches packages that have any url.voidmatchAnyVersion(boolean match) Matches packages with any version.voidmatchAnyVersionedPackage(boolean match) Matches packages that have any versions.voidmatchCopyright(String copyright, Type stringMatchType, boolean match) Matches the copyright.voidmatchCreatorId(Id resourceId, boolean match) Sets the creator resourceIdfor this query.voidmatchDependencyId(Id packageId, boolean match) Sets the packageIdto match packages on which a package depends.voidmatchDependentId(Id packageId, boolean match) Sets the packageIdto match packages on which other packages depend.voidmatchDepotId(Id depotId, boolean match) Sets the depotIdfor this query.voidmatchInstallationContentId(Id installationContentId, boolean match) Sets the installation contentIdfor this query.voidmatchInstallationId(Id installationId, boolean match) Sets the installationIdfor this query.voidmatchReleaseDate(DateTime from, DateTime to, boolean match) Matches the release date between the given times inclusive.voidmatchRequiresLicenseAcknowledgement(boolean match) Matches packages that require license acknowledgement.voidSets the url for this query.voidmatchVersion(Version version, boolean match) Matches a version.voidmatchVersionedPackageId(Id packageId, boolean match) Sets the packageIdto match packages in the version chain.voidmatchVersionSince(Version version, boolean match) Matches packages with versions including and more recent than the given version.booleanTests if aResourceQueryis available for querying creators.booleanTests if aPackageQueryis available.booleanTests if aPackageQueryis available.booleanTests if aDepotQueryis available for querying resources.booleanTests if anInstallationContentQueryis available.booleanTests if anInstallationQueryis available.booleanTests if aPackageQueryis 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 OsidSourceableQuery
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryModifier and TypeMethodDescriptionvoidClears all assetIdterms.voidClears all branding terms.voidClears all license terms.voidClears all providerIdterms.voidClears all provider terms.getBrandingQuery(boolean match) Gets the query for an asset.getProviderQuery(boolean match) Gets the query for the provider.voidmatchAnyBranding(boolean match) Match sourceables with any branding.voidmatchAnyLicense(boolean match) Matches any object with a license.voidmatchAnyProvider(boolean match) Match sourceables with a provider value.voidmatchBrandingId(Id assetId, boolean match) Match theIdof an asset used for branding.voidmatchLicense(String license, Type stringMatchType, boolean match) Adds a license to match.voidmatchProviderId(Id resourceId, boolean match) Match theIdof the provider resource.booleanTests if anAssetQueryfor the branding is available.booleanTests if aResourceQueryfor the provider is available.
-
Method Details
-
matchVersion
Matches a version.- Parameters:
version- the versionmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-versionorstringMatchTypeisnullUnsupportedException- version type not supported- Compliance:
mandatory- This method must be implemented.
-
matchAnyVersion
void matchAnyVersion(boolean match) Matches packages with any version.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearVersionTerms
void clearVersionTerms()Clears the version query terms.- Compliance:
mandatory- This method must be implemented.
-
matchVersionSince
Matches packages with versions including and more recent than the given version.- Parameters:
version- the versionmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-versionorstringMatchTypeisnullUnsupportedException- version type not supported- Compliance:
mandatory- This method must be implemented.
-
clearVersionSinceTerms
void clearVersionSinceTerms()Clears the version since query terms.- Compliance:
mandatory- This method must be implemented.
-
matchCopyright
Matches the copyright.- Parameters:
copyright- copyright stringstringMatchType- string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-copyrightis not ofstringMatchTypeNullArgumentException-copyrightorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyCopyright
void matchAnyCopyright(boolean match) Matches packages with any copyright.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearCopyrightTerms
void clearCopyrightTerms()Clears the copyright query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRequiresLicenseAcknowledgement
void matchRequiresLicenseAcknowledgement(boolean match) Matches packages that require license acknowledgement.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
matchAnyRequiresLicenseAcknowledgement
void matchAnyRequiresLicenseAcknowledgement(boolean match) Matches packages that have any acknowledgement value.- Parameters:
match-trueto match packages that have any acknowledgement value,falsefor to match packages that have no value- Compliance:
mandatory- This method must be implemented.
-
clearRequiresLicenseAcknowledgementTerms
void clearRequiresLicenseAcknowledgementTerms()Clears the license acknowledgement query terms.- Compliance:
mandatory- This method must be implemented.
-
matchCreatorId
Sets the creator resourceIdfor this query.- Parameters:
resourceId- a resourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCreatorIdTerms
void clearCreatorIdTerms()Clears the creatorIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsCreatorQuery
boolean supportsCreatorQuery()Tests if aResourceQueryis available for querying creators.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCreatorQuery
ResourceQuery getCreatorQuery()Gets the query for a creator resource. Multiple retrievals produce a nestedORterm.- Returns:
- the creator resource query
- Throws:
UnimplementedException-supportsCreatorQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCreatorQuery()} is {@code true} .
-
matchAnyCreator
void matchAnyCreator(boolean match) Matches packages with any creator.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearCreatorTerms
void clearCreatorTerms()Clears the creator query terms.- Compliance:
mandatory- This method must be implemented.
-
matchReleaseDate
Matches the release date between the given times inclusive.- Parameters:
from- starting rangeto- ending rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-toisless than from- Compliance:
mandatory- This method must be implemented.
-
matchAnyReleaseDate
void matchAnyReleaseDate(boolean match) Matches packages that have any release date.- Parameters:
match-trueto match packages with any release date,falseto match packages with no release date- Compliance:
mandatory- This method must be implemented.
-
clearReleaseDateTerms
void clearReleaseDateTerms()Clears the release date query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDependencyId
Sets the packageIdto match packages on which a package depends.- Parameters:
packageId- a stateIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-stateIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDependencyIdTerms
void clearDependencyIdTerms()Clears the dependencyIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsDependencyQuery
boolean supportsDependencyQuery()Tests if aPackageQueryis available.- Returns:
trueif a package query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDependencyQuery
PackageQuery getDependencyQuery()Gets the query for a dependency. Multiple retrievals produce a nestedORterm.- Returns:
- the package query
- Throws:
UnimplementedException-supportsDependencyQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDependencyQuery()} is {@code true} .
-
matchAnyDependency
void matchAnyDependency(boolean match) Matches packages that have any dependency.- Parameters:
match-trueto match packages with any dependency,falseto match packages with no dependencies- Compliance:
mandatory- This method must be implemented.
-
clearDependencyTerms
void clearDependencyTerms()Clears the dependency query terms.- Compliance:
mandatory- This method must be implemented.
-
matchURL
Sets the url for this query. Supplying multiple strings behaves like a booleanORamong the elements each which must correspond to thestringMatchType.- Parameters:
url- url string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-urlnot ofstringMatchTypeNullArgumentException-urlorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(url)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyURL
void matchAnyURL(boolean match) Matches packages that have any url.- Parameters:
match-trueto match packages with any url,falseto match packages with no url- Compliance:
mandatory- This method must be implemented.
-
clearURLTerms
void clearURLTerms()Clears the url query terms.- Compliance:
mandatory- This method must be implemented.
-
matchInstallationId
Sets the installationIdfor this query.- Parameters:
installationId- an installationIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-installationIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearInstallationIdTerms
void clearInstallationIdTerms()Clears the installationIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsInstallationQuery
boolean supportsInstallationQuery()Tests if anInstallationQueryis available.- Returns:
trueif an installation query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getInstallationQuery
InstallationQuery getInstallationQuery()Gets the query for an installation. Multiple retrievals produce a nestedORterm.- Returns:
- the installation query
- Throws:
UnimplementedException-supportsInstallationQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsInstallationQuery()} is {@code true} .
-
matchAnyInstallation
void matchAnyInstallation(boolean match) Matches any packages that are installed.- Parameters:
match-trueto match installed packages,falsefor uninstalled packages- Compliance:
mandatory- This method must be implemented.
-
clearInstallationTerms
void clearInstallationTerms()Clears the installation query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDependentId
Sets the packageIdto match packages on which other packages depend.- Parameters:
packageId- a packageIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-stateIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDependentIdTerms
void clearDependentIdTerms()Clears the dependentIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsDependentQuery
boolean supportsDependentQuery()Tests if aPackageQueryis available.- Returns:
trueif a package query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDependentQuery
PackageQuery getDependentQuery()Gets the query for a dependent. Multiple retrievals produce a nestedORterm.- Returns:
- the package query
- Throws:
UnimplementedException-supportsDependentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDependentQuery()} is {@code true} .
-
matchAnyDependent
void matchAnyDependent(boolean match) Matches packages that have any depenents.- Parameters:
match-trueto match packages with any dependents,falseto match packages with no dependents- Compliance:
mandatory- This method must be implemented.
-
clearDependentTerms
void clearDependentTerms()Clears the dependent query terms.- Compliance:
mandatory- This method must be implemented.
-
matchVersionedPackageId
Sets the packageIdto match packages in the version chain.- Parameters:
packageId- a stateIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-packageIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearVersionedPackageIdTerms
void clearVersionedPackageIdTerms()Clears the versioned packageIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsVersionedPackageQuery
boolean supportsVersionedPackageQuery()Tests if aPackageQueryis available.- Returns:
trueif a package query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getVersionedPackageQuery
PackageQuery getVersionedPackageQuery()Gets the query for a version chain. Multiple retrievals produce a nestedORterm.- Returns:
- the package query
- Throws:
UnimplementedException-supportsVersionQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsVersionQuery()} is {@code true} .
-
matchAnyVersionedPackage
void matchAnyVersionedPackage(boolean match) Matches packages that have any versions.- Parameters:
match-trueto match packages with any versions,falseto match packages with no versions- Compliance:
mandatory- This method must be implemented.
-
clearVersionedPackageTerms
void clearVersionedPackageTerms()Clears the versioned package query terms.- Compliance:
mandatory- This method must be implemented.
-
matchInstallationContentId
Sets the installation contentIdfor this query.- Parameters:
installationContentId- the installation contentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-installationContentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearInstallationContentIdTerms
void clearInstallationContentIdTerms()Clears the installation contentIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsInstallationContentQuery
boolean supportsInstallationContentQuery()Tests if anInstallationContentQueryis available.- Returns:
trueif an installation content query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getInstallationContentQuery
InstallationContentQuery getInstallationContentQuery()Gets the query for the installation content. Multiple queries can be retrieved for a nestedORterm.- Returns:
- the installation content query
- Throws:
UnimplementedException-supportsInstallationContentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsInstallationContentQuery()} is {@code true} .
-
matchAnyInstallationContent
void matchAnyInstallationContent(boolean match) Matches packages with any content.- Parameters:
match-trueto match packages with any content,falseto match packages with no content- Compliance:
mandatory- This method must be implemented.
-
clearInstallationContentTerms
void clearInstallationContentTerms()Clears the installation content terms.- Compliance:
mandatory- This method must be implemented.
-
matchDepotId
Sets the depotIdfor this query.- Parameters:
depotId- a depotIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-depotIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDepotIdTerms
void clearDepotIdTerms()Clears the depotIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsDepotQuery
boolean supportsDepotQuery()Tests if aDepotQueryis available for querying resources.- Returns:
trueif a depot query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDepotQuery
DepotQuery getDepotQuery()Gets the query for a depot. Multiple retrievals produce a nestedORterm.- Returns:
- the depot query
- Throws:
UnimplementedException-supportsDepotQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDepotQuery()} is {@code true} .
-
clearDepotTerms
void clearDepotTerms()Clears the depot query terms.- Compliance:
mandatory- This method must be implemented.
-
getPackageQueryRecord
Gets the package query record corresponding to the givenPackagerecordType.Multiple retrievals produce a nestedORterm.- Parameters:
packageRecordType- a package query record type- Returns:
- the package query record
- Throws:
NullArgumentException-packageRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(packageRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-