OSID Logo
OSID Specifications
hold package
Version 3.0.0
Release Candidate Preview
Interfaceosid.hold.OublietteAdminSession
Implementsosid.OsidSession
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 a Oubliette, a 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 a 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
CompliancemandatoryThis 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 a Oubliette can be created with no records.

Parametersosid.type.Type[]oublietteRecordTypesarray of oubliette record types
Returnboolean true if Oubliette creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT oublietteRecordTypes is null
CompliancemandatoryThis 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[]oublietteRecordTypesarray of oubliette record types
Returnosid.hold.OublietteFormthe oubliette form
ErrorsNULL_ARGUMENT oublietteRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateOubliette
Description

Creates a new Oubliette.

Parametersosid.hold.OublietteFormoublietteFormthe form for this Oubliette
Returnosid.hold.Oubliettethe new Oubliette
ErrorsILLEGAL_STATE oublietteForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT oublietteForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED oublietteForm did not originate from getOublietteFormForCreate()
CompliancemandatoryThis 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 a 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
CompliancemandatoryThis 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.IdoublietteIdthe Id of the Oubliette
Returnosid.hold.OublietteFormthe oubliette form
ErrorsNOT_FOUND oublietteId is not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodupdateOubliette
Description

Updates an existing oubliette.

Parametersosid.hold.OublietteFormoublietteFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE oublietteForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT oublietteForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED oublietteForm did not originate from getOublietteFormForUpdate()
CompliancemandatoryThis 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 a 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
CompliancemandatoryThis method must be implemented.
MethoddeleteOubliette
Description

Deletes a Oubliette.

Parametersosid.id.IdoublietteIdthe Id of the Oubliette to remove
ErrorsNOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodaliasOubliette
Description

Adds an Id to a 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.IdoublietteIdthe Id of a Oubliette
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND oublietteId not found
NULL_ARGUMENT oublietteId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.