public interface LogEntryQuery extends OsidObjectQuery
This is the query for searching log 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 |
clearLogIdTerms()
Clears the log
Id terms. |
void |
clearLogTerms()
Clears the log terms.
|
void |
clearMinimumPriorityTerms()
Clears the minimum priority terms.
|
void |
clearPriorityTerms()
Clears the priority terms.
|
void |
clearResourceIdTerms()
Clears the resource
Id terms. |
void |
clearResourceTerms()
Clears the resource terms.
|
void |
clearTimestampTerms()
Clears the timestamp terms.
|
AgentQuery |
getAgentQuery()
Gets the query for an agent.
|
LogEntryQueryRecord |
getLogEntryQueryRecord(Type logEntryRecordType)
Gets the log entry query corresponding to the given
LogEntry
record Type. |
LogQuery |
getLogQuery()
Gets the query for a log.
|
ResourceQuery |
getResourceQuery()
Gets the query for a resource.
|
void |
matchAgentId(Id agentId,
boolean match)
Matches an agent in this log entry.
|
void |
matchAnyPriority(boolean match)
Matches log entries with any priority.
|
void |
matchLogId(Id logId,
boolean match)
Matches a log.
|
void |
matchMinimumPriority(Type priorityType,
boolean match)
Matches a log entries including and above the given priority type.
|
void |
matchPriority(Type priorityType,
boolean match)
Matches a priority
Type for the log entry. |
void |
matchResourceId(Id resourceId,
boolean match)
Matches a resource in this log entry.
|
void |
matchTimestamp(DateTime startTime,
DateTime endTime,
boolean match)
Matches the time of this log entry.
|
boolean |
supportsAgentQuery()
Tests if an
AgentQuery is available for querying
agents. |
boolean |
supportsLogQuery()
Tests if a
LogQuery is available for querying logs. |
boolean |
supportsResourceQuery()
Tests if a
ResourceQuery is available for querying
agents. |
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 matchPriority(Type priorityType, boolean match)
Type
for the log entry.priorityType
- Type
to matchmatch
- true
if for a positive match,
false
for a negative matchNullArgumentException
- priorityType
is
null
mandatory
- This method must be implemented. void matchAnyPriority(boolean match)
match
- true
to match log entries with any
priority, false
to match log entries with no
prioritymandatory
- This method must be implemented. void clearPriorityTerms()
mandatory
- This method must be implemented. void matchMinimumPriority(Type priorityType, boolean match)
priorityType
- Type
to matchmatch
- true
if for a positive match,
false
for a negative matchNullArgumentException
- priorityType
is
null
mandatory
- This method must be implemented. void clearMinimumPriorityTerms()
mandatory
- This method must be implemented. void matchTimestamp(DateTime startTime, DateTime endTime, boolean match)
startTime
- start timeendTime
- end timematch
- true
if for a positive match,
false
for a negative matchInvalidArgumentException
- startTime
is
greater than endTime
NullArgumentException
- startTime
or
endTime
is null
mandatory
- This method must be implemented. void clearTimestampTerms()
mandatory
- This method must be implemented. void matchResourceId(Id resourceId, boolean match)
resourceId
- Id
to matchmatch
- true
if 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 for querying
agents. true
if a resource query is available,
false
otherwisemandatory
- This method must be implemented. ResourceQuery getResourceQuery()
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)
agentId
- Id
to matchmatch
- true
if 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 for querying
agents. true
if an agent query is available,
false
otherwisemandatory
- This method must be implemented. AgentQuery getAgentQuery()
UnimplementedException
- supportsAgentQuery()
is false
optional
- This method must be implemented if
supportsAgentQuery()
is true.
void clearAgentTerms()
mandatory
- This method must be implemented. void matchLogId(Id logId, boolean match)
logId
- Id
to matchmatch
- true
if for a positive match,
false
for a negative matchNullArgumentException
- logId
is
null
mandatory
- This method must be implemented. void clearLogIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsLogQuery()
LogQuery
is available for querying logs. true
if a log query is available, false
otherwisemandatory
- This method must be implemented. LogQuery getLogQuery()
UnimplementedException
- supportsLogQuery()
is false
optional
- This method must be implemented if
supportsLogQuery()
is true.
void clearLogTerms()
mandatory
- This method must be implemented. LogEntryQueryRecord getLogEntryQueryRecord(Type logEntryRecordType) throws OperationFailedException
LogEntry
record Type.
Multiple record retrievals produce
a nested OR
term.logEntryRecordType
- a log entry record typeNullArgumentException
- logEntryRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(logEutryRecordType)
is false
mandatory
- This method must be implemented.