| Interface | osid.journaling.JournalEntryAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
| Method | getJournalId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Journal Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getJournal | ||
| Description |
Gets the | ||
| Return | osid.journaling.Journal | the journal | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateJournalEntries | ||
| Description |
Tests if this user can create journal entries. A return
of true does not guarantee successful authorization. A
return of false indicates that it is known creating a
| ||
| Return | boolean | false if JournalEntry creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateJournalEntryWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | journalEntryRecordTypes | array of journal entry record types |
| Return | boolean | true if JournalEntry creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | journalEntryRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getJournalEntryFormForCreate | ||
| Description |
Gets the journal entry form for creating new entries. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | branchId | the Id for the branch |
osid.id.Id | sourceId | the Id for the journaled object | |
osid.type.Type[] | journalEntryRecordTypes | array of journal entry record types | |
| Return | osid.journaling.JournalEntryForm | the journal entry form | |
| Errors | NOT_FOUND | branchId is not found | |
| NULL_ARGUMENT | branchId, sourceId, or journalEntryRecordTypes
is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createJournalEntry | ||
| Description |
Creates a new | ||
| Parameters | osid.journaling.JournalEntryForm | journalEntryForm | the form for this JournalEntry |
| Return | osid.journaling.JournalEntry | the new JournalEntry | |
| Errors | ILLEGAL_STATE | journalEntryForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | journalEntryForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | journalEntryForm did not originate from
getJournalEntryFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateJournalEntries | ||
| Description |
Tests if this user can update journal entries. A return
of true does not guarantee successful authorization. A
return of false indicates that it is known updating a
| ||
| Return | boolean | false if JournalEntry modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getJournalEntryFormForUpdate | ||
| Description |
Gets the journal entry form for updating an existing entry. A new journal entry form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | journalEntryId | the Id of the JournalEntry |
| Return | osid.journaling.JournalEntryForm | the entry form | |
| Errors | NOT_FOUND | journalEntryId is not found | |
| NULL_ARGUMENT | journalEntryId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateJournalEntry | ||
| Description |
Updates an existing journal entry. | ||
| Parameters | osid.journaling.JournalEntryForm | journalEntryForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | journalEntryForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | journalEntryForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | journalEntryForm did not originate from
getJournalEntryFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteJournalEntries | ||
| Description |
Tests if this user can delete journal entries. A return
of true does not guarantee successful authorization. A
return of false indicates that it is known deleting a
| ||
| Return | boolean | false if JournalEntry deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteJournalEntry | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | journalEntryId | the Id of the JournalEntry to remove |
| Errors | NOT_FOUND | journalEntryId not found | |
| NULL_ARGUMENT | journalEntryId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageJournalEntryAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if JournalEntry aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasJournalEntry | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | journalEntryId | the Id of a JournalEntry |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | journalEntryId not found | ||
| NULL_ARGUMENT | journalEntryId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |