OSID Logo
OSID Specifications
room package
Version 3.1.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.

Returnboolean false if Campus creation is not authorized, true otherwise
Compliancemandatory This 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[]campusRecordTypes array of campus record types
Returnboolean true if Campus creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT campusRecordTypes is null
Compliancemandatory This 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[]campusRecordTypes array of campus record types
Returnosid.room.CampusForm the campus form
ErrorsNULL_ARGUMENT campusRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get foem for requested record types
Compliancemandatory This method must be implemented.
MethodcreateCampus
Description

Creates a new Campus.

Parametersosid.room.CampusFormcampusForm the form for this Campus
Returnosid.room.Campus the new Campus
ErrorsILLEGAL_STATE campusForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT campusForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED campusForm did not originate from getCampusFormForCreate()
Compliancemandatory This 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
Compliancemandatory This 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.IdcampusId the Id of the Campus
Returnosid.room.CampusForm the campus form
ErrorsNOT_FOUND campusId is not found
NULL_ARGUMENT campusId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateCampus
Description

Updates an existing campus.

Parametersosid.room.CampusFormcampusForm the form containing the elements to be updated
ErrorsILLEGAL_STATE campusForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT campusForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED campusForm did not originate from getCampusFormForUpdate()
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethoddeleteCampus
Description

Deletes a Campus.

Parametersosid.id.IdcampusId the Id of the Campus to remove
ErrorsNOT_FOUND campusId not found
NULL_ARGUMENT campusId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdcampusId the Id of a Campus
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND campusId not found
NULL_ARGUMENT campusId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.