OSID Logo
OSID Specifications
course registration request package
Version 3.0.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.Idthe CourseCatalog Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalog
Description

Gets the CourseCatalog associated with this session.

Returnosid.course.CourseCatalogthe course catalog
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Returnbooleanfalse if RegistrationRequest creation is not authorized, true otherwise
CompliancemandatoryThis 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[]registrationRequestRecordTypesarray of registration request record types
Returnbooleantrue if RegistrationRequest creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTregistrationRequestRecordTypes is null
CompliancemandatoryThis 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.IdtermIda term Id
osid.type.Type[]registrationRequestRecordTypesarray of registration request record types
Returnosid.course.registration.request.RegistrationRequestFormthe registration request form
ErrorsNOT_FOUNDtermId is not found
NULL_ARGUMENTtermId or registrationRequestRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateRegistrationRequest
Description

Creates a new RegistrationRequest .

Parametersosid.course.registration.request.RegistrationRequestFormregistrationRequestFormthe form for this RegistrationRequest
Returnosid.course.registration.request.RegistrationRequestthe new RegistrationRequest
ErrorsILLEGAL_STATEregistrationRequestForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTregistrationRequestForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDregistrationRequestForm did not originate from getRegistrationRequestFormForCreate()
CompliancemandatoryThis 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.

Returnbooleanfalse if RegistrationRequest modification is not authorized, true otherwise
CompliancemandatoryThis 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.IdregistrationRequestIdthe Id of the RegistrationRequest
Returnosid.course.registration.request.RegistrationRequestFormthe registration request form
ErrorsNOT_FOUNDregistrationRequestId is not found
NULL_ARGUMENTregistrationRequestId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateRegistrationRequest
Description

Updates an existing registration request.

Parametersosid.course.registration.request.RegistrationRequestFormregistrationRequestFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEregistrationRequestForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTregistrationRequestForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDregistrationRequestForm did not originate from getRegistrationRequestFormForUpdate()
CompliancemandatoryThis 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.

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

Deletes a RegistrationRequest .

Parametersosid.id.IdregistrationRequestIdthe Id of the RegistrationRequest to remove
ErrorsNOT_FOUNDregistrationRequestId not found
NULL_ARGUMENTregistrationRequestId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Returnbooleanfalse if RegistrationRequest aliasing is not authorized, true otherwise
CompliancemandatoryThis 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.IdregistrationRequestIdthe Id of a RegistrationRequest
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDregistrationRequestId not found
NULL_ARGUMENTregistrationRequestId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodsubmitRegistrationRequest
Description

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

Parametersosid.id.IdregistrationRequestIdthe Id of a RegistrationRequest
ErrorsILLEGAL_STATEregistrationRequestId already submitted
NOT_FOUNDregistrationRequestId not found
NULL_ARGUMENTregistrationRequestId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.