OSID Logo
OSID Specifications
journaling package
Version 3.1.0
Interfaceosid.journaling.JournalQuery
Implementsosid.OsidCatalogQuery
Used Byosid.journaling.JournalEntryQuery
osid.journaling.JournalQuery
osid.journaling.JournalQuerySession
osid.journaling.JournalSearchSession
Description

This is the query for searching for journals. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchJournalEntryId
Description

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

Parametersosid.id.IdjournalEntryId a journal entry Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT journalEntryId is null
Compliancemandatory This method must be implemented.
MethodclearJournalEntryIdTerms
Description

Clears the journal entry Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsJournalEntryQuery
Description

Tests if a journal entry query is available.

Returnboolean true if a journal entry query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetJournalEntryQuery
Description

Gets the query for a journal.

Returnosid.journaling.JournalEntryQuery the journal entry query
ErrorsUNIMPLEMENTED supportsJournalEntryQuery() is false
Complianceoptional This method must be implemented if supportsJournalEntryQuery() is true.
MethodmatchAnyJournalEntry
Description

Matches journals with any journal entry.

Parametersbooleanmatch true to match journals with any journal entry, false to match journals with no entries
Compliancemandatory This method must be implemented.
MethodclearJournalEntryTerms
Description

Clears the journal entry terms.

Compliancemandatory This method must be implemented.
MethodmatchBranchId
Description

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

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

Clears the branch Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsBranchQuery
Description

Tests if a branch query is available.

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

Gets the query for a branch.

Returnosid.journaling.BranchQuery the branch query
ErrorsUNIMPLEMENTED supportsBranchQuery() is false
Complianceoptional This method must be implemented if supportsBranchQuery() is true.
MethodmatchAnyBranch
Description

Matches journals with any branches.

Parametersbooleanmatch true to match journals with any branch, false to match journals with no branches
Compliancemandatory This method must be implemented.
MethodclearBranchTerms
Description

Clears the branch terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorJournalId
Description

Sets the journal Id for this query to match journals that have the specified journal as an ancestor.

Parametersosid.id.IdjournalId a journal Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT journalId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorJournalIdTerms
Description

Clears the ancestor journal Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorJournalQuery
Description

Tests if a JournalQuery is available.

Returnboolean true if a journal query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorJournalQuery
Description

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

Returnosid.journaling.JournalQuery the journal query
ErrorsUNIMPLEMENTED supportsAncestorJournalQuery() is false
Complianceoptional This method must be implemented if supportsAncestorJournalQuery() is true.
MethodmatchAnyAncestorJournal
Description

Matches journals with any ancestor.

Parametersbooleanmatch true to match journals with any ancestor, false to match root journals
Compliancemandatory This method must be implemented.
MethodclearAncestorJournalTerms
Description

Clears the ancestor journal terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantJournalId
Description

Sets the journal Id for this query to match journals that have the specified journal as a descendant.

Parametersosid.id.IdjournalId a journal Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT journalId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantJournalIdTerms
Description

Clears the descendant journal Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantJournalQuery
Description

Tests if a JournalQuery is available.

Returnboolean true if a journal query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantJournalQuery
Description

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

Returnosid.journaling.JournalQuery the journal query
ErrorsUNIMPLEMENTED supportsDescendantJournalQuery() is false
Complianceoptional This method must be implemented if supportsDescendantJournalQuery() is true.
MethodmatchAnyDescendantJournal
Description

Matches journals with any descendant.

Parametersbooleanmatch true to match journals with any descendant, false to match leaf journals
Compliancemandatory This method must be implemented.
MethodclearDescendantJournalTerms
Description

Clears the descendant journal terms.

Compliancemandatory This method must be implemented.
MethodgetJournalQueryRecord
Description

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

Parametersosid.type.TypejournalRecordType a journal record type
Returnosid.journaling.records.JournalQueryRecord the journal query record
ErrorsNULL_ARGUMENT journalRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(journalRecordType) is false
Compliancemandatory This method must be implemented.