Interface | osid.billing.PeriodLookupSession | ||
---|---|---|---|
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 | getBusinessId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Business Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getBusiness | ||
Description |
Gets the | ||
Return | osid.billing.Business | the business | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupPeriods | ||
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 | useComparativePeriodView | ||
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 | usePlenaryPeriodView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedBusinessView | ||
Description |
Federates the view for methods in this session. A federated view will include periods in businesses which are children of this business in the business hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedBusinessView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this business only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getPeriod | ||
Description |
Gets the | ||
Parameters | osid.id.Id | periodId | Id of the Period |
Return | osid.billing.Period | the period | |
Errors | NOT_FOUND | periodId not found | |
NULL_ARGUMENT | periodId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getPeriodsByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | periodIds | the list of Ids to retrieve |
Return | osid.billing.PeriodList | the returned Period list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | periodIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPeriodsByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | periodGenusType | a period genus type |
Return | osid.billing.PeriodList | the returned Period list | |
Errors | NULL_ARGUMENT | periodGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPeriodsByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | periodGenusType | a period genus type |
Return | osid.billing.PeriodList | the returned Period list | |
Errors | NULL_ARGUMENT | periodGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPeriodsByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | periodRecordType | a period record type |
Return | osid.billing.PeriodList | the returned Period list | |
Errors | NULL_ARGUMENT | periodRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPeriodsOnDate | ||
Description |
Gets a | ||
Parameters | osid.calendaring.DateTime | from | start of date range |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.billing.PeriodList | the returned Period 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 | getPeriods | ||
Description |
Gets all | ||
Return | osid.billing.PeriodList | a list of Periods | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |