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

This session creates, updates, and deletes RegistrationReq uestItems. 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 questItem, a RegistrationReque stItemForm is requested using getRegistrationRequestItemFormForm() specifying the desired registration request and record Types or none if no record Types are needed. Each form request method corresponds to an operation of the RegistrationRequestItem .

The returned RegistrationReque stItemForm 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 stItemForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each RegistrationReque stItemForm corresponds to an attempted transaction.

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

The delete operations delete RegistrationReq uestItems. To unmap a RegistrationR equestItem from the current CourseCatalog , the RegistrationRequestItemCourseCatalogAssignm entSession should be used. These delete operations attempt to remove the RegistrationR equestItem 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 .

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.CourseCatalogListthe course catalog
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateRegistrationRequestItems
Description

Tests if this user can create RegistrationReq uestItems. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a RegistrationR equestItem 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 RegistrationRequestItem creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateRegistrationRequestItemWithRecordTypes
Description

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

Parametersosid.type.Type[]registrationRequestItemRecordTypesarray of registration request item record types
Returnbooleantrue if RegistrationRequestItem creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTregistrationRequestItemRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationRequestItemFormForCreateForAdd
Description

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

Parametersosid.id.IdregistrationRequestIda registration request Id
osid.type.Type[]registrationRequestItemRecordTypesarray of registration request item record types
Returnosid.course.registration.request.RegistrationRequestItemFormthe registration request item form
ErrorsNOT_FOUNDregistrationRequestId is not found
NULL_ARGUMENTregistrationRequestId or registrationRequestItemRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationRequestItemFormForCreateForUpdate
Description

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

Parametersosid.id.IdregistrationRequestIda registration request Id
osid.type.Type[]registrationRequestItemRecordTypesarray of registration request item record types
Returnosid.course.registration.request.RegistrationRequestItemFormthe registration request item form
ErrorsNOT_FOUNDregistrationRequestId is not found
NULL_ARGUMENTregistrationRequestId or registrationRequestItemRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationRequestItemFormForCreateForDrop
Description

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

Parametersosid.id.IdregistrationRequestIda registration request Id
osid.type.Type[]registrationRequestItemRecordTypesarray of registration request item record types
Returnosid.course.registration.request.RegistrationRequestItemFormthe registration request item form
ErrorsNOT_FOUNDregistrationRequestId is not found
NULL_ARGUMENTregistrationRequestId or registrationRequestItemRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateRegistrationRequestItem
Description

Creates a new RegistrationRequestItem .

Parametersosid.course.registration.request.RegistrationRequestItemFormregistrationRequestItemFormthe form for this RegistrationRequestItem
Returnosid.course.registration.request.RegistrationRequestItemthe new RegistrationRequestItem
ErrorsILLEGAL_STATEregistrationRequestItemForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTregistrationRequestItemForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDregistrationRequestItemForm did not originate from getRegistrationRequestItemFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateRegistrationRequestItems
Description

Tests if this user can update RegistrationReq uestItems. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a RegistrationR equestItem 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 RegistrationRequestItem modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationRequestItemFormForUpdate
Description

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

Parametersosid.id.IdregistrationRequestItemIdthe Id of the RegistrationRequestItem
Returnosid.course.registration.request.RegistrationRequestItemFormthe registration request item form
ErrorsNOT_FOUNDregistrationRequestItemId is not found
NULL_ARGUMENTregistrationRequestItemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateRegistrationRequestItem
Description

Updates an existing registration request item.

Parametersosid.course.registration.request.RegistrationRequestItemFormregistrationRequestItemFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEregistrationRequestItemForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTregistrationRequestItemForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDregistrationRequestItemForm did not originate from getRegistrationRequestItemFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteRegistrationRequestItems
Description

Tests if this user can delete RegistrationReq uestItems. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a RegistrationR equestItem 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 RegistrationRequestItem deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteRegistrationRequestItem
Description

Deletes a RegistrationRequestItem .

Parametersosid.id.IdregistrationRequestItemIdthe Id of the RegistrationRequestItem to remove
ErrorsNOT_FOUNDregistrationRequestItemId not found
NULL_ARGUMENTregistrationRequestItemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageRegistrationRequestItemAliases
Description

Tests if this user can manage Id aliases for RegistrationRe questItems 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 RegistrationRequestItem aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasRegistrationRequestItem
Description

Adds an Id to a RegistrationR equestItem for the purpose of creating compatibility. The primary Id of the RegistrationR equestItem 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 item, it is reassigned to the given registration request item Id .

Parametersosid.id.IdregistrationRequestItemIdthe Id of a RegistrationRequestItem
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDregistrationRequestItemId not found
NULL_ARGUMENTregistrationRequestItemId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.