Interface | osid.financials.posting.PostLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving posts. A This lookup session defines several views:
The methods Payers may have an additional records indicated by their
respective record types. The record may not be accessed
through a cast of the | ||
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.financials.Business | the business | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupPosts | ||
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 | useComparativePostView | ||
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 | usePlenaryPostView | ||
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 posts in catalogs which are children of this catalog 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 retrievals to this business only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getPost | ||
Description |
Gets the | ||
Parameters | osid.id.Id | postId | the Id of the Post to retrieve |
Return | osid.financials.posting.Post | the returned Post | |
Errors | NOT_FOUND | no Post found with the given Id | |
NULL_ARGUMENT | postId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | postIds | the list of Ids to retrieve |
Return | osid.financials.posting.PostList | the returned Post list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | postIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | postGenusType | a post genus type |
Return | osid.financials.posting.PostList | the returned Post list | |
Errors | NULL_ARGUMENT | postGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | postGenusType | a post genus type |
Return | osid.financials.posting.PostList | the returned Post list | |
Errors | NULL_ARGUMENT | postGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | postRecordType | a post record type |
Return | osid.financials.posting.PostList | the returned Post list | |
Errors | NULL_ARGUMENT | postRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByFiscalPeriod | ||
Description |
Gets a | ||
Parameters | osid.id.Id | fiscalPeriodId | a post record type |
Return | osid.financials.posting.PostList | the returned Post list | |
Errors | NULL_ARGUMENT | fiscalPeriodId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByDate | ||
Description |
Gets a | ||
Parameters | osid.calendaring.DateTime | from | start of date range |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.financials.posting.PostList | the returned Post 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 | getPosts | ||
Description |
Gets all | ||
Return | osid.financials.posting.PostList | a list of Posts | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |