OSID Logo
OSID Specifications
room package
Version 3.0.0
Interfaceosid.room.CampusAdminSession
Implementsosid.OsidSession
Implemented Byosid.room.batch.CampusBatchAdminSession
Used Byosid.room.RoomManager
osid.room.RoomProxyManager
Description

This session creates and removes campuses. The data for create and update is provided by the consumer via the form.

MethodcanCreateCampuses
Description

Tests if this user can create Campuses . A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a Campus will result in a PERMISSION_DENIED . This is intended as a hint to an application that may not wish to offer create operations to unauthorized users.

Returnbooleanfalse if Campus creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateCampusWithRecordTypes
Description

Tests if this user can create a single Campus using the desired record interface types. While RoomManager.getCampusRecordTypes() can be used to examine which record interfaces are supported, this method tests which record(s) are required for creating a specific Campus . Providing an empty array tests if a Campus can be created with no records.

Parametersosid.type.Type[]campusRecordTypesarray of campus record types
Returnbooleantrue if Campus creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTcampusRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetCampusFormForCreate
Description

Gets the campus form for creating new campuses. A new form should be requested for each create transaction.

Parametersosid.type.Type[]campusRecordTypesarray of campus record types
Returnosid.room.CampusFormthe campus form
ErrorsNULL_ARGUMENTcampusRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get foem for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateCampus
Description

Creates a new Campus .

Parametersosid.room.CampusFormcampusFormthe form for this Campus
Returnosid.room.Campusthe new Campus
ErrorsILLEGAL_STATEcampusForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTcampusForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDcampusForm did not originate from getCampusFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateCampuses
Description

Tests if this user can update Campuses . A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a Campus will result in a PERMISSION_DENIED . This is intended as a hint to an application that may not wish to offer update operations to unauthorized users.

Returnbooleanfalse if Campus modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCampusFormForUpdate
Description

Gets the campus form for updating an existing campus. A new campus form should be requested for each update transaction.

Parametersosid.id.IdcampusIdthe Id of the Campus
Returnosid.room.CampusFormthe campus form
ErrorsNOT_FOUNDcampusId is not found
NULL_ARGUMENTcampusId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateCampus
Description

Updates an existing campus.

Parametersosid.room.CampusFormcampusFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEcampusForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTcampusForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDcampusForm did not originate from getCampusFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteCampuses
Description

Tests if this user can delete Campuses A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a Campus will result in a PERMISSION_DENIED . This is intended as a hint to an application that may not wish to offer delete operations to unauthorized users.

Returnbooleanfalse if Campus deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteCampus
Description

Deletes a Campus .

Parametersosid.id.IdcampusIdthe Id of the Campus to remove
ErrorsNOT_FOUNDcampusId not found
NULL_ARGUMENTcampusId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageCampusAliases
Description

Tests if this user can manage Id aliases for Campuses . A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED . This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnbooleanfalse if Campus aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasCampus
Description

Adds an Id to a Campus for the purpose of creating compatibility. The primary Id of the Campus is determined by the provider. The new Id performs as an alias to the primary Id . If the alias is a pointer to another campus, it is reassigned to the given campus Id .

Parametersosid.id.IdcampusIdthe Id of a Campus
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDcampusId not found
NULL_ARGUMENTcampusId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.