OSID Logo
OSID Specifications
room squatting package
Version 3.1.0
Interfaceosid.room.squatting.DeedAdminSession
Implementsosid.OsidSession
Implemented Byosid.room.squatting.batch.DeedBatchAdminSession
Used Byosid.room.squatting.RoomSquattingManager
osid.room.squatting.RoomSquattingProxyManager
Description

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

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

The delete operations delete Deeds. To unmap a Deed from the current Campus, the DeedCampusAssignmentSession should be used. These delete operations attempt to remove the Deed itself thus removing it from all known Campus catalogs.

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

MethodgetCampusId
Description

Gets the Campus Id associated with this session.

Returnosid.id.Id the Campus Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCampus
Description

Gets the Campus associated with this session.

Returnosid.room.Campus the campus
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateDeeds
Description

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

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

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

Gets the deed form for creating new deeds. A new form should be requested for each create transaction.

Parametersosid.id.IdbuildingId the Id of the building
osid.id.IdresourceId the Id of the owner resource
osid.type.Type[]deedRecordTypes array of deed record types
Returnosid.room.squatting.DeedForm the deed form
ErrorsNOT_FOUND buildngId or resourceId is not found
NULL_ARGUMENT buildngId, resourceId, or deedRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get from for requested record types
Compliancemandatory This method must be implemented.
MethodcreateDeed
Description

Creates a new Deed.

Parametersosid.room.squatting.DeedFormdeedForm the form for this Deed
Returnosid.room.squatting.Deed the new Deed
ErrorsILLEGAL_STATE deedForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT deedForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED deedForm did not originate from getDeedFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateDeeds
Description

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

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

Parametersosid.id.IddeedId the Id of the Deed
Returnosid.room.squatting.DeedForm the deed form
ErrorsNOT_FOUND deedId is not found
NULL_ARGUMENT deedId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateDeed
Description

Updates an existing deed.

Parametersosid.room.squatting.DeedFormdeedForm the form containing the elements to be updated
ErrorsILLEGAL_STATE deedForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT deedForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED deedForm did not originate from getDeedFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteDeeds
Description

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

Deletes a Deed.

Parametersosid.id.IddeedId the Id of the Deed to remove
ErrorsNOT_FOUND deedId not found
NULL_ARGUMENT deedId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageDeedAliases
Description

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

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

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