public interface ActivityQuery extends OsidObjectQuery, OsidFederateableQuery, OsidTemporalQuery
This is the query for searching activities. Each method match specifies
an AND term while multiple invocations of the same method
produce a nested OR.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAncestorActivityIdTerms()
Clears the ancestor activity
Id query terms. |
void |
clearAncestorActivityTerms()
Clears the ancestor activity query terms.
|
void |
clearBusinessIdTerms()
Clears the business
Id terms. |
void |
clearBusinessTerms()
Clears the business terms.
|
void |
clearCodeTerms()
Clears the code terms.
|
void |
clearDescendantActivityIdTerms()
Clears the descendant activity
Id query terms. |
void |
clearDescendantActivityTerms()
Clears the descendant activity query terms.
|
void |
clearOrganizationIdTerms()
Clears the organization
Id terms. |
void |
clearOrganizationTerms()
Clears the organization terms.
|
void |
clearSummaryTerms()
Clears the summary terms.
|
void |
clearSupervisorIdTerms()
Clears the supervisor
Id terms. |
void |
clearSupervisorTerms()
Clears the supervisor terms.
|
ActivityQueryRecord |
getActivityQueryRecord(Type activityRecordType)
Gets the activity query record corresponding to the given
Activity record Type. |
ActivityQuery |
getAncestorActivityQuery()
Gets the query for an activity.
|
BusinessQuery |
getBusinessQuery()
Gets the query for a business.
|
ActivityQuery |
getDescendantActivityQuery()
Gets the query for an activity.
|
ResourceQuery |
getOrganizationQuery()
Gets the query for an organization.
|
SummaryQuery |
getSummaryQuery()
Gets the query for a summary.
|
ResourceQuery |
getSupervisorQuery()
Gets the query for a supervisor.
|
void |
matchAncestorActivityId(Id activityId,
boolean match)
Sets the activity
Id for this query to match activities
that have the specified activity as an ancestor. |
void |
matchAnyAncestorActivity(boolean match)
Matches activities with any activity ancestor.
|
void |
matchAnyCode(boolean match)
Matches an activity that has any code assigned.
|
void |
matchAnyDescendantActivity(boolean match)
Matches activities with any activity descendant.
|
void |
matchAnyOrganization(boolean match)
Matches an activity that has any organization.
|
void |
matchAnySupervisor(boolean match)
Matches an activity that has any supervisor.
|
void |
matchBusinessId(Id businessId,
boolean match)
Sets the business
Id for this query to match activities
assigned to businesses. |
void |
matchCode(java.lang.String code,
Type stringMatchType,
boolean match)
Matches an activity code.
|
void |
matchDescendantActivityId(Id activityId,
boolean match)
Sets the activity
Id for this query to match activities
that have the specified activity as a descendant. |
void |
matchOrganizationId(Id organizationId,
boolean match)
Sets the organization
Id for this query. |
void |
matchSupervisorId(Id supervisorId,
boolean match)
Sets the supervisor
Id for this query. |
boolean |
supportsAncestorActivityQuery()
Tests if an
ActivityQuery is available. |
boolean |
supportsBusinessQuery()
Tests if a
BusinessQuery is available. |
boolean |
supportsDescendantActivityQuery()
Tests if an
ActivityQuery is available. |
boolean |
supportsOrganizationQuery()
Tests if a
ResourceQuery is available. |
boolean |
supportsSummaryQuery()
Tests if a
SummaryQuery is available. |
boolean |
supportsSupervisorQuery()
Tests if a
ResourceQuery 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, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDatevoid matchOrganizationId(Id organizationId, boolean match)
Id for this query.organizationId - a resource Id match - true if a positive match, false
for a negative matchNullArgumentException - organizationId
is null mandatory - This method must be implemented. void clearOrganizationIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsOrganizationQuery()
ResourceQuery is available. true if an organization query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getOrganizationQuery()
OR term.UnimplementedException -
supportsOrganizationQuery() is false optional - This method must be implemented if
supportsOrganizationQuery() is true.
void matchAnyOrganization(boolean match)
match - true to match activities with any
organization, false to match activities with no
organizationmandatory - This method must be implemented. void clearOrganizationTerms()
mandatory - This method must be implemented. void matchSupervisorId(Id supervisorId, boolean match)
Id for this query.supervisorId - a resource Id match - true if a positive match, false
for a negative matchNullArgumentException - supervisorId is
null mandatory - This method must be implemented. void clearSupervisorIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsSupervisorQuery()
ResourceQuery is available. true if a supervisor query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getSupervisorQuery()
OR term.UnimplementedException -
supportsSupervisorQuery() is false optional - This method must be implemented if
supportsSupervisorQuery() is true. void matchAnySupervisor(boolean match)
match - true to match activities with any
supervisor, false to match activities with no
supervisormandatory - This method must be implemented. void clearSupervisorTerms()
mandatory - This method must be implemented. void matchCode(java.lang.String code,
Type stringMatchType,
boolean match)
code - a codestringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - code is not
of stringMatchType NullArgumentException - code is
null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyCode(boolean match)
match - true to match activities with any code,
false to match activities with no codemandatory - This method must be implemented. void clearCodeTerms()
mandatory - This method must be implemented. boolean supportsSummaryQuery()
SummaryQuery is available. true if a summery query is available,
false otherwisemandatory - This method must be implemented. SummaryQuery getSummaryQuery()
OR term.UnimplementedException - supportsSummeryQuery()
is false optional - This method must be implemented if
supportsSupervisorQuery() is true. void clearSummaryTerms()
mandatory - This method must be implemented. void matchAncestorActivityId(Id activityId, boolean match)
Id for this query to match activities
that have the specified activity as an ancestor.activityId - an activity Id match - true for a positive match, false
for a negative matchNullArgumentException - activityId is
null mandatory - This method must be implemented. void clearAncestorActivityIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsAncestorActivityQuery()
ActivityQuery is available. true if an activity query is available,
false otherwisemandatory - This method must be implemented. ActivityQuery getAncestorActivityQuery()
OR term.UnimplementedException -
supportsAncestorActivityQuery() is false
optional - This method must be implemented if
supportsAncestorActivityQuery() is true.
void matchAnyAncestorActivity(boolean match)
match - true to match activities with any
ancestor, false to match root activitiesmandatory - This method must be implemented. void clearAncestorActivityTerms()
mandatory - This method must be implemented. void matchDescendantActivityId(Id activityId, boolean match)
Id for this query to match activities
that have the specified activity as a descendant.activityId - an activity Id match - true for a positive match, false
for a negative matchNullArgumentException - activityId is
null mandatory - This method must be implemented. void clearDescendantActivityIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsDescendantActivityQuery()
ActivityQuery is available. true if an activity query is available,
false otherwisemandatory - This method must be implemented. ActivityQuery getDescendantActivityQuery()
OR term.UnimplementedException -
supportsDescendantActivityQuery() is false
optional - This method must be implemented if
supportsDescendantActivityQuery() is true.
void matchAnyDescendantActivity(boolean match)
match - true to match activities with any
descendant, false to match leaf activitiesmandatory - This method must be implemented. void clearDescendantActivityTerms()
mandatory - This method must be implemented. void matchBusinessId(Id businessId, boolean match)
Id for this query to match activities
assigned to businesses.businessId - the business Id match - true for a positive match, false
for a negative matchNullArgumentException - businessId is
null mandatory - This method must be implemented. void clearBusinessIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsBusinessQuery()
BusinessQuery is available. true if a business query is available,
false otherwisemandatory - This method must be implemented. BusinessQuery getBusinessQuery()
OR term.UnimplementedException - supportsBusinessQuery()
is false optional - This method must be implemented if
supportsBusinessQuery() is true. void clearBusinessTerms()
mandatory - This method must be implemented. ActivityQueryRecord getActivityQueryRecord(Type activityRecordType) throws OperationFailedException
Activity record Type. Multiple record
retrievals produce a nested OR term.activityRecordType - an activity record typeNullArgumentException - activityRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(activityRecordType) is false
mandatory - This method must be implemented.