OSID Logo
OSID Specifications
personnel package
Version 3.1.0
Interfaceosid.personnel.PersonSmartRealmSession
Implementsosid.OsidSession
Used Byosid.personnel.PersonnelManager
osid.personnel.PersonnelProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A PersonQuery can be retrieved from this session and mapped to this Realm to create a virtual collection of Persons. The persons may be sequenced using the PersonSearchOrder from this session.

This Realm has a default query that matches any person and a default search order that specifies no sequencing. The queries may be examined using a PersonQueryInspector. The query may be modified by converting the inspector back to a PersonQuery .

MethodgetRealmId
Description

Gets the Realm Id associated with this session.

Returnosid.id.Id the Realm Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetRealm
Description

Gets the Realm associated with this session.

Returnosid.personnel.Realm the Realm associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetPersonQuery
Description

Gets a person query.

Returnosid.personnel.PersonQuery the person query
Compliancemandatory This method must be implemented.
MethodgetPersonSearchOrder
Description

Gets a person search order.

Returnosid.personnel.PersonSearchOrder the person search order
Compliancemandatory This method must be implemented.
MethodapplyPersonQuery
Description

Applies a person query to this realm.

Parametersosid.personnel.PersonQuerypersonQuery the person query
ErrorsNULL_ARGUMENT personQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED personQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectPersonQuery
Description

Gets a person query inspector for this realm.

Returnosid.personnel.PersonQueryInspector the person query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyPersonSequencing
Description

Applies a person search order to this realm.

Parametersosid.personnel.PersonSearchOrderpersonSearchOrder the person search order
ErrorsNULL_ARGUMENT personSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED personSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetPersonQueryFromInspector
Description

Gets a person query from an inspector.

Parametersosid.personnel.PersonQueryInspectorpersonQueryInspector a query inspector
Returnosid.personnel.PersonQuery the person query
ErrorsNULL_ARGUMENT personQueryInspector is null
UNSUPPORTED personQueryInspector is not of this service
Compliancemandatory This method must be implemented.