Interface | osid.resourcing.WorkLookupSession | ||
---|---|---|---|
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 | canLookupWorks | ||
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 | useComparativeWorkView | ||
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 | usePlenaryWorkView | ||
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 works 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 | getWork | ||
Description |
Gets the | ||
Parameters | osid.id.Id | workId | Id of the Work |
Return | osid.resourcing.Work | the work | |
Errors | NOT_FOUND | workId not found | |
NULL_ARGUMENT | workId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getWorksByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | workIds | the list of Ids to retrieve |
Return | osid.resourcing.WorkList | the returned Work list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | workIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getWorksByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | workGenusType | a work genus type |
Return | osid.resourcing.WorkList | the returned Work list | |
Errors | NULL_ARGUMENT | workGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getWorksByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | workGenusType | a work genus type |
Return | osid.resourcing.WorkList | the returned Work list | |
Errors | NULL_ARGUMENT | workGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getWorksByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | workRecordType | a work record type |
Return | osid.resourcing.WorkList | the returned Work list | |
Errors | NULL_ARGUMENT | workRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getWorksForJob | ||
Description |
Gets a | ||
Parameters | osid.id.Id | jobId | a job Id |
Return | osid.resourcing.WorkList | the returned Work list | |
Errors | NULL_ARGUMENT | jobId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getUncommittedWorksForJob | ||
Description |
Gets a | ||
Parameters | osid.id.Id | jobId | a job Id |
Return | osid.resourcing.WorkList | the returned Work list | |
Errors | NULL_ARGUMENT | jobId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getIncompleteWorksForJob | ||
Description |
Gets a | ||
Parameters | osid.id.Id | jobId | a job Id |
Return | osid.resourcing.WorkList | the returned Work list | |
Errors | NULL_ARGUMENT | jobId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getWorksByDate | ||
Description |
Gets a | ||
Parameters | osid.calendaring.DateTime | from | start range |
osid.calendaring.DateTime | to | end range | |
Return | osid.resourcing.WorkList | the returned Work 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 | getIncompleteWorksByDate | ||
Description |
Gets a | ||
Parameters | osid.calendaring.DateTime | from | start range |
osid.calendaring.DateTime | to | end range | |
Return | osid.resourcing.WorkList | the returned Work 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 | getUncommittedWorksByDate | ||
Description |
Gets a | ||
Parameters | osid.calendaring.DateTime | from | start range |
osid.calendaring.DateTime | to | end range | |
Return | osid.resourcing.WorkList | the returned Work 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 | getWorksByDateForJob | ||
Description |
Gets a | ||
Parameters | osid.id.Id | jobId | a job Id |
osid.calendaring.DateTime | from | start range | |
osid.calendaring.DateTime | to | end range | |
Return | osid.resourcing.WorkList | the returned Work list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | jobId, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getIncompleteWorksByDateForJob | ||
Description |
Gets a | ||
Parameters | osid.id.Id | jobId | a job Id |
osid.calendaring.DateTime | from | start range | |
osid.calendaring.DateTime | to | end range | |
Return | osid.resourcing.WorkList | the returned Work list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | jobId, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getIncompleteWorks | ||
Description |
Gets all incomplete | ||
Return | osid.resourcing.WorkList | a list of Works | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getUncommittedWorks | ||
Description |
Gets all | ||
Return | osid.resourcing.WorkList | a list of uncommitted Works | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getWorks | ||
Description |
Gets all | ||
Return | osid.resourcing.WorkList | a list of Works | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |