| Interface | osid.provisioning.ProvisionLookupSession | ||
|---|---|---|---|
| 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. The methods   | ||
| Method | getDistributorId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Distributor Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDistributor | ||
| Description | 
                     Gets the   | ||
| Return | osid.provisioning.Distributor | the distributor | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupProvisions | ||
| 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 | useComparativeProvisionView | ||
| 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 | usePlenaryProvisionView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedDistributorView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include provisions in distributors which are children of this distributor in the distributor hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedDistributorView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts lookups to this distributor only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useEffectiveProvisionView | ||
| Description | 
                     Only provisions whose effective dates are current are returned by methods in this session.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useAnyEffectiveProvisionView | ||
| Description | 
                     All provisions of any effective dates are returned by methods in this session.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getProvision | ||
| Description | 
                     Gets the    In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | provisionId |  Id  of the  Provision   | 
| Return | osid.provisioning.Provision | the provision | |
| Errors | NOT_FOUND |  provisionId  not found  |                 |
| NULL_ARGUMENT |  provisionId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getProvisionsByIds | ||
| Description | 
                     Gets a    In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.IdList | provisionIds | the list of  Ids  to retrieve  | 
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | NOT_FOUND | an  Id  was not found  |                 |
| NULL_ARGUMENT |  provisionIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsByGenusType | ||
| Description | 
                     Gets a    In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.type.Type | provisionGenusType | a provision genus type | 
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | NULL_ARGUMENT |  provisionGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsByParentGenusType | ||
| Description | 
                     Gets a    In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.type.Type | provisionGenusType | a provision genus type | 
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | NULL_ARGUMENT |  provisionGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsByRecordType | ||
| Description | 
                     Gets a    In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.type.Type | provisionRecordType | a provision record type | 
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | NULL_ARGUMENT |  provisionRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsOnDate | ||
| Description | 
                     Gets a list of provisions effective during the entire 
                    given date range inclusive but not confined to the date 
                    range.    In effective mode, provisions are returned that are currently effective in addition to being effective in the guven date range. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.calendaring.DateTime | from | start of date range | 
osid.calendaring.DateTime | to | end of date range | |
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | INVALID_ARGUMENT |  from  is greater than  to   |                 |
| NULL_ARGUMENT |  from  or  to  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsForBroker | ||
| Description | 
                     Gets a list of provisions for a supplied broker.    In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | brokerId | a broker  Id   | 
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | NULL_ARGUMENT |  brokerId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsForBrokerOnDate | ||
| Description | 
                     Gets a list of provisions for a supplied broker. and 
                    effective during the entire given date range inclusive but 
                    not confined to the date range.    In effective mode, provisions are returned that are currently effective in addition to being effective in the guven date range. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | brokerId | a broker  Id   | 
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | INVALID_ARGUMENT |  from  is greater than  to   |                 |
| NULL_ARGUMENT |  brokerId, from  or  to  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsForProvisionable | ||
| Description | 
                     Gets a list of provisions for a provisionable. In plenary mode, the returned list contains all known provisions or an error results. Otherwise, the returned list may contain only those provisions that are accessible through this session. In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | provisionableId | a provisionable  Id   | 
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | NULL_ARGUMENT |  provisionableId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsForProvisionableOnDate | ||
| Description | 
                     Gets a list of provisions for a provisionable and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known provisions or an error results. Otherwise, the returned list may contain only those provisions that are accessible through this session. In effective mode, provisions are returned that are currently effective in addition to being effective in the guven date range. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | provisionableId | a provisionable  Id   | 
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | INVALID_ARGUMENT |  from  is greater than  to   |                 |
| NULL_ARGUMENT |  provisionableId, from  or  to  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsForRecipient | ||
| Description | 
                     Gets a list of provisions for a recipient resource. In plenary mode, the returned list contains all known provisions or an error results. Otherwise, the returned list may contain only those provisions that are accessible through this session. In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | resourceId | a resource  Id   | 
| Return | osid.provisioning.ProvisionList | the returned  Provision  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 | getProvisionsForRecipientOnDate | ||
| Description | 
                     Gets a list of provisions for a recipient resource and 
                    effective during the entire given date range inclusive but 
                    not confined to the date range.    In effective mode, provisions are returned that are currently effective in addition to being effective in the guven date range. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | resourceId | a resource  Id   | 
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | INVALID_ARGUMENT |  from  is greater than  to   |                 |
| NULL_ARGUMENT |  resourceId, from  or  to  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsForProvisionableAndRecipient | ||
| Description | 
                     Gets a list of provisions for a resource and recipient. In plenary mode, the returned list contains all known provisions or an error results. Otherwise, the returned list may contain only those provisions that are accessible through this session. In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | provisionableId | a provisionable  Id   | 
osid.id.Id | recipientId | a recipient resource  Id   | |
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | NULL_ARGUMENT |  provisionableId  or  recipientId  is  null 
  |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsForProvisionableAndRecipientOnDate | ||
| Description | 
                     Gets a list of provisions for a resource and request and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known provisions or an error results. Otherwise, the returned list may contain only those provisions that are accessible through this session. In effective mode, provisions are returned that are currently effective in addition to being effective in the guven date range. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | provisionableId | a provisionable  Id   | 
osid.id.Id | recipientId | a recipient resource  Id   | |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | INVALID_ARGUMENT |  from  is greater than  to   |                 |
| NULL_ARGUMENT |  provisionableId, recipientId, from  or  to  is 
 null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionsForRequest | ||
| Description | 
                     Gets a list of provisions for a request.    In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Parameters | osid.id.Id | requestId | a request  Id   | 
| Return | osid.provisioning.ProvisionList | the returned  Provision  list  | |
| Errors | NULL_ARGUMENT |  requestId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisions | ||
| Description | 
                     Gets all    In effective mode, provisions are returned that are currently effective. In any effective mode, effective provisions and those currently expired are returned.  | ||
| Return | osid.provisioning.ProvisionList | a list of  Provisions   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |