OSID Logo
OSID Specifications
journaling package
Version 3.0.0
Release Candidate Preview
Interfaceosid.journaling.JournalQuery
Implementsosid.OsidCatalogQuery
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.IdjournalEntryIda journal entry Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT journalEntryId is null
CompliancemandatoryThis method must be implemented.
MethodclearJournalEntryIdTerms
Description

Clears the journal entry Id terms.

CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetJournalEntryQuery
Description

Gets the query for a journal.

Returnosid.journaling.JournalEntryQuerythe journal entry query
ErrorsUNIMPLEMENTED supportsJournalEntryQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearJournalEntryTerms
Description

Clears the journal entry terms.

CompliancemandatoryThis method must be implemented.
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.
MethodmatchAnyBranch
Description

Matches journals with any branches.

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

Clears the branch terms.

CompliancemandatoryThis 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.IdjournalIda journal Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT journalId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorJournalIdTerms
Description

Clears the ancestor journal Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorJournalQuery
Description

Tests if a JournalQuery is available.

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

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

Returnosid.journaling.JournalQuerythe journal query
ErrorsUNIMPLEMENTED supportsAncestorJournalQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearAncestorJournalTerms
Description

Clears the ancestor journal terms.

CompliancemandatoryThis 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.IdjournalIda journal Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT journalId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantJournalIdTerms
Description

Clears the descendant journal Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantJournalQuery
Description

Tests if a JournalQuery is available.

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

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

Returnosid.journaling.JournalQuerythe journal query
ErrorsUNIMPLEMENTED supportsDescendantJournalQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearDescendantJournalTerms
Description

Clears the descendant journal terms.

CompliancemandatoryThis 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.TypejournalRecordTypea journal record type
Returnosid.journaling.records.JournalQueryRecordthe journal query record
ErrorsNULL_ARGUMENT journalRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(journalRecordType) is false
CompliancemandatoryThis method must be implemented.