| Interface | osid.journaling.BranchLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session defines methods for retrieving branches. A 
                 This lookup session defines several views: 
  The methods   Branches may have an additional records indicated by their 
                respective record types. The record may not be accessed 
                through a cast of the   | ||
| 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  associated with this session  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupBranches | ||
| Description | 
                     Tests if this user can perform   | ||
| Return | boolean |  false  if lookup methods are not authorized,  true 
 otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeBranchView | ||
| Description | 
                     The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | usePlenaryBranchView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedJournalView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include branches in journals which are children of this journal in the journal hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedJournalView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts lookups to this journal only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useActiveBranchView | ||
| Description | 
                     Methods return only branches that are active.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useAnyStatusBranchView | ||
| Description | 
                     Actuve and inactive branches are returned from lookup methods in this session.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getBranch | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | branchId | the  Id  of the  Branch  to retrieve  | 
| Return | osid.journaling.Branch | the returned  Branch   | |
| Errors | NOT_FOUND | no  Branch  found with the given  Id   |                 |
| NULL_ARGUMENT |  branchId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBranchesByIds | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.IdList | branchIds | the list of  Ids  to retrieve  | 
| Return | osid.journaling.BranchList | the returned  Branch  list  | |
| Errors | NOT_FOUND | an  Id was  not found  |                 |
| NULL_ARGUMENT |  branchIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBranchesByGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | branchGenusType | a branch genus type | 
| Return | osid.journaling.BranchList | the returned  Branch  list  | |
| Errors | NULL_ARGUMENT |  branchGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBranchesByParentGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | branchGenusType | a branch genus type | 
| Return | osid.journaling.BranchList | the returned  Branch  list  | |
| Errors | NULL_ARGUMENT |  branchGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBranchesByRecordType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | branchRecordType | a branch record type | 
| Return | osid.journaling.BranchList | the returned  Branch  list  | |
| Errors | NULL_ARGUMENT |  branchRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBranches | ||
| Description | 
                     Gets all   | ||
| Return | osid.journaling.BranchList | a list of  Branches   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |