OSID Logo
OSID Specifications
recognition package
Version 3.0.0
Release Candidate Preview
Interfaceosid.recognition.ConvocationAdminSession
Implementsosid.OsidSession
Description

This session creates, updates, and deletes Convocations. 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 Convocation, a ConvocationForm is requested using getConvocationFormForCreate() specifying the desired record Types or none if no record Types are needed. The returned ConvocationForm 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 ConvocationForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each ConvocationForm corresponds to an attempted transaction.

For updates, ConvocationForms are requested to the Convocation Id that is to be updated using getConvocationFormForUpdate(). Similarly, the ConvocationForm has metadata about the data that can be updated and it can perform validation before submitting the update. The ConvocationForm can only be used once for a successful update and cannot be reused.

The delete operations delete Convocations. To unmap a Convocation from the current Academy, the ConvocationAcademyAssignmentSession should be used. These delete operations attempt to remove the Convocation itself thus removing it from all known Academy catalogs.

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

MethodgetAcademyId
Description

Gets the Academy Id associated with this session.

Returnosid.id.Idthe Academy Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetAcademy
Description

Gets the Academy associated with this session.

Returnosid.recognition.Academythe academy
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateConvocations
Description

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

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

Parametersosid.type.Type[]convocationRecordTypesarray of convocation record types
Returnboolean true if Convocation creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT convocationRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetConvocationFormForCreate
Description

Gets the convocation form for creating new convocations. A new form should be requested for each create transaction.

Parametersosid.type.Type[]convocationRecordTypesarray of convocation record types
Returnosid.recognition.ConvocationFormthe convocation form
ErrorsNULL_ARGUMENT convocationRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateConvocation
Description

Creates a new Convocation.

Parametersosid.recognition.ConvocationFormconvocationFormthe form for this Convocation
Returnosid.recognition.Convocationthe new Convocation
ErrorsILLEGAL_STATE convocationForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT convocationForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED convocationForm did not originate from getConvocationFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateConvocations
Description

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

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

Parametersosid.id.IdconvocationIdthe Id of the Convocation
Returnosid.recognition.ConvocationFormthe convocation form
ErrorsNOT_FOUND convocationId is not found
NULL_ARGUMENT convocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateConvocation
Description

Updates an existing convocation.

Parametersosid.recognition.ConvocationFormconvocationFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEthe form contains an invalid value
INVALID_ARGUMENT convocationForm already used in an update transaction
NULL_ARGUMENT convocationForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED convocationForm did not originate from getConvocationFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteConvocations
Description

Tests if this user can delete convocations. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting an Convocation 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 Convocation deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteConvocation
Description

Deletes a Convocation.

Parametersosid.id.IdconvocationIdthe Id of the Convocation to remove
ErrorsNOT_FOUND convocationId not found
NULL_ARGUMENT convocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageConvocationAliases
Description

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

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

Parametersosid.id.IdconvocationIdthe Id of a Convocation
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND convocationId not found
NULL_ARGUMENT convocationId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageConvocations
Description

Tests if this user can manage convocations. 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 Convocation management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaddAward
Description

Adds an award to a convocation.

Parametersosid.id.IdawardIdthe Id of an Award
osid.id.IdconvocationIdthe Id of a Convocation
ErrorsALREADY_EXISTS awardId is already part of convocationId
NOT_FOUND awardId or convocationId not found
NULL_ARGUMENT awardid or convocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodremoveAward
Description

removes an award from a convocation.

Parametersosid.id.IdawardIdthe Id of an Award
osid.id.IdconvocationIdthe Id of a Convocation
ErrorsNOT_FOUND awardId or convocationId not found or awardid not part of convocationId
NULL_ARGUMENT awardid or convocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.