| Interface | osid.resourcing.rules.AvailabilityEnablerLookupSession | ||
|---|---|---|---|
| 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 | getFoundryId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Foundry Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getFoundry | ||
| Description | 
                     Gets the   | ||
| Return | osid.resourcing.Foundry | the foundry | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupAvailabilityEnablers | ||
| 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 | useComparativeAvailabilityEnablerView | ||
| 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 | usePlenaryAvailabilityEnablerView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedFoundryView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include availability enabler in foundries which are children of this foundry in the foundry hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedFoundryView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts lookups to this foundry only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useActiveAvailabilityEnablerView | ||
| Description | 
                     Only active availability enablers are returned by methods in this session.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useAnyStatusAvailabilityEnablerView | ||
| Description | 
                     All active and inactive availability enablers are returned by methods in this session.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getAvailabilityEnabler | ||
| Description | 
                     Gets the    In active mode, availability enablers are returned that are currently active. In any status mode, active and inactive availability enablers are returned.  | ||
| Parameters | osid.id.Id | availabilityEnablerId |  Id  of the  AvailabilityEnabler   | 
| Return | osid.resourcing.rules.AvailabilityEnabler | the availability enabler | |
| Errors | NOT_FOUND |  availabilityEnablerrId  not found  |                 |
| NULL_ARGUMENT |  availabilityEnablerId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getAvailabilityEnablersByIds | ||
| Description | 
                     Gets a    In active mode, availability enablers are returned that are currently active. In any status mode, active and inactive availability enablers are returned.  | ||
| Parameters | osid.id.IdList | availabilityEnablerIds | the list of  Ids  to retrieve  | 
| Return | osid.resourcing.rules.AvailabilityEnablerList | the returned  AvailabilityEnabler  list  | |
| Errors | NOT_FOUND | an  Id was  not found  |                 |
| NULL_ARGUMENT |  availabilityEnablerIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAvailabilityEnablersByGenusType | ||
| Description | 
                     Gets an    In active mode, availability enablers are returned that are currently active. In any status mode, active and inactive availability enablers are returned.  | ||
| Parameters | osid.type.Type | availabilityEnablerGenusType | an availability enabler genus type | 
| Return | osid.resourcing.rules.AvailabilityEnablerList | the returned  AvailabilityEnabler  list  | |
| Errors | NULL_ARGUMENT |  availabilityEnablerGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAvailabilityEnablersByParentGenusType | ||
| Description | 
                     Gets an    In active mode, availability enablers are returned that are currently active. In any status mode, active and inactive availability enablers are returned.  | ||
| Parameters | osid.type.Type | availabilityEnablerGenusType | an availability enabler genus type | 
| Return | osid.resourcing.rules.AvailabilityEnablerList | the returned  AvailabilityEnabler  list  | |
| Errors | NULL_ARGUMENT |  availabilityEnablerGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAvailabilityEnablersByRecordType | ||
| Description | 
                     Gets an    In active mode, availability enablers are returned that are currently active. In any status mode, active and inactive availability enablers are returned.  | ||
| Parameters | osid.type.Type | availabilityEnablerRecordType | an availability enabler record type | 
| Return | osid.resourcing.rules.AvailabilityEnablerList | the returned  AvailabilityEnabler  list  | |
| Errors | NULL_ARGUMENT |  availabilityEnablerRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAvailabilityEnablersOnDate | ||
| Description | 
                     Gets an  In plenary mode, the returned list contains all known availability enablers or an error results. Otherwise, the returned list may contain only those availability enablers that are accessible through this session. In active mode, availability enablers are returned that are currently active in addition to being effective during the given date range. In any status mode, active and inactive availability enablers are returned.  | ||
| Parameters | osid.calendaring.DateTime | from | a start date | 
osid.calendaring.DateTime | to | an end date | |
| Return | osid.resourcing.rules.AvailabilityEnablerList | the returned  AvailabilityEnabler  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 | getAvailabilityEnablersOnDateWithAgent | ||
| Description | 
                     Gets an  In plenary mode, the returned list contains all known availability enablers or an error results. Otherwise, the returned list may contain only those availability enablers that are accessible through this session. In active mode, availability enablers are returned that are currently active in addition to being effective ib the given date range for the given agent. In any status mode, active and inactive availability enablers are returned.  | ||
| Parameters | osid.id.Id | agentId | an agent  Id   | 
osid.calendaring.DateTime | from | a start date | |
osid.calendaring.DateTime | to | an end date | |
| Return | osid.resourcing.rules.AvailabilityEnablerList | the returned  AvailabilityEnabler  list  | |
| Errors | INVALID_ARGUMENT |  from  is greater than  to   |                 |
| NULL_ARGUMENT |  agentId, from,  or  to  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAvailabilityEnablers | ||
| Description | 
                     Gets all  In plenary mode, the returned list contains all known availability enabler or an error results. Otherwise, the returned list may contain only those availability enabler that are accessible through this session. In active mode, availability enablers are returned that are currently active. In any status mode, active and inactive availability enablers are returned.  | ||
| Return | osid.resourcing.rules.AvailabilityEnablerList | the returned  AvailabilityEnabler  list  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |