public interface JournalEntryQuery extends OsidObjectQuery, OsidSubjugateableQuery
This is the query for searching journal entries. Each method specifies
an AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAgentIdTerms()
Clears the agent
Id terms. |
void |
clearAgentTerms()
Clears the agent terms.
|
void |
clearBranchIdTerms()
Clears the branch
Id terms. |
void |
clearBranchTerms()
Clears the branch terms.
|
void |
clearEntriesSinceTerms()
Clears the entries since terms.
|
void |
clearJournalIdTerms()
Clears the journal
Id terms. |
void |
clearJournalTerms()
Clears the journal terms.
|
void |
clearResourceIdTerms()
Clears the resource
Id terms. |
void |
clearResourceTerms()
Clears the resource terms.
|
void |
clearSourceIdTerms()
Clears the source
Id terms. |
void |
clearTimestampTerms()
Clears the timestamp terms.
|
void |
clearVersionIdTerms()
Clears the version
Id terms. |
AgentQuery |
getAgentQuery()
Gets the query for an agent query.
|
BranchQuery |
getBranchQuery()
Gets the query for a branch.
|
JournalEntryQueryRecord |
getJournalEntryQueryRecord(Type journalEntryRecordType)
Gets the journal entry query record corresponding to the given
JournalEntry record Type. |
JournalQuery |
getJournalQuery()
Gets the query for a journal query.
|
ResourceQuery |
getResourceQuery()
Gets the query for a resource query.
|
void |
matchAgentId(Id agentId,
boolean match)
Sets an agent
Id. |
void |
matchBranchId(Id branchId,
boolean match)
Sets the branch
Id for this query to match branches
assigned to journals. |
void |
matchEntriesSince(DateTime from,
boolean match)
Matches entries following the given timestamp inclusive.
|
void |
matchJournalId(Id journalId,
boolean match)
Sets the journal
Id for this query to match entries
assigned to journals. |
void |
matchResourceId(Id resourceId,
boolean match)
Sets a resource
Id. |
void |
matchSourceId(Id sourceId,
boolean match)
Sets the source
Id. |
void |
matchTimestamp(DateTime from,
DateTime to,
boolean match)
Matches entries falling between the given times inclusive.
|
void |
matchVersionId(Id versionId,
boolean match)
Sets the version
Id. |
boolean |
supportsAgentQuery()
Tests if an
AgentQuery is available. |
boolean |
supportsBranchQuery()
Tests if a branch query is available.
|
boolean |
supportsJournalQuery()
Tests if a
JournalQuery is available. |
boolean |
supportsResourceQuery()
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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
void matchBranchId(Id branchId, boolean match)
Id
for this query to match branches
assigned to journals.branchId
- a branch Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- branchId
is
null
mandatory
- This method must be implemented. void clearBranchIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsBranchQuery()
true
if a branch query is available,
false
otherwisemandatory
- This method must be implemented. BranchQuery getBranchQuery()
UnimplementedException
- supportsBranchQuery()
is false
optional
- This method must be implemented if
supportsBranchQuery()
is true.
void clearBranchTerms()
mandatory
- This method must be implemented. void matchSourceId(Id sourceId, boolean match)
Id.
sourceId
- a source Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- sourceId
is
null
mandatory
- This method must be implemented. void clearSourceIdTerms()
Id
terms.mandatory
- This method must be implemented. void matchVersionId(Id versionId, boolean match)
Id.
versionId
- a version Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- versionId
is
null
mandatory
- This method must be implemented. void clearVersionIdTerms()
Id
terms.mandatory
- This method must be implemented. void matchTimestamp(DateTime from, DateTime to, boolean match)
from
- start timeto
- end timematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- to
is less
than from
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void clearTimestampTerms()
mandatory
- This method must be implemented. void matchEntriesSince(DateTime from, boolean match)
from
- start timematch
- true
for a positive match, false
for a negative matchNullArgumentException
- from
is
null
mandatory
- This method must be implemented. void clearEntriesSinceTerms()
mandatory
- This method must be implemented. void matchResourceId(Id resourceId, boolean match)
Id.
resourceId
- a 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
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 matchAgentId(Id agentId, boolean match)
Id.
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
terms.mandatory
- This method must be implemented. boolean supportsAgentQuery()
AgentQuery
is available. 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 matchJournalId(Id journalId, boolean match)
Id
for this query to match entries
assigned to journals.journalId
- a journal Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- journalId
is
null
mandatory
- This method must be implemented. void clearJournalIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsJournalQuery()
JournalQuery
is available. true
if a journal query is available,
false
otherwisemandatory
- This method must be implemented. JournalQuery getJournalQuery()
OR
term.UnimplementedException
- supportsJournalQuery()
is false
optional
- This method must be implemented if
supportsJournalQuery()
is true.
void clearJournalTerms()
mandatory
- This method must be implemented. JournalEntryQueryRecord getJournalEntryQueryRecord(Type journalEntryRecordType) throws OperationFailedException
JournalEntry
record Type.
Multiple record
retrievals produce a nested OR
term.journalEntryRecordType
- a journal entry record typeNullArgumentException
- journalEntryRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(journalEntryRecordType)
is false
mandatory
- This method must be implemented.