OSID Logo
OSID Specifications
tracking package
Version 3.1.0
Interfaceosid.tracking.FrontOfficeAdminSession
Implementsosid.OsidSession
Implemented Byosid.tracking.batch.FrontOfficeBatchAdminSession
Used Byosid.tracking.TrackingManager
osid.tracking.TrackingProxyManager
Description

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

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

The delete operations delete FrontOffices.

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

MethodcanCreateFrontOffices
Description

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

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

Parametersosid.type.Type[]frontOfficeRecordTypes array of front office record types
Returnboolean true if FrontOffice creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT frontOfficeRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetFrontOfficeFormForCreate
Description

Gets the front office form for creating new frontOffices. A new form should be requested for each create transaction.

Parametersosid.type.Type[]frontOfficeRecordTypes array of front office record types
Returnosid.tracking.FrontOfficeForm the front office form
ErrorsNULL_ARGUMENT frontOfficeRecordTypes 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.
MethodcreateFrontOffice
Description

Creates a new FrontOffice.

Parametersosid.tracking.FrontOfficeFormfrontOfficeForm the form for this FrontOffice
Returnosid.tracking.FrontOffice the new FrontOffice
ErrorsILLEGAL_STATE frontOfficeForm already use din a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT frontOfficeForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED frontOfficeForm did not originate from getFrontOfficeFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateFrontOffices
Description

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

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

Parametersosid.id.IdfrontOfficeId the Id of the FrontOffice
Returnosid.tracking.FrontOfficeForm the front office form
ErrorsNOT_FOUND frontOfficeId is not found
NULL_ARGUMENT frontOfficeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateFrontOffice
Description

Updates an existing front office

Parametersosid.tracking.FrontOfficeFormfrontOfficeForm the form containing the elements to be updated
ErrorsILLEGAL_STATE frontOfficeForm already use din an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT frontOfficeId or frontOfficeForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED frontOfficeForm did not originate from getFrontOfficeFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteFrontOffices
Description

Tests if this user can delete FrontOffices. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a FrontOffice 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 FrontOffice deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteFrontOffice
Description

Deletes a FrontOffice.

Parametersosid.id.IdfrontOfficeId the Id of the FrontOffice to remove
ErrorsNOT_FOUND frontOfficeId not found
NULL_ARGUMENT frontOfficeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageFrontOfficeAliases
Description

Tests if this user can manage Id aliases for FrontOffices. 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 FrontOffice aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasFrontOffice
Description

Adds an Id to a FrontOffice for the purpose of creating compatibility. The primary Id of the FrontOffice is determined by the provider. The new Id performs as an alias to the primary Id.

Parametersosid.id.IdfrontOfficeId the Id of a FrontOffice
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND frontOfficeId not found
NULL_ARGUMENT frontOfficeId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.