OSID Logo
OSID Specifications
journaling package
Version 3.1.0
Interfaceosid.journaling.JournalEntryNotificationSession
Implementsosid.OsidSession
Used Byosid.journaling.JournalingManager
osid.journaling.JournalingProxyManager
Description

This session defines methods to receive notifications on adds/changes to JournalEntries. 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.Id the Journal Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetJournal
Description

Gets the Journal associated with this session.

Returnosid.journaling.Journal the journal
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedJournalView
Description

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

Compliancemandatory This method is must be implemented.
MethodreliableJournalEntryNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableJournalEntryNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeJournalEntryNotification
Description

Acknowledge a journal entry notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewJournalEntries
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdbranchId the Id of the branch to monitor
ErrorsNULL_ARGUMENT branchId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdsourceId the Id of the source to monitor
ErrorsNULL_ARGUMENT sourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdresourceId the Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedJournalEntries
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdbranchId the Id of the branch to monitor
ErrorsNULL_ARGUMENT branchId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdsourceId the Id of the source to monitor
ErrorsNULL_ARGUMENT sourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdresourceId the Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdjournalEntryId the Id of the JournalEntry to monitor
ErrorsNULL_ARGUMENT journalEntryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedJournalEntries
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdbranchId the Id of the branch to monitor
ErrorsNULL_ARGUMENT branchId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdsourceId the Id of the source to monitor
ErrorsNULL_ARGUMENT sourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdresourceId the Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdjournalEntryId the Id of the JournalEntry to monitor
ErrorsNULL_ARGUMENT journalEntryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.