OSID Logo
OSID Specifications
room package
Version 3.0.0
Release Candidate Preview
Interfaceosid.room.CampusAdminSession
Implementsosid.OsidSession
Description

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

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.

Returnboolean false 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
Returnboolean true if Campus creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT campusRecordTypes 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_ARGUMENT campusRecordTypes 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_STATE campusForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT campusForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED campusForm 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.

Returnboolean false 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_FOUND campusId is not found
NULL_ARGUMENT campusId 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_STATE campusForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT campusForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED campusForm 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.

Returnboolean false 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_FOUND campusId not found
NULL_ARGUMENT campusId 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.

Returnboolean false 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_EXISTS aliasId is already assigned
NOT_FOUND campusId not found
NULL_ARGUMENT campusId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.