| Interface | osid.journaling.BranchAdminSession | ||
|---|---|---|---|
| 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 | canCreateBranches | ||
| Description |
Tests if this user can branch a version chain. A return
of true does not guarantee successful authorization. A
return of false indicates that it is known branching will
result in a | ||
| Return | boolean | false if journal branching is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBranch | ||
| Description |
Tests if this user can branch a specified | ||
| Parameters | osid.id.Id | journalEntryId | the Id of the JournalEntry |
| Return | boolean | false if branching is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | journalEntryId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes |
If the | ||
| Method | canCreateBranchWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | branchRecordTypes | array of branch record types |
| Return | boolean | true if Branch creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | branchyRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBranchFormForCreate | ||
| Description |
Gets the branch form for creating new entries. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | journalEntryId | the Id of the JournalEntry |
osid.type.Type[] | branchRecordTypes | array of branch record types | |
| Return | osid.journaling.BranchForm | the branch form | |
| Errors | NOT_FOUND | journalEntryId is not found | |
| NULL_ARGUMENT | journalEntryId or branchRecordTypes 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 | createBranch | ||
| Description |
Creates a branch. | ||
| Parameters | osid.journaling.BranchForm | branchForm | the branch form |
| Return | osid.journaling.Branch | a the new branch | |
| Errors | ILLEGAL_STATE | branchForm already used in a create transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | branchForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | branchForm did not originate from
getBranchFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateBranches | ||
| Description |
Tests if this user can update branches. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known updating a | ||
| Return | boolean | false if Branch modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBranchFormForUpdate | ||
| Description |
Gets the branch form for updating an existing branch. A new journal entry form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | branchId | the Id of the Branch |
| Return | osid.journaling.BranchForm | the branch form | |
| Errors | NOT_FOUND | branchId is not found | |
| NULL_ARGUMENT | branchId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateBranch | ||
| Description |
Updates an existing branch. | ||
| Parameters | osid.journaling.BranchForm | branchForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | branchForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | branchForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | branchForm did not originate from
getBranchFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canMergeBranches | ||
| Description |
Tests if this user can merge branches. A return of true
does not guarantee successful authorization. A return of
false indicates that it is known merging | ||
| Return | boolean | false if Branch merging is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | mergeBranches | ||
| Description |
Merges the source branch into the destination branch. A new journal entry is created to join the two branches. | ||
| Parameters | osid.id.Id | srcBranchId | the Id of the Branch to merge from |
osid.id.Id | dstBranchId | the Id of the Branch to merge into | |
| Return | osid.journaling.JournalEntry | a the new journal entry | |
| Errors | NOT_FOUND | branchId not found | |
| NULL_ARGUMENT | branchId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canSupersedeBranches | ||
| Description |
Tests if this user can supersede branches. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known merging | ||
| Return | boolean | false if Branch superseding is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | supersedeBranch | ||
| Description |
Joins the source branch to the destination branch by creating a new journal entry. The most recent version of the source branch supsrsedes the most recent versiuon of the desitination branch. | ||
| Parameters | osid.id.Id | srcBranchId | the Id of the superseding Branch |
osid.id.Id | dstBranchId | the Id of the Branch to override | |
| Return | osid.journaling.JournalEntry | a the new journal entry | |
| Errors | NOT_FOUND | branchId not found | |
| NULL_ARGUMENT | branchId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteBranches | ||
| Description |
Tests if this user can delete branches. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known deleting a | ||
| Return | boolean | false if Branch deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteBranch | ||
| Description |
Deletes a branch and all associated versions. | ||
| Parameters | osid.id.Id | branchId | the Id of the Branch to remove |
| Errors | NOT_FOUND | branchId not found | |
| NULL_ARGUMENT | branchId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageBranchAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Branch aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasBranch | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | branchId | the Id of a Branch |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | branchId not found | ||
| NULL_ARGUMENT | branchId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |