Interface | osid.hierarchy.HierarchyAdminSession | ||
---|---|---|---|
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 | canCreateHierarchies | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Hierarchy creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateHierarchyWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | hierarchyRecordTypes | array of hierarchy record types |
Return | boolean | true if Hierarchy creation using the
specified Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | hierarchyRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getHierarchyFormForCreate | ||
Description |
Gets the hierarchy form for creating new hierarchies. A
new form should be requested for each create transaction.
This method is used for creating new hierarchies, where
only the | ||
Parameters | osid.type.Type[] | hierarchyRecordTypes | array of hierarchy record types |
Return | osid.hierarchy.HierarchyForm | the hierarchy form | |
Errors | NULL_ARGUMENT | hierarchyRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createHierarchy | ||
Description |
Creates a new | ||
Parameters | osid.hierarchy.HierarchyForm | hierarchyForm | the form for this Hierarchy |
Return | osid.hierarchy.Hierarchy | the new Hierarchy | |
Errors | ILLEGAL_STATE | hierarchyForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | hierarchyForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | hierarchyForm did not originate from
getHierarchyFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateHierarchies | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Hierarchy modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getHierarchyFormForUpdate | ||
Description |
Gets the hierarchy form for updating an existing hierarchy. A new hierarchy form should be requested for each update transaction. | ||
Parameters | osid.id.Id | hierarchyId | the Id of the Hierarchy |
Return | osid.hierarchy.HierarchyForm | the hierarchy form | |
Errors | NOT_FOUND | hierarchyId is not found | |
NULL_ARGUMENT | hierarchyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateHierarchy | ||
Description |
Updates an existing hierarchy. | ||
Parameters | osid.hierarchy.HierarchyForm | hierarchyForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | hierarchyForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | hierarchyId or hierarchyForm is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | hierarchyForm did not originate from
getHierarchyFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteHierarchies | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Hierarchy deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteHierarchy | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | hierarchyId | the Id of the Hierarchy to remove |
Errors | NOT_FOUND | hierarchyId not found | |
NULL_ARGUMENT | hierarchyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageHierarchyAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Hierarchy aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasHierarchy | ||
Description |
Adds an | ||
Parameters | osid.id.Id | hierarchyId | the Id of an Hierarchy |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | hierarchyId not found | ||
NULL_ARGUMENT | hierarchyId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |