Interface | osid.workflow.OfficeAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create an For updates, The delete operations delete This session includes an | ||
Method | canCreateOffices | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Office creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateOfficeWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | officeRecordTypes | array of office record types |
Return | boolean | true if Office creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | officeRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getOfficeFormForCreate | ||
Description |
Gets the office form for creating new offices. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | officeRecordTypes | array of office record types |
Return | osid.workflow.OfficeForm | the office form | |
Errors | NULL_ARGUMENT | officeRecordTypes 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 | createOffice | ||
Description |
Creates a new | ||
Parameters | osid.workflow.OfficeForm | officeForm | the form for this Office |
Return | osid.workflow.Office | the new Office | |
Errors | ILLEGAL_STATE | officeForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | officeForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | officeForm did not originate from
getOfficeFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateOffices | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Office modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getOfficeFormForUpdate | ||
Description |
Gets the office form for updating an existing office. A new office form should be requested for each update transaction. | ||
Parameters | osid.id.Id | officeId | the Id of the Office |
Return | osid.workflow.OfficeForm | the office form | |
Errors | NOT_FOUND | officeId is not found | |
NULL_ARGUMENT | officeId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateOffice | ||
Description |
Updates an existing office | ||
Parameters | osid.workflow.OfficeForm | officeForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | officeForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | officeForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | officeForm did not originate from
getOfficeFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteOffices | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Office deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteOffice | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | officeId | the Id of the Office to remove |
Errors | NOT_FOUND | officeId not found | |
NULL_ARGUMENT | officeId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageOfficeAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Office aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasOffice | ||
Description |
Adds an | ||
Parameters | osid.id.Id | officeId | the Id of an Office |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | officeId not found | ||
NULL_ARGUMENT | officeId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |