OSID Logo
OSID Specifications
journaling package
Version 3.0.0
Release Candidate Preview
Interfaceosid.journaling.JournalEntryNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to JournalEntry objects. This session is intended for consumers needing to synchronize their state with this service without the use of polling. Notifications are cancelled when this session is closed.

MethodgetJournalId
Description

Gets the Journal Id associated with this session.

Returnosid.id.Idthe Journal Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetJournal
Description

Gets the Journal associated with this session.

Returnosid.journaling.Journalthe journal
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForJournalEntryNotifications
Description

Tests if this user can register for JournalEntry notifications. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer notification operations.

Returnboolean false if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedJournalView
Description

Federates the view for methods in this session. A federated view will include notifications for entries in journals which are children of this journal in the journal hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedJournalView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this journal only.

CompliancemandatoryThis method is must be implemented.
MethodreliableJournalEntryNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeJournalEntryNotification() .

CompliancemandatoryThis method is must be implemented.
MethodunreliableJournalEntryNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeJournalEntryNotification
Description

Acknowledge a journal entry notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewJournalEntries
Description

Register for notifications of new journal entries. JournalEntryReceiver.newJournalEntries() is invoked when a new JournalEntry is created.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewJournalEntriesForBranch
Description

Register for notifications of new journal entries for the given branch Id. JournalEntryReceiver.newJournalEntries() is invoked when a new JournalEntry is created.

Parametersosid.id.IdbranchIdthe Id of the branch to monitor
ErrorsNULL_ARGUMENT branchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewJournalEntriesForSource
Description

Register for notifications of new journal entries for the given source Id. JournalEntryReceiver.newJournalEntries() is invoked when a new JournalEntry is created.

Parametersosid.id.IdsourceIdthe Id of the source to monitor
ErrorsNULL_ARGUMENT sourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewJournalEntriesForResource
Description

Register for notifications of new journal entries for the given resource Id. JournalEntryReceiver.newJournalEntries() is invoked when a new JournalEntry is created.

Parametersosid.id.IdresourceIdthe Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedJournalEntries
Description

Registers for notification of updated journal entries. JournalEntryReceiver.changedJournalEntries() is invoked when a journal entry is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedJournalEntriesForBranch
Description

Register for notifications of changed journal entries for the given branch Id. JournalEntryReceiver.changedJournalEntries() is invoked when a JournalEntry for the branch is changed.

Parametersosid.id.IdbranchIdthe Id of the branch to monitor
ErrorsNULL_ARGUMENT branchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedJournalEntriesForSource
Description

Register for notifications of changed journal entries for the given source Id. JournalEntryReceiver.changedJournalEntries() is invoked when a JournalEntry for the source is changed.

Parametersosid.id.IdsourceIdthe Id of the source to monitor
ErrorsNULL_ARGUMENT sourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedJournalEntriesForResource
Description

Register for notifications of changed journal entries for the given resource Id. JournalEntryReceiver.changedJournalEntries() is invoked when a JournalEntry for the source is changed.

Parametersosid.id.IdresourceIdthe Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedJournalEntry
Description

Registers for notification of an updated journal entry. JournalEntryReceiver.changedJournalEntries() is invoked when the specified journal entry is changed.

Parametersosid.id.IdjournalEntryIdthe Id of the JournalEntry to monitor
ErrorsNULL_ARGUMENT journalEntryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedJournalEntries
Description

Registers for notification of deleted journal entries. JournalEntryReceiver.deletedJournalEntries() is invoked when a journal entry is deleted.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedJournalEntriesForBranch
Description

Register for notifications of deleted journal entries for the given source Id. JournalEntryReceiver.deletedJournalEntries() is invoked when a JournalEntry for the branch is deleted.

Parametersosid.id.IdbranchIdthe Id of the branch to monitor
ErrorsNULL_ARGUMENT branchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedJournalEntriesForSource
Description

Register for notifications of deleted journal entries for the given source Id. JournalEntryReceiver.deletedJournalEntries() is invoked when a JournalEntry for the source is deleted.

Parametersosid.id.IdsourceIdthe Id of the source to monitor
ErrorsNULL_ARGUMENT sourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedJournalEntriesForResource
Description

Register for notifications of deleted journal entries for the given resource Id. JournalEntryReceiver.deletedJournalEntries() is invoked when a JournalEntry for the source is deleted.

Parametersosid.id.IdresourceIdthe Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedJournalEntry
Description

Registers for notification of a deleted journal entry. JournalEntryReceiver.deletedJournalEntries() is invoked when the specified journal entry is deleted.

Parametersosid.id.IdjournalEntryIdthe Id of the JournalEntry to monitor
ErrorsNULL_ARGUMENT journalEntryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.