OSID Logo
OSID Specifications
journaling package
Version 3.0.0
Release Candidate Preview
Interfaceosid.journaling.JournalEntryQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Description

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.

MethodmatchBranchId
Description

Sets the branch Id for this query to match branches assigned to journals.

Parametersosid.id.IdbranchIda branch Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT branchId is null
CompliancemandatoryThis method must be implemented.
MethodclearBranchIdTerms
Description

Clears the branch Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBranchQuery
Description

Tests if a branch query is available.

Returnboolean true if a branch query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBranchQuery
Description

Gets the query for a branch.

Returnosid.journaling.BranchQuerythe branch query
ErrorsUNIMPLEMENTED supportsBranchQuery() is false
ComplianceoptionalThis method must be implemented if supportsBranchQuery() is true.
MethodclearBranchTerms
Description

Clears the branch terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSourceId
Description

Sets the source Id.

Parametersosid.id.IdsourceIda source Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT sourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearSourceIdTerms
Description

Clears the source Id terms.

CompliancemandatoryThis method must be implemented.
MethodmatchVersionId
Description

Sets the version Id.

Parametersosid.id.IdversionIda version Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT versionId is null
CompliancemandatoryThis method must be implemented.
MethodclearVersionIdTerms
Description

Clears the version Id terms.

CompliancemandatoryThis method must be implemented.
MethodmatchTimestamp
Description

Matches entries falling between the given times inclusive.

Parametersosid.calendaring.DateTimefromstart time
osid.calendaring.DateTimetoend time
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodclearTimestampTerms
Description

Clears the timestamp terms.

CompliancemandatoryThis method must be implemented.
MethodmatchEntriesSince
Description

Matches entries following the given timestamp inclusive.

Parametersosid.calendaring.DateTimefromstart time
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT from is null
CompliancemandatoryThis method must be implemented.
MethodclearEntriesSinceTerms
Description

Clears the entries since terms.

CompliancemandatoryThis method must be implemented.
MethodmatchResourceId
Description

Sets a resource Id.

Parametersosid.id.IdresourceIda resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearResourceIdTerms
Description

Clears the resource Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsResourceQuery
Description

Tests if a ResourceQuery is available.

Returnboolean true if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResourceQuery
Description

Gets the query for a resource query. Multiple retrievals produce a nested OR term.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsResourceQuery() is false
ComplianceoptionalThis method must be implemented if supportsResourceQuery() is true.
MethodclearResourceTerms
Description

Clears the resource terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAgentId
Description

Sets an agent Id.

Parametersosid.id.IdagentIdan agent Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT agentId is null
CompliancemandatoryThis method must be implemented.
MethodclearAgentIdTerms
Description

Clears the agent Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAgentQuery
Description

Tests if an AgentQuery is available.

Returnboolean true if an agent query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAgentQuery
Description

Gets the query for an agent query. Multiple retrievals produce a nested OR term.

Returnosid.authentication.AgentQuerythe agent query
ErrorsUNIMPLEMENTED supportsAgentQuery() is false
ComplianceoptionalThis method must be implemented if supportsAgentQuery() is true.
MethodclearAgentTerms
Description

Clears the agent terms.

CompliancemandatoryThis method must be implemented.
MethodmatchJournalId
Description

Sets the journal Id for this query to match entries assigned to journals.

Parametersosid.id.IdjournalIda journal Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT journalId is null
CompliancemandatoryThis method must be implemented.
MethodclearJournalIdTerms
Description

Clears the journal Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsJournalQuery
Description

Tests if a JournalQuery is available.

Returnboolean true if a journal query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetJournalQuery
Description

Gets the query for a journal query. Multiple retrievals produce a nested OR term.

Returnosid.journaling.JournalQuerythe journal query
ErrorsUNIMPLEMENTED supportsJournalQuery() is false
ComplianceoptionalThis method must be implemented if supportsJournalQuery() is true.
MethodclearJournalTerms
Description

Clears the journal terms.

CompliancemandatoryThis method must be implemented.
MethodgetJournalEntryQueryRecord
Description

Gets the journal entry query record corresponding to the given JournalEntry record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypejournalEntryRecordTypea journal entry record type
Returnosid.journaling.records.JournalEntryQueryRecordthe journal entry query record
ErrorsNULL_ARGUMENT journalEntryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(journalEntryRecordType) is false
CompliancemandatoryThis method must be implemented.