OSID Logo
OSID Specifications
tracking rules package
Version 3.1.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.Id the FrontOffice Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetFrontOffice
Description

Gets the FrontOffice associated with this session.

Returnosid.tracking.FrontOffice the front office
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.

Returnboolean false if QueueEnabler creation is not authorized, true otherwise
Compliancemandatory This 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[]queueEnablerRecordTypes array of queue enabler record types
Returnboolean true if QueueEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT queueEnablerRecordTypes is null
Compliancemandatory This 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[]queueEnablerRecordTypes array of queue enabler record types
Returnosid.tracking.rules.QueueEnablerForm the queue enabler form
ErrorsNULL_ARGUMENT queueEnablerRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateQueueEnabler
Description

Creates a new QueueEnabler.

Parametersosid.tracking.rules.QueueEnablerFormqueueEnablerForm the form for this QueueEnabler
Returnosid.tracking.rules.QueueEnabler the new QueueEnabler
ErrorsILLEGAL_STATE queueEnablerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT queueEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED queueEnablerForm did not originate from getQueueEnablerFormForCreate()
Compliancemandatory This 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.

Returnboolean false if QueueEnabler modification is not authorized, true otherwise
Compliancemandatory This 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.IdqueueEnablerId the Id of the QueueEnabler
Returnosid.tracking.rules.QueueEnablerForm the queue enabler form
ErrorsNOT_FOUND queueEnablerId is not found
NULL_ARGUMENT queueEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateQueueEnabler
Description

Updates an existing queue enabler.

Parametersosid.tracking.rules.QueueEnablerFormqueueEnablerForm the form containing the elements to be updated
ErrorsILLEGAL_STATE queueEnablerForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT queueEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED queueEnablerForm did not originate from getQueueEnablerFormForUpdate()
Compliancemandatory This 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.

Returnboolean false if QueueEnabler deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteQueueEnabler
Description

Deletes a QueueEnabler.

Parametersosid.id.IdqueueEnablerId the Id of the QueueEnabler to remove
ErrorsNOT_FOUND queueEnablerId not found
NULL_ARGUMENT queueEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.

Returnboolean false if QueueEnabler aliasing is not authorized, true otherwise
Compliancemandatory This 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.IdqueueEnablerId the Id of a QueueEnabler
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND queueEnablerId not found
NULL_ARGUMENT queueEnablerId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.