OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.PersonSmartRealmSession
Implementsosid.OsidSession
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.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.
MethodgetPersonQuery
Description

Gets a person query.

Returnosid.personnel.PersonQuerythe person query
CompliancemandatoryThis method must be implemented.
MethodgetPersonSearchOrder
Description

Gets a person search order.

Returnosid.personnel.PersonSearchOrderthe person search order
CompliancemandatoryThis method must be implemented.
MethodapplyPersonQuery
Description

Applies a person query to this realm.

Parametersosid.personnel.PersonQuerypersonQuerythe person query
ErrorsNULL_ARGUMENT personQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED personQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectPersonQuery
Description

Gets a person query inspector for this realm.

Returnosid.personnel.PersonQueryInspectorthe person query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyPersonSequencing
Description

Applies a person search order to this realm.

Parametersosid.personnel.PersonSearchOrderpersonSearchOrderthe person search order
ErrorsNULL_ARGUMENT personSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED personSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetPersonQueryFromInspector
Description

Gets a person query from an inspector.

Parametersosid.personnel.PersonQueryInspectorpersonQueryInspectora query inspector
Returnosid.personnel.PersonQuerythe person query
ErrorsNULL_ARGUMENT personQueryInspector is null
UNSUPPORTED personQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.