Interface | osid.resource.ResourceRelationshipAdminSession | ||
---|---|---|---|
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 | getBinId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Bin Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getBin | ||
Description |
Gets the | ||
Return | osid.resource.Bin | the bin | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateResourceRelationships | ||
Description |
Tests if this user can create | ||
Return | boolean | false if ResourceRelationship creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateResourceRelationshipWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | resourceRelationshipRecordTypes | array of resource relationship types |
Return | boolean | true if ResourceRelationship creation using
the specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | resourceRelationshipRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getResourceRelationshipFormForCreate | ||
Description |
Gets the relationship form for creating new relationships. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | sourceResourceId | the Id of the source Resource |
osid.id.Id | destinationResourceId | the Id of the destination Resource | |
osid.type.Type[] | resourceRelationshipRecordTypes | array of resource relationship types | |
Return | osid.resource.ResourceRelationshipForm | the relationship form | |
Errors | NOT_FOUND | sourceResourceId or destinationResourceId is
not found | |
NULL_ARGUMENT | resourceId or peerResourceId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form with requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createResourceRelationship | ||
Description |
Creates a new | ||
Parameters | osid.resource.ResourceRelationshipForm | resourceRelationshipForm | the form for this ResourceRelationship |
Return | osid.resource.ResourceRelationship | the new ResourceRelationship | |
Errors | ILLEGAL_STATE | resourceRelationshipForm already used in a create
transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | resourceId, peerResourceId or
resourceRelationshipForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | resourceRelationshipForm did not originate from
getResourceRelationshipFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateResourceRelationships | ||
Description |
Tests if this user can update | ||
Return | boolean | false if relationship modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getResourceRelationshipFormForUpdate | ||
Description |
Gets the relationship form for updating an existing relationship. A new relationship form should be requested for each update transaction. | ||
Parameters | osid.id.Id | resourceRelationshipId | the Id of the ResourceRelationship |
Return | osid.resource.ResourceRelationshipForm | the relationship form | |
Errors | NOT_FOUND | resourceRelationshipId not found | |
NULL_ARGUMENT | resourceRelationshipId or aliasId is
null | ||
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateResourceRelationship | ||
Description |
Updates an existing relationship. | ||
Parameters | osid.resource.ResourceRelationshipForm | resourceRelationshipForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | resourceRelationshipForm already used in an update
transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | resourceRelationshipForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | resourceRelationshipForm did not originate from
getResourceRelationshipFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteResourceRelationships | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if ResourceRelationship deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteResourceRelationship | ||
Description |
Deletes the | ||
Parameters | osid.id.Id | resourceRelationshipId | the Id of the ResourceRelationship to delete |
Errors | NOT_FOUND | a ResourceRelationship was not found identified by the given
Id | |
NULL_ARGUMENT | resourceRelationshipId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageResourceRelationshipAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if ResourceRelationship aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasResourceRelationship | ||
Description |
Adds an | ||
Parameters | osid.id.Id | resourceRelationshipId | the Id of a ResourceRelationship |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | resourceRelationshipId not found | ||
NULL_ARGUMENT | resourceRelationshipId or aliasId is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |