OSID Logo
OSID Specifications
course registration request package
Version 3.1.0
Interfaceosid.course.registration.request.RegistrationRequestAdminSession
Implementsosid.OsidSession
Used Byosid.course.registration.request.RegistrationRequestManager
osid.course.registration.request.RegistrationRequestProxyManager
Description

This session creates, updates, and deletes RegistrationReq uests. The data for create and update is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

Create and update operations differ in their usage. To create a RegistrationRe quest, a RegistrationReque stForm is requested using getRegistrationRequestFormForCr eate() specifying the desired term and record Types or none if no record Types are needed. The returned RegistrationReque stForm will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once the RegistrationReque stForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each RegistrationReque stForm corresponds to an attempted transaction.

For updates, RegistrationReques tForms are requested to the RegistrationR equest Id that is to be updated using getRegistrationRequestFormForUpd ate(). Similarly, the RegistrationReque stForm has metadata about the data that can be updated and it can perform validation before submitting the update. The RegistrationReque stForm can only be used once for a successful update and cannot be reused.

The delete operations delete RegistrationReq uests. To unmap a RegistrationR equest from the current CourseCatalog, the RegistrationRequestCourseCatalogAssignmentS ession should be used. These delete operations attempt to remove the RegistrationR equest itself thus removing it from all known CourseCatalog catalogs.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id.

OsidRequests include a submit operation for processing. submitRegistrationRequest() is used after the complete request has been created and may only be submitted once.
MethodgetCourseCatalogId
Description

Gets the CourseCatalog Id associated with this session.

Returnosid.id.Id the CourseCatalog Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCourseCatalog
Description

Gets the CourseCatalog associated with this session.

Returnosid.course.CourseCatalog the course catalog
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateRegistrationRequests
Description

Tests if this user can create RegistrationReq uests. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a RegistrationR equest will result in a PERMISSION_DENIED. Th is is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnboolean false if RegistrationRequest creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateRegistrationRequestWithRecordTypes
Description

Tests if this user can create a single RegistrationRe quest using the desired record types. While RegistrationRequestManager.getRegistrationRequestRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific RegistrationRe quest. Providing an empty array tests if a RegistrationReq uest can be created with no records.

Parametersosid.type.Type[]registrationRequestRecordTypes array of registration request record types
Returnboolean true if RegistrationRequest creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT registrationRequestRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetRegistrationRequestFormForCreate
Description

Gets the registration request form for creating new registration requests. A new form should be requested for each create transaction.

Parametersosid.id.IdtermId a term Id
osid.type.Type[]registrationRequestRecordTypes array of registration request record types
Returnosid.course.registration.request.RegistrationRequestForm the registration request form
ErrorsNOT_FOUND termId is not found
NULL_ARGUMENT termId or registrationRequestRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateRegistrationRequest
Description

Creates a new RegistrationRequest.

Parametersosid.course.registration.request.RegistrationRequestFormregistrationRequestForm the form for this RegistrationRequest
Returnosid.course.registration.request.RegistrationRequest the new RegistrationRequest
ErrorsILLEGAL_STATE registrationRequestForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT registrationRequestForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED registrationRequestForm did not originate from getRegistrationRequestFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateRegistrationRequests
Description

Tests if this user can update RegistrationReq uests. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a RegistrationR equest will result in a PERMISSION_DENIED. Th is is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.

Returnboolean false if RegistrationRequest modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetRegistrationRequestFormForUpdate
Description

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

Parametersosid.id.IdregistrationRequestId the Id of the RegistrationRequest
Returnosid.course.registration.request.RegistrationRequestForm the registration request form
ErrorsNOT_FOUND registrationRequestId is not found
NULL_ARGUMENT registrationRequestId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateRegistrationRequest
Description

Updates an existing registration request.

Parametersosid.course.registration.request.RegistrationRequestFormregistrationRequestForm the form containing the elements to be updated
ErrorsILLEGAL_STATE registrationRequestForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT registrationRequestForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED registrationRequestForm did not originate from getRegistrationRequestFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteRegistrationRequests
Description

Tests if this user can delete RegistrationReq uests. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a RegistrationR equest will result in a PERMISSION_DENIED. Th is is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnboolean false if RegistrationRequest deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteRegistrationRequest
Description

Deletes a RegistrationRequest.

Parametersosid.id.IdregistrationRequestId the Id of the RegistrationRequest to remove
ErrorsNOT_FOUND registrationRequestId not found
NULL_ARGUMENT registrationRequestId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageRegistrationRequestAliases
Description

Tests if this user can manage Id aliases for RegistrationRe quests 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 RegistrationRequest aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasRegistrationRequest
Description

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

Parametersosid.id.IdregistrationRequestId the Id of a RegistrationRequest
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND registrationRequestId not found
NULL_ARGUMENT registrationRequestId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodsubmitRegistrationRequest
Description

Submits a registration request for porcessing. A RegistrationRequest can only be submitted once.

Parametersosid.id.IdregistrationRequestId the Id of a RegistrationRequest
ErrorsILLEGAL_STATE registrationRequestId already submitted
NOT_FOUND registrationRequestId not found
NULL_ARGUMENT registrationRequestId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.