public interface InstallationQuery extends OsidObjectQuery
This is the query for searching installations. Each method match
request produces an AND
term while multiple invocations of
a method produces a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAgentIdTerms()
Clears the agent
Id query terms. |
void |
clearAgentTerms()
Clears the agent query terms.
|
void |
clearInstallDateTerms()
Clears the install date query terms.
|
void |
clearLastCheckDateTerms()
Clears the last check date query terms.
|
void |
clearPackageIdTerms()
Clears the package
Id query terms. |
void |
clearPackageTerms()
Clears the package query terms.
|
void |
clearSiteIdTerms()
Clears the site
Id query terms. |
void |
clearSiteTerms()
Clears the site query terms.
|
AgentQuery |
getAgentQuery()
Gets the query for an agent.
|
InstallationQueryRecord |
getInstallationQueryRecord(Type installationRecordType)
Gets the installation query record corresponding to the given
Installation record Type. |
PackageQuery |
getPackageQuery()
Gets the query for a package.
|
SiteQuery |
getSiteQuery()
Gets the query for a site.
|
void |
matchAgentId(Id agentId,
boolean match)
Sets the agent
Id for this query. |
void |
matchInstallDate(DateTime from,
DateTime to,
boolean match)
Matches the install date between the given times inclusive.
|
void |
matchLastCheckDate(DateTime from,
DateTime to,
boolean match)
Matches the last checked date between the given times inclusive.
|
void |
matchPackageId(Id packageId,
boolean match)
Sets the package
Id for this query. |
void |
matchSiteId(Id siteId,
boolean match)
Sets the site
Id for this query. |
boolean |
supportsAgentQuery()
Tests if an
AgentQuery is available for querying
agents. |
boolean |
supportsPackageQuery()
Tests if a
PackageQuery is available for querying
agents. |
boolean |
supportsSiteQuery()
Tests if a
SiteQuery is available for querying sites. |
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
void matchSiteId(Id siteId, boolean match)
Id
for this query.siteId
- a site Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- siteId
is
null
mandatory
- This method must be implemented. void clearSiteIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsSiteQuery()
SiteQuery
is available for querying sites. true
if a site query is available, false
otherwisemandatory
- This method must be implemented. SiteQuery getSiteQuery()
OR
term.UnimplementedException
- supportsSiteQuery()
is false
optional
- This method must be implemented if
supportsSiteQuery()
is true.
void clearSiteTerms()
mandatory
- This method must be implemented. void matchPackageId(Id packageId, boolean match)
Id
for this query.packageId
- a package Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- packageId
is
null
mandatory
- This method must be implemented. void clearPackageIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsPackageQuery()
PackageQuery
is available for querying
agents. true
if a package query is available,
false
otherwisemandatory
- This method must be implemented. PackageQuery getPackageQuery()
OR
term.UnimplementedException
- supportsPackageQuery()
is false
optional
- This method must be implemented if
supportsPackageQuery()
is true.
void clearPackageTerms()
mandatory
- This method must be implemented. void matchInstallDate(DateTime from, DateTime to, boolean match)
from
- starting rangeto
- ending rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- to
is
less than from
mandatory
- This method must be implemented. void clearInstallDateTerms()
mandatory
- This method must be implemented. void matchAgentId(Id agentId, boolean match)
Id
for this query.agentId
- an agent Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- agentId
is
null
mandatory
- This method must be implemented. void clearAgentIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsAgentQuery()
AgentQuery
is available for querying
agents. true
if an agent query is available,
false
otherwisemandatory
- This method must be implemented. AgentQuery getAgentQuery()
OR
term.UnimplementedException
- supportsAgentQuery()
is false
optional
- This method must be implemented if
supportsAgentQuery()
is true.
void clearAgentTerms()
mandatory
- This method must be implemented. void matchLastCheckDate(DateTime from, DateTime to, boolean match)
from
- starting rangeto
- ending rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- to
is
less than from
mandatory
- This method must be implemented. void clearLastCheckDateTerms()
mandatory
- This method must be implemented. InstallationQueryRecord getInstallationQueryRecord(Type installationRecordType) throws OperationFailedException
Installation
record Type.
Multiple retrievals
produce a nested OR
term.installationRecordType
- an installation query record typeNullArgumentException
- installationRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(installationRecordType)
is false
mandatory
- This method must be implemented.