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

This session provides methods to re-assign Appointments to Bilings . An Appointment may map to multiple Realms and removing the last reference to an Appointment is the equivalent of deleting it. Each Realm may have its own authorizations governing who is allowed to operate on it.

Adding a reference of an Appointment to another Realm is not a copy operation (eg: does not change its Id ).

MethodcanAssignAppointments
Description

Tests if this user can alter appointment/realm mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 lookup operations to unauthorized users.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignAppointmentsToRealm
Description

Tests if this user can alter appointment/realm mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 assignment operations to unauthorized users.

Parametersosid.id.IdrealmIdthe Id of the Realm
Returnbooleanfalse if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENTrealmId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableRealmIds
Description

Gets a list of realms including and under the given realm node in which any appointment can be assigned.

Parametersosid.id.IdrealmIdthe Id of the Realm
Returnosid.id.IdListlist of assignable realm Ids
ErrorsNULL_ARGUMENTrealmId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableRealmIdsForAppointment
Description

Gets a list of realms including and under the given realm node in which a specific appointment can be assigned.

Parametersosid.id.IdrealmIdthe Id of the Realm
osid.id.IdappointmentIdthe Id of the Appointment
Returnosid.id.IdListlist of assignable realm Ids
ErrorsNULL_ARGUMENTrealmId or appointmentId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignAppointmentToRealm
Description

Adds an existing Appointment to a Realm .

Parametersosid.id.IdappointmentIdthe Id of the Appointment
osid.id.IdrealmIdthe Id of the Realm
ErrorsALREADY_EXISTSappointmentId already assigned to realmId
NOT_FOUNDappointmentId or realmId not found
NULL_ARGUMENTappointmentId or realmId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignAppointmentFromRealm
Description

Removes an Appointment from a Realm .

Parametersosid.id.IdappointmentIdthe Id of the Appointment
osid.id.IdrealmIdthe Id of the Realm
ErrorsNOT_FOUNDappointmentId or realmId not found or appointmentId not mapped to realmId
NULL_ARGUMENTappointmentId or realmId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignAppointmentToRealm
Description

Moves an Appointment from one Realm to another. Mappings to other Realms are unaffected.

Parametersosid.id.IdappointmentIdthe Id of the Appointment
osid.id.IdfromRealmIdthe Id of the current Realm
osid.id.IdtoRealmIdthe Id of the destination Realm
ErrorsALREADY_EXISTSappointmentId already assigned to toRealmId
NOT_FOUNDappointmentId, fromRealmId , or toRealmId not found or appointmentId not mapped to fromRealmId
NULL_ARGUMENTappointmentId, fromRealmId , or toRealmId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.