Interface | osid.personnel.OrganizationLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving organizations. 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 | canLookupOrganizations | ||
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 | useComparativeOrganizationView | ||
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 | usePlenaryOrganizationView | ||
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 organizations 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 | useEffectiveOrganizationView | ||
Description |
Only organizations whose effective dates are current are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyEffectiveOrganizationView | ||
Description |
All organizations of any effective dates are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getOrganization | ||
Description |
Gets the In effective mode, organizations are returned that are currently effective. In any effective mode, effective organizations and those currently expired are returned. | ||
Parameters | osid.id.Id | organizationId | the Id of the Organization to retrieve |
Return | osid.personnel.Organization | the returned Organization | |
Errors | NOT_FOUND | no Organization found with the given Id | |
NULL_ARGUMENT | organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getOrganizationsByIds | ||
Description |
Gets an In effective mode, organizations are returned that are currently effective. In any effective mode, effective organizations and those currently expired are returned. | ||
Parameters | osid.id.IdList | organizationIds | the list of Ids to retrieve |
Return | osid.personnel.OrganizationList | the returned Organization list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | organizationIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getOrganizationsByGenusType | ||
Description |
Gets an In effective mode, organizations are returned that are currently effective. In any effective mode, effective organizations and those currently expired are returned. | ||
Parameters | osid.type.Type | organizationGenusType | an organizations genus type |
Return | osid.personnel.OrganizationList | the returned Organization list | |
Errors | NULL_ARGUMENT | organizationGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getOrganizationsByParentGenusType | ||
Description |
Gets an In effective mode, organizations are returned that are currently effective. In any effective mode, effective organizations and those currently expired are returned. | ||
Parameters | osid.type.Type | organizationGenusType | an organization genus type |
Return | osid.personnel.OrganizationList | the returned Organization list | |
Errors | NULL_ARGUMENT | organizationGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getOrganizationsByRecordType | ||
Description |
Gets an In effective mode, organizations are returned that are currently effective. In any effective mode, effective organizations and those currently expired are returned. | ||
Parameters | osid.type.Type | organizationRecordType | an organization record type |
Return | osid.personnel.OrganizationList | the returned OrganizationList | |
Errors | NULL_ARGUMENT | organizationRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getOrganizationsOnDate | ||
Description |
Gets an In plenary mode, the returned list contains all known organizations or an error results. Otherwise, the returned list may contain only those organizations that are accessible through this session. In effective mode, organizations are returned that are currently effective. In any effective mode, effective organizations 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.OrganizationList | the returned OrganizationList | |
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 | getOrganizations | ||
Description |
Gets all organizations. In plenary mode, the returned list contains all known organizations or an error results. Otherwise, the returned list may contain only those organizations that are accessible through this session. In effective mode, organizations are returned that are currently effective. In any effective mode, effective organizations and those currently expired are returned. | ||
Return | osid.personnel.OrganizationList | a list of organizations | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |