| Interface | osid.workflow.OfficeLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods for retrieving  This session defines views that offer differing behaviors when retrieving multiple objects. 
  Generally, the comparative view should be used for most 
                applications as it permits operation even if there is data 
                that cannot be accessed. For example, a browsing application 
                may only need to examine the   | ||
| Method | canLookupOffices | ||
| 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 | useComparativeOfficeView | ||
| 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 | usePlenaryOfficeView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getOffice | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | officeId |  Id  of the  Office   | 
| Return | osid.workflow.Office | the office | |
| Errors | NOT_FOUND |  officeId  not found  |                 |
| NULL_ARGUMENT |  officeId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getOfficesByIds | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.id.IdList | officeIds | the list of  Ids  to retrieve  | 
| Return | osid.workflow.OfficeList | the returned  Office  list  | |
| Errors | NOT_FOUND | an  Id was  not found  |                 |
| NULL_ARGUMENT |  officeIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOfficesByGenusType | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.type.Type | officeGenusType | an office genus type | 
| Return | osid.workflow.OfficeList | the returned  Office  list  | |
| Errors | NULL_ARGUMENT |  officeGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOfficesByParentGenusType | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.type.Type | officeGenusType | an office genus type | 
| Return | osid.workflow.OfficeList | the returned  Office  list  | |
| Errors | NULL_ARGUMENT |  officeGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOfficesByRecordType | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.type.Type | officeRecordType | an office record type | 
| Return | osid.workflow.OfficeList | the returned  Office  list  | |
| Errors | NULL_ARGUMENT |  officeRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOfficesByProvider | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.id.Id | resourceId | a resource  Id   | 
| Return | osid.workflow.OfficeList | the returned  Office  list  | |
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOffices | ||
| Description | 
                     Gets all   | ||
| Return | osid.workflow.OfficeList | a list of  Offices   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |