Interface | osid.resourcing.AvailabilityAdminSession | ||
---|---|---|---|
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 | getFoundryId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Foundry Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getFoundry | ||
Description |
Gets the | ||
Return | osid.resourcing.Foundry | the foundry | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAvailabilities | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Availability creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAvailabilityWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | availabilityRecordTypes | array of availability record types |
Return | boolean | true if Availability creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | availabilityRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAvailabilityFormForCreate | ||
Description |
Gets the availability form for creating new availabilities. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | resourceId | the Id for the resource |
osid.id.Id | jobId | the Id for the job | |
osid.type.Type[] | availabilityRecordTypes | array of availability record types | |
Return | osid.resourcing.AvailabilityForm | the availability form | |
Errors | NOT_FOUND | resourceId or jobId is not found | |
NULL_ARGUMENT | resourceId, jobId, or availabilityRecordTypes
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 | createAvailability | ||
Description |
Creates a new | ||
Parameters | osid.resourcing.AvailabilityForm | availabilityForm | the form for this Availability |
Return | osid.resourcing.Availability | the new Availability | |
Errors | ILLEGAL_STATE | availabilityForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | availabilityForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | availabilityForm did not originate from
getAvailabilityFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateAvailabilities | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Availability modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getAvailabilityFormForUpdate | ||
Description |
Gets the availability form for updating an existing availability. A new availability form should be requested for each update transaction. | ||
Parameters | osid.id.Id | availabilityId | the Id of the Availability |
Return | osid.resourcing.AvailabilityForm | the availability form | |
Errors | NOT_FOUND | availabilityId is not found | |
NULL_ARGUMENT | availabilityId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateAvailability | ||
Description |
Updates an existing availability. | ||
Parameters | osid.resourcing.AvailabilityForm | availabilityForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | availabilityForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | availabilityForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | availabilityForm did not originate from
getAvailabilityFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteAvailabilities | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Availability deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteAvailability | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | availabilityId | the Id of the Availability to remove |
Errors | NOT_FOUND | availabilityId not found | |
NULL_ARGUMENT | availabilityId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageAvailabilityAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Availability aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasAvailability | ||
Description |
Adds an | ||
Parameters | osid.id.Id | availabilityId | the Id of an Availability |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | availabilityId not found | ||
NULL_ARGUMENT | availabilityId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |