OSID Logo
OSID Specifications
room squatting package
Version 3.0.0
Interfaceosid.room.squatting.DeedCampusAssignmentSession
Implementsosid.OsidSession
Used Byosid.room.squatting.RoomSquattingManager
osid.room.squatting.RoomSquattingProxyManager
Description

This session provides methods to re-assign Deeds to Campuses . A Deed may map to multiple Campuses and removing the last reference to a Deed is the equivalent of deleting it. Each Campus may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a Deed to another Campus is not a copy operation (eg: does not change its Id ).

MethodcanAssignDeeds
Description

Tests if this user can alter deed/campus 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.

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

Tests if this user can alter deed/campus 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.IdcampusIdthe Id of the Campus
Returnbooleanfalse if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENTcampusId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableCampusIds
Description

Gets a list of campuses including and under the given campus node in which any deed can be assigned.

Parametersosid.id.IdcampusIdthe Id of the Campus
Returnosid.id.IdListlist of assignable campus Ids
ErrorsNULL_ARGUMENTcampusId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableCampusIdsForDeed
Description

Gets a list of campuses including and under the given campus node in which a specific deed can be assigned.

Parametersosid.id.IdcampusIdthe Id of the Campus
osid.id.IddeedIdthe Id of the Deed
Returnosid.id.IdListlist of assignable campus Ids
ErrorsNULL_ARGUMENTcampusId or deedId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignDeedToCampus
Description

Adds an existing Deed to a Campus .

Parametersosid.id.IddeedIdthe Id of the Deed
osid.id.IdcampusIdthe Id of the Campus
ErrorsALREADY_EXISTSdeedId is already assigned to campusId
NOT_FOUNDdeedId or campusId not found
NULL_ARGUMENTdeedId or campusId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignDeedFromCampus
Description

Removes a Deed from a Campus .

Parametersosid.id.IddeedIdthe Id of the Deed
osid.id.IdcampusIdthe Id of the Campus
ErrorsNOT_FOUNDdeedId or campusId not found or deedId not assigned to campusId
NULL_ARGUMENTdeedId or campusId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignDeedToCampus
Description

Moves a Deed from one Campus to another. Mappings to other Campuses are unaffected.

Parametersosid.id.IddeedIdthe Id of the Deed
osid.id.IdfromCampusIdthe Id of the current Campus
osid.id.IdtoCampusIdthe Id of the destination Campus
ErrorsALREADY_EXISTSdeedId already assigned to toCampusId
NOT_FOUNDdeedId, fromCampusId , or toCampusId not found or deedId not mapped to fromCampusId
NULL_ARGUMENTdeedId, fromCampusId , or toCampusId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.