Interface | osid.personnel.PositionLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving positions. This lookup session defines several views:
The methods | ||
Method | getRealmId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Realm Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getRealm | ||
Description |
Gets the | ||
Return | osid.personnel.Realm | the realm | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupPositions | ||
Description |
Tests if this user can examine this realm. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known all methods in this
session will result in a | ||
Return | boolean | false if realm reading methods are not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativePositionView | ||
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 | usePlenaryPositionView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedRealmView | ||
Description |
Federates the view for methods in this session. A federated view will include positions in realms which are children of this realm in the realm hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedRealmView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this realm only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useEffectivePositionView | ||
Description |
Only positions whose effective dates are current are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyEffectivePositionView | ||
Description |
All positions of any effective dates are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getPosition | ||
Description |
Gets the In effective mode, positions are returned that are currently effective. In any effective mode, effective positions and those currently expired are returned. | ||
Parameters | osid.id.Id | positionId | the Id of the Position to retrieve |
Return | osid.personnel.Position | the returned Position | |
Errors | NOT_FOUND | no Position found with the given Id | |
NULL_ARGUMENT | positionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPositionsByIds | ||
Description |
Gets a In effective mode, positions are returned that are currently effective. In any effective mode, effective positions and those currently expired are returned. | ||
Parameters | osid.id.IdList | positionIds | the list of Ids to retrieve |
Return | osid.personnel.PositionList | the returned Position list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | positionIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPositionsByGenusType | ||
Description |
Gets a In effective mode, positions are returned that are currently effective. In any effective mode, effective positions and those currently expired are returned. | ||
Parameters | osid.type.Type | positionGenusType | a positions genus type |
Return | osid.personnel.PositionList | the returned Position list | |
Errors | NULL_ARGUMENT | positionGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPositionsByParentGenusType | ||
Description |
Gets a In active mode, positions are returned that are currently active. In any status mode, active and inactive positions are returned. | ||
Parameters | osid.type.Type | positionGenusType | a position genus type |
Return | osid.personnel.PositionList | the returned Position list | |
Errors | NULL_ARGUMENT | positionGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPositionsByRecordType | ||
Description |
Gets a In plenary mode, the returned list contains all known positions or an error results. Otherwise, the returned list may contain only those positions that are accessible through this session. In effective mode, positions are returned that are currently effective. In any effective mode, effective positions and those currently expired are returned. | ||
Parameters | osid.type.Type | positionRecordType | a position record type |
Return | osid.personnel.PositionList | the returned PositionList | |
Errors | NULL_ARGUMENT | positionRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPositionsOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known positions or an error results. Otherwise, the returned list may contain only those positions that are accessible through this session. In effective mode, positions are returned that are currently effective. In any effective mode, effective positions 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.personnel.PositionList | the returned PositionList | |
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 | getPositionsForOrganization | ||
Description |
Gets a In plenary mode, the returned list contains all known positions or an error results. Otherwise, the returned list may contain only those positions that are accessible through this session. In effective mode, positions are returned that are currently effective. In any effective mode, effective positions and those currently expired are returned. | ||
Parameters | osid.id.Id | organizationId | an organization Id |
Return | osid.personnel.PositionList | the returned PositionList | |
Errors | NULL_ARGUMENT | organizationId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPositionsForOrganizationOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known positions or an error results. Otherwise, the returned list may contain only those positions that are accessible through this session. In effective mode, positions are returned that are currently effective. In any effective mode, effective positions and those currently expired are returned. | ||
Parameters | osid.id.Id | organizationId | an organization Id |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.personnel.PositionList | a list of positions | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | organization, from, or to is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPositions | ||
Description |
Gets all positions. In plenary mode, the returned list contains all known positions or an error results. Otherwise, the returned list may contain only those positions that are accessible through this session. In effective mode, positions are returned that are currently effective. In any effective mode, effective positions and those currently expired are returned. | ||
Return | osid.personnel.PositionList | a list of positions | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |