OSID Logo
OSID Specifications
hold package
Version 3.1.0
Interfaceosid.hold.OublietteAdminSession
Implementsosid.OsidSession
Implemented Byosid.hold.batch.OublietteBatchAdminSession
Used Byosid.hold.HoldManager
osid.hold.HoldProxyManager
Description

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

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

The delete operations delete Oubliettes.

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

MethodcanCreateOubliette
Description

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

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

Parametersosid.type.Type[]oublietteRecordTypes array of oubliette record types
Returnboolean true if Oubliette creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT oublietteRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetOublietteFormForCreate
Description

Gets the oubliette form for creating new oubliettes. A new form should be requested for each create transaction.

Parametersosid.type.Type[]oublietteRecordTypes array of oubliette record types
Returnosid.hold.OublietteForm the oubliette form
ErrorsNULL_ARGUMENT oublietteRecordTypes 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.
MethodcreateOubliette
Description

Creates a new Oubliette.

Parametersosid.hold.OublietteFormoublietteForm the form for this Oubliette
Returnosid.hold.Oubliette the new Oubliette
ErrorsILLEGAL_STATE oublietteForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT oublietteForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED oublietteForm did not originate from getOublietteFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateOubliettes
Description

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

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

Parametersosid.id.IdoublietteId the Id of the Oubliette
Returnosid.hold.OublietteForm the oubliette form
ErrorsNOT_FOUND oublietteId is not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodupdateOubliette
Description

Updates an existing oubliette.

Parametersosid.hold.OublietteFormoublietteForm the form containing the elements to be updated
ErrorsILLEGAL_STATE oublietteForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT oublietteForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED oublietteForm did not originate from getOublietteFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteOubliettes
Description

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

Deletes an Oubliette.

Parametersosid.id.IdoublietteId the Id of the Oubliette to remove
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageOublietteAliases
Description

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

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

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