Interface | osid.room.squatting.DeedAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
Method | getCampusId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Campus Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCampus | ||
Description |
Gets the | ||
Return | osid.room.Campus | the campus | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateDeeds | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Deed creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateDeedWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | deedRecordTypes | array of deed record types |
Return | boolean | true if Deed creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | deedRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getDeedFormForCreate | ||
Description |
Gets the deed form for creating new deeds. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | buildingId | the Id of the building |
osid.id.Id | resourceId | the Id of the owner resource | |
osid.type.Type[] | deedRecordTypes | array of deed record types | |
Return | osid.room.squatting.DeedForm | the deed form | |
Errors | NOT_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 | ||
Compliance | mandatory | This method must be implemented. | |
Method | createDeed | ||
Description |
Creates a new | ||
Parameters | osid.room.squatting.DeedForm | deedForm | the form for this Deed |
Return | osid.room.squatting.Deed | the new Deed | |
Errors | ILLEGAL_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() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateDeeds | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Deed modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getDeedFormForUpdate | ||
Description |
Gets the deed form for updating an existing deed. A new deed form should be requested for each update transaction. | ||
Parameters | osid.id.Id | deedId | the Id of the Deed |
Return | osid.room.squatting.DeedForm | the deed form | |
Errors | NOT_FOUND | deedId is not found | |
NULL_ARGUMENT | deedId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateDeed | ||
Description |
Updates an existing deed. | ||
Parameters | osid.room.squatting.DeedForm | deedForm | the form containing the elements to be updated |
Errors | ILLEGAL_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() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteDeeds | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Deed deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteDeed | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | deedId | the Id of the Deed to remove |
Errors | NOT_FOUND | deedId not found | |
NULL_ARGUMENT | deedId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageDeedAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Deed aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasDeed | ||
Description |
Adds an | ||
Parameters | osid.id.Id | deedId | the Id of a Deed |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_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 | ||
Compliance | mandatory | This method must be implemented. |