public interface WorkQuery extends OsidObjectQuery, OsidSubjugateableQuery
This is the query for searching works. 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 |
clearCompetencyIdTerms()
Clears the competency
Id query terms. |
void |
clearCompetencyTerms()
Clears the competency query terms.
|
void |
clearCompletionDateTerms()
Clears the completion date query terms.
|
void |
clearCreatedDateTerms()
Clears the creation date query terms.
|
void |
clearFoundryIdTerms()
Clears the foundry
Id query terms. |
void |
clearFoundryTerms()
Clears the foundry query terms.
|
void |
clearJobIdTerms()
Clears the job
Id query terms. |
void |
clearJobTerms()
Clears the job query terms.
|
CommissionQuery |
getCommissionQuery()
Gets the query for a commission.
|
CompetencyQuery |
getCompetencyQuery()
Gets the query for a competency.
|
FoundryQuery |
getFoundryQuery()
Gets the query for a foundry.
|
JobQuery |
getJobQuery()
Gets the query for a job.
|
WorkQueryRecord |
getWorkQueryRecord(Type workRecordType)
Gets the work query record corresponding to the given
Work
record Type. |
void |
matchAnyCommission(boolean match)
Matches work that have any commission.
|
void |
matchAnyCompetency(boolean match)
Matches work that have any competency.
|
void |
matchAnyCompletionDate(boolean match)
Matches work that have any completion date.
|
void |
matchCommissionId(Id commissionId,
boolean match)
Sets the commission
Id for this query to match
commissions. |
void |
matchCompetencyId(Id competencyId,
boolean match)
Sets the competency
Id for this query. |
void |
matchCompletionDate(DateTime start,
DateTime end,
boolean match)
Matches the completion date between the given date range inclusive.
|
void |
matchCreatedDate(DateTime start,
DateTime end,
boolean match)
Matches the creation date between the given date range inclusive.
|
void |
matchFoundryId(Id foundryId,
boolean match)
Sets the foundry
Id for this query to match works
assigned to foundries. |
void |
matchJobId(Id jobId,
boolean match)
Sets the job
Id for this query. |
boolean |
supportsAvailabilityQuery()
Tests if a
CommissionQuery is available. |
boolean |
supportsCompetencyQuery()
Tests if a
CompetencyQuery is available. |
boolean |
supportsFoundryQuery()
Tests if a
FoundryQuery is available. |
boolean |
supportsJobQuery()
Tests if a
JobQuery 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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
void matchJobId(Id jobId, boolean match)
Id
for this query.jobId
- the job Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- jobId
is
null
mandatory
- This method must be implemented. void clearJobIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsJobQuery()
JobQuery
is available. true
if a job query is available, false
otherwisemandatory
- This method must be implemented. JobQuery getJobQuery()
OR
term.UnimplementedException
- supportsJobQuery()
is false
optional
- This method must be implemented if
supportsJobQuery()
is true.
void clearJobTerms()
mandatory
- This method must be implemented. void matchCompetencyId(Id competencyId, boolean match)
Id
for this query.competencyId
- the competency Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- competencyId
is
null
mandatory
- This method must be implemented. void clearCompetencyIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsCompetencyQuery()
CompetencyQuery
is available. true
if a competency query is available,
false
otherwisemandatory
- This method must be implemented. CompetencyQuery getCompetencyQuery()
OR
term.UnimplementedException
-
supportscompetencyQuery()
is false
optional
- This method must be implemented if
supportscompetencyQuery()
is true.
void matchAnyCompetency(boolean match)
match
- true
to match work with any competency,
false
to match work with no competencymandatory
- This method must be implemented. void clearCompetencyTerms()
mandatory
- This method must be implemented. void matchCreatedDate(DateTime start, DateTime end, boolean match)
start
- start of date rangeend
- end of date 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 clearCreatedDateTerms()
mandatory
- This method must be implemented. void matchCompletionDate(DateTime start, DateTime end, boolean match)
start
- start of date rangeend
- end of date 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 matchAnyCompletionDate(boolean match)
match
- true
to match completed work,
false
to match incomplete workmandatory
- This method must be implemented. void clearCompletionDateTerms()
mandatory
- This method must be implemented. void matchCommissionId(Id commissionId, boolean match)
Id
for this query to match
commissions.commissionId
- the availability 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 supportsAvailabilityQuery()
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 matchAnyCommission(boolean match)
match
- true
to match work with any commission,
false
to match work with no availabilitymandatory
- This method must be implemented. void clearCommissionTerms()
mandatory
- This method must be implemented. void matchFoundryId(Id foundryId, boolean match)
Id
for this query to match works
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. WorkQueryRecord getWorkQueryRecord(Type workRecordType) throws OperationFailedException
Work
record Type.
Multiple record retrievals produce
a nested OR
term.workRecordType
- a work record typeNullArgumentException
- workRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(workRecordType)
is false
mandatory
- This method must be implemented.