OSID Logo
OSID Specifications
tracking rules package
Version 3.0.0
Interfaceosid.tracking.rules.QueueEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.tracking.rules.TrackingRulesManager
osid.tracking.rules.TrackingRulesProxyManager
Description

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

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

The delete operations delete QueueEnablers . To unmap a QueueEnabler from the current FrontOffice , the QueueEnablerFrontOfficeAssignmentSession should be used. These delete operations attempt to remove the QueueEnabler itself thus removing it from all known FrontOffice catalogs.

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

MethodgetFrontOfficeId
Description

Gets the FrontOffice Id associated with this session.

Returnosid.id.Idthe FrontOffice Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetFrontOffice
Description

Gets the FrontOffice associated with this session.

Returnosid.tracking.FrontOfficethe front office
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateQueueEnablers
Description

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

Returnbooleanfalse if QueueEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateQueueEnablerWithRecordTypes
Description

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

Parametersosid.type.Type[]queueEnablerRecordTypesarray of queue enabler record types
Returnbooleantrue if QueueEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTqueueEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetQueueEnablerFormForCreate
Description

Gets the queue enabler form for creating new queue enablers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]queueEnablerRecordTypesarray of queue enabler record types
Returnosid.tracking.rules.QueueEnablerFormthe queue enabler form
ErrorsNULL_ARGUMENTqueueEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateQueueEnabler
Description

Creates a new QueueEnabler .

Parametersosid.tracking.rules.QueueEnablerFormqueueEnablerFormthe form for this QueueEnabler
Returnosid.tracking.rules.QueueEnablerthe new QueueEnabler
ErrorsILLEGAL_STATEqueueEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTqueueEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDqueueEnablerForm did not originate from getQueueEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateQueueEnablers
Description

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

Returnbooleanfalse if QueueEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetQueueEnablerFormForUpdate
Description

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

Parametersosid.id.IdqueueEnablerIdthe Id of the QueueEnabler
Returnosid.tracking.rules.QueueEnablerFormthe queue enabler form
ErrorsNOT_FOUNDqueueEnablerId is not found
NULL_ARGUMENTqueueEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateQueueEnabler
Description

Updates an existing queue enabler.

Parametersosid.tracking.rules.QueueEnablerFormqueueEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEqueueEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTqueueEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDqueueEnablerForm did not originate from getQueueEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteQueueEnablers
Description

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

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

Deletes a QueueEnabler .

Parametersosid.id.IdqueueEnablerIdthe Id of the QueueEnabler to remove
ErrorsNOT_FOUNDqueueEnablerId not found
NULL_ARGUMENTqueueEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageQueueEnablerAliases
Description

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

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

Parametersosid.id.IdqueueEnablerIdthe Id of a QueueEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDqueueEnablerId not found
NULL_ARGUMENTqueueEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.