OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.OrganizationSmartRealmSession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. An OrganizationQuery can be retrieved from this session and mapped to this Realm to create a virtual collection of Organizations. The organizations may be sequenced using the OrganizationSearchOrder from this session.

This Realm has a default query that matches any organization and a default search order that specifies no sequencing. The queries may be examined using an OrganizationQueryInspector. The query may be modified by converting the inspector back to a n OrganizationQuery.

MethodgetRealmId
Description

Gets the Realm Id associated with this session.

Returnosid.id.Idthe Realm Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetRealm
Description

Gets the Realm associated with this session.

Returnosid.personnel.Realmthe Realm associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartRealms
Description

Tests if this user can manage smart realms. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart realm management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetOrganizationQuery
Description

Gets an organization query.

Returnosid.personnel.OrganizationQuerythe organization query
CompliancemandatoryThis method must be implemented.
MethodgetOrganizationSearchOrder
Description

Gets an organization search order.

Returnosid.personnel.OrganizationSearchOrderthe organization search order
CompliancemandatoryThis method must be implemented.
MethodapplyOrganizationQuery
Description

Applies an organization query to this realm.

Parametersosid.personnel.OrganizationQueryorganizationQuerythe organization query
ErrorsNULL_ARGUMENT organizationQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED organizationQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectOrganizationQuery
Description

Gets an organization query inspector for this realm.

Returnosid.personnel.OrganizationQueryInspectorthe organization query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyOrganizationSequencing
Description

Applies an organization search order to this realm.

Parametersosid.personnel.OrganizationSearchOrderorganizationSearchOrderthe organization search order
ErrorsNULL_ARGUMENT organizationSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED organizationSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetOrganizationQueryFromInspector
Description

Gets an organization query from an inspector.

Parametersosid.personnel.OrganizationQueryInspectororganizationQueryInspectora query inspector
Returnosid.personnel.OrganizationQuerythe organization query
ErrorsNULL_ARGUMENT organizationQueryInspector is null
UNSUPPORTED organizationQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.