OSID Logo
OSID Specifications
course registration package
Version 3.0.0
Interfaceosid.course.registration.RegistrationTargetAdminSession
Implementsosid.OsidSession
Implemented Byosid.course.registration.batch.RegistrationTargetBatchAdminSession
Used Byosid.course.registration.CourseRegistrationManager
osid.course.registration.CourseRegistrationProxyManager
Description

This session creates, updates, and deletes RegistrationTar gets. 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 RegistrationTa rget, a RegistrationTarge tForm is requested using getRegistrationTargetFormForCre ate() specifying the desired course offering and record Types or none if no record Types are needed. The returned RegistrationTarge tForm 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 RegistrationTarge tForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each RegistrationTarge tForm corresponds to an attempted transaction.

For updates, RegistrationTarget Forms are requested to the RegistrationT arget Id that is to be updated using getRegistrationTargetFormForUpda te(). Similarly, the RegistrationTarge tForm has metadata about the data that can be updated and it can perform validation before submitting the update. The RegistrationTarge tForm can only be used once for a successful update and cannot be reused.

The delete operations delete RegistrationTar gets. To unmap a RegistrationT arget from the current CourseCatalog , the RegistrationTargetCourseCatalogAssignmentSe ssion should be used. These delete operations attempt to remove the RegistrationT arget 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.CourseCatalogthe course catalog
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateRegistrationTargets
Description

Tests if this user can create RegistrationTar gets. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a RegistrationT arget 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 RegistrationTarget creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateRegistrationTargetWithRecordTypes
Description

Tests if this user can create a single RegistrationTa rget using the desired record types. While CourseRegistrationManager.getRegistrationTargetRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific RegistrationTa rget. Providing an empty array tests if a RegistrationTar get can be created with no records.

Parametersosid.type.Type[]registrationTargetRecordTypesarray of registration target record types
Returnbooleantrue if RegistrationTarget creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTregistrationTargetRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationTargetFormForCreate
Description

Gets the registration target form for creating new registration targets. A new form should be requested for each create transaction.

Parametersosid.id.IdcourseOfferingIda course offering Id
osid.type.Type[]registrationTargetRecordTypesarray of registration target record types
Returnosid.course.registration.RegistrationTargetFormthe registration target form
ErrorsNOT_FOUNDcourseOfferingId is not found
NULL_ARGUMENTcourseOfferingId or registrationTargetRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateRegistrationTarget
Description

Creates a new RegistrationTarget .

Parametersosid.course.registration.RegistrationTargetFormregistrationTargetFormthe form for this RegistrationTarget
Returnosid.course.registration.RegistrationTargetthe new RegistrationTarget
ErrorsILLEGAL_STATEregistrationTargetForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTregistrationTargetForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDregistrationTargetForm did not originate from getRegistrationTargetFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateRegistrationTargets
Description

Tests if this user can update RegistrationTar gets. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a RegistrationT arget 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 RegistrationTarget modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationTargetFormForUpdate
Description

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

Parametersosid.id.IdregistrationTargetIdthe Id of the RegistrationTarget
Returnosid.course.registration.RegistrationTargetFormthe registration target form
ErrorsNOT_FOUNDregistrationTargetId is not found
NULL_ARGUMENTregistrationTargetId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateRegistrationTarget
Description

Updates an existing registration target.

Parametersosid.course.registration.RegistrationTargetFormregistrationTargetFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEregistrationTargetForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTregistrationTargetForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDregistrationTargetForm did not originate from getRegistrationTargetFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteRegistrationTargets
Description

Tests if this user can delete RegistrationTar gets. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a RegistrationT arget 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 RegistrationTarget deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteRegistrationTarget
Description

Deletes a RegistrationTarget .

Parametersosid.id.IdregistrationTargetIdthe Id of the RegistrationTarget to remove
ErrorsNOT_FOUNDregistrationTargetId not found
NULL_ARGUMENTregistrationTargetId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageRegistrationTargetAliases
Description

Tests if this user can manage Id aliases for RegistrationTa rgets 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 RegistrationTarget aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasRegistrationTarget
Description

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

Parametersosid.id.IdregistrationTargetIdthe Id of a RegistrationTarget
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDregistrationTargetId not found
NULL_ARGUMENTregistrationTargetId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.