Interface OsidSourceableQuery
- All Superinterfaces:
OsidQuery, Suppliable
- All Known Subinterfaces:
AcademyQuery, AddressBookQuery, AgencyQuery, AntimatroidQuery, AssetQuery, AuctionHouseQuery, AuctionQuery, AuditQuery, BallotQuery, BankQuery, BillingQuery, BinQuery, BlogQuery, BookQuery, BrokerQuery, BusinessQuery, BusinessQuery, CalendarQuery, CampusQuery, CatalogQuery, CatalogueQuery, ChecklistQuery, CompositionQuery, ConfigurationQuery, ConvocationQuery, CookbookQuery, CourseCatalogQuery, DepotQuery, DictionaryQuery, DirectoryQuery, DispatchQuery, DistributorQuery, EngineQuery, EngineQuery, EntryQuery, FamilyQuery, ForumQuery, FoundryQuery, FrontOfficeQuery, GradebookQuery, GraphQuery, HierarchyQuery, InquestQuery, IssueQuery, JobQuery, JournalQuery, LogQuery, MailboxQuery, MapQuery, ObjectiveBankQuery, OfficeQuery, OntologyQuery, OsidCatalogQuery, OsidGovernatorQuery, OublietteQuery, PackageQuery, PollsQuery, PoolQuery, PressQuery, ProcessQuery, ProcessQuery, ProfileQuery, PublisherQuery, QueueQuery, QueueQuery, RaceQuery, RealmQuery, RecipeQuery, RepositoryQuery, StoreQuery, SystemQuery, UtilityQuery, VaultQuery, WarehouseQuery
The OsidSourceableQuery is used to assemble search queries for
sourceables.
-
Method Summary
Modifier 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.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.
-
Method Details
-
matchProviderId
Match theIdof the provider resource.- Parameters:
resourceId-Idto matchmatch-trueif for a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearProviderIdTerms
void clearProviderIdTerms()Clears all providerIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsProviderQuery
boolean supportsProviderQuery()Tests if aResourceQueryfor the provider is available.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getProviderQuery
Gets the query for the provider. Each retrieval performs a booleanOR.- Parameters:
match-trueif for a positive match,falsefor a negative match- Returns:
- the provider query
- Throws:
UnimplementedException-supportsProviderQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProviderQuery()} is {@code true} .
-
matchAnyProvider
void matchAnyProvider(boolean match) Match sourceables with a provider value.- Parameters:
match-trueto match sourceables with any provider,falseto match sourceables with no providers- Compliance:
mandatory- This method must be implemented.
-
clearProviderTerms
void clearProviderTerms()Clears all provider terms.- Compliance:
mandatory- This method must be implemented.
-
matchBrandingId
Match theIdof an asset used for branding.- Parameters:
assetId-Idto matchmatch-trueif for a positive match,falsefor a negative match- Throws:
NullArgumentException-assetIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearBrandingIdTerms
void clearBrandingIdTerms()Clears all assetIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsBrandingQuery
boolean supportsBrandingQuery()Tests if anAssetQueryfor the branding is available.- Returns:
trueif an asset query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBrandingQuery
Gets the query for an asset. Each retrieval performs a booleanOR.- Parameters:
match-trueif for a positive match,falsefor a negative match- Returns:
- the asset query
- Throws:
UnimplementedException-supportsBrandingQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBrandingQuery()} is {@code true} .
-
matchAnyBranding
void matchAnyBranding(boolean match) Match sourceables with any branding.- Parameters:
match-trueto match any asset,falseto match no assets- Compliance:
mandatory- This method must be implemented.
-
clearBrandingTerms
void clearBrandingTerms()Clears all branding terms.- Compliance:
mandatory- This method must be implemented.
-
matchLicense
Adds a license to match. Multiple license matches can be added to perform a booleanORamong them.- Parameters:
license- a string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-licenseis not ofstringMatchTypeNullArgumentException-licenseorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyLicense
void matchAnyLicense(boolean match) Matches any object with a license.- Parameters:
match-trueto match any license,falseto match objects with no license- Compliance:
mandatory- This method must be implemented.
-
clearLicenseTerms
void clearLicenseTerms()Clears all license terms.- Compliance:
mandatory- This method must be implemented.
-