public interface EffortQuery extends OsidRelationshipQuery
This is the query for searching efforts. 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 |
clearCommissionIdTerms()
Clears the commission
Id query terms. |
void |
clearCommissionTerms()
Clears the commission query terms.
|
void |
clearFoundryIdTerms()
Clears the foundry
Id query terms. |
void |
clearFoundryTerms()
Clears the foundry query terms.
|
void |
clearResourceIdTerms()
Clears the resource
Id query terms. |
void |
clearResourceTerms()
Clears the resource query terms.
|
void |
clearTimeSpentTerms()
Clears the time spent query terms.
|
CommissionQuery |
getCommissionQuery()
Gets the query for a commission.
|
EffortQueryRecord |
getEffortQueryRecord(Type effortRecordType)
Gets the effort query record corresponding to the given
Effort
record Type. |
FoundryQuery |
getFoundryQuery()
Gets the query for a foundry.
|
ResourceQuery |
getResourceQuery()
Gets the query for a resource.
|
void |
matchCommissionId(Id commissionId,
boolean match)
Sets the commission
Id for this query. |
void |
matchFoundryId(Id foundryId,
boolean match)
Sets the foundry
Id for this query to match efforts
assigned to foundries. |
void |
matchResourceId(Id resourceId,
boolean match)
Sets the resource
Id for this query. |
void |
matchTimeSpent(Duration start,
Duration end,
boolean match)
Matches the time spent between the given durations inclusive.
|
boolean |
supportsCommissionQuery()
Tests if a
CommissionQuery is available. |
boolean |
supportsFoundryQuery()
Tests if a
FoundryQuery is available. |
boolean |
supportsResourceQuery()
Tests if a
ResourceQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQuery
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
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchResourceId(Id resourceId, boolean match)
Id
for this query.resourceId
- the resource Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearResourceIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsResourceQuery()
ResourceQuery
is available. true
if a resource query is available,
false
otherwisemandatory
- This method must be implemented. ResourceQuery getResourceQuery()
OR
term.UnimplementedException
- supportsResourceQuery()
is false
optional
- This method must be implemented if
supportsResourceQuery()
is true.
void clearResourceTerms()
mandatory
- This method must be implemented. void matchCommissionId(Id commissionId, boolean match)
Id
for this query.commissionId
- the commission Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- commissionId
is
null
mandatory
- This method must be implemented. void clearCommissionIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsCommissionQuery()
CommissionQuery
is available. true
if a commission query is available,
false
otherwisemandatory
- This method must be implemented. CommissionQuery getCommissionQuery()
OR
term.UnimplementedException
-
supportsCommissionQuery()
is false
optional
- This method must be implemented if
supportsCommissionQuery()
is true.
void clearCommissionTerms()
mandatory
- This method must be implemented. void matchTimeSpent(Duration start, Duration end, boolean match)
start
- start rangeend
- end rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- start
is
greater than end
NullArgumentException
- start
or
end
is null
mandatory
- This method must be implemented. void clearTimeSpentTerms()
mandatory
- This method must be implemented. void matchFoundryId(Id foundryId, boolean match)
Id
for this query to match efforts
assigned to foundries.foundryId
- the foundry Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- foundryId
is
null
mandatory
- This method must be implemented. void clearFoundryIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsFoundryQuery()
FoundryQuery
is available. true
if a foundry query is available,
false
otherwisemandatory
- This method must be implemented. FoundryQuery getFoundryQuery()
OR
term.UnimplementedException
- supportsFoundryQuery()
is false
optional
- This method must be implemented if
supportsFoundryQuery()
is true.
void clearFoundryTerms()
mandatory
- This method must be implemented. EffortQueryRecord getEffortQueryRecord(Type effortRecordType) throws OperationFailedException
Effort
record Type.
Multiple record retrievals produce
a nested OR
term.effortRecordType
- an effort record typeNullArgumentException
- effortRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(effortRecordType)
is false
mandatory
- This method must be implemented.