| Interface | osid.calendaring.TimePeriodAdminSession | ||
|---|---|---|---|
| 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 | getCalendarId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Calendar Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCalendar | ||
| Description |
Gets the | ||
| Return | osid.calendaring.Calendar | the Calendar associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateTimePeriods | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if TimePeriod creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateTimePeriodWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | timePeriodRecordTypes | array of time period record types |
| Return | boolean | true if TimePeriod creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | timePeriodRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTimePeriodFormForCreate | ||
| Description |
Gets the time period form for creating new time periods. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | timePeriodRecordTypes | array of time period record types |
| Return | osid.calendaring.TimePeriodForm | the time period form | |
| Errors | NULL_ARGUMENT | timePeriodRecordTypes 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 | createTimePeriod | ||
| Description |
Creates a new | ||
| Parameters | osid.calendaring.TimePeriodForm | timePeriodForm | the forms for this TimePeriod |
| Return | osid.calendaring.TimePeriod | the new TimePeriod | |
| Errors | ILLEGAL_STATE | timePeriodForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | timePeriodForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | timePeriodForm did not originate from
getTimePeriodForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateTimePeriods | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if time period modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTimePeriodFormForUpdate | ||
| Description |
Gets the time period form for updating an existing time period. A new time period form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | timePeriodId | the Id of the TimePeriod |
| Return | osid.calendaring.TimePeriodForm | the time period form | |
| Errors | NOT_FOUND | timePeriodId is not found | |
| NULL_ARGUMENT | timePeriodid is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateTimePeriod | ||
| Description |
Updates an existing tiem period. | ||
| Parameters | osid.calendaring.TimePeriodForm | timePeriodForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | timePeriodForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | timePeriodForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | timePeriodForm did not originate from
getTimePeriodForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteTimePeriods | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if TimePeriod deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteTimePeriod | ||
| Description |
Deletes the | ||
| Parameters | osid.id.Id | timePeriodId | the Id of the TimePeriod to delete |
| Errors | NOT_FOUND | a TimePeriod was not found identified by the given Id
| |
| NULL_ARGUMENT | timePeriodId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageTimePeriodAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if TimePeriod aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasTimePeriod | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | timePeriodId | the Id of a TimePeriod |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | timePeriodId not found | ||
| NULL_ARGUMENT | timePeriodId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | addExceptionEvent | ||
| Description |
Adds an exception event to a time period. Time period exception events govern exceptions to recurring events mapped to a time period. | ||
| Parameters | osid.id.Id | timePeriodId | the Id of a TimePeriod |
osid.id.Id | eventId | an exception event Id | |
| Errors | ALREADY_EXISTS | event is already part of the time period | |
| NOT_FOUND | timePeriodId or eventId is not found | ||
| NULL_ARGUMENT | timePeriodId or eventId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | removeExceptionEvent | ||
| Description |
Removes an exception event from a time period. | ||
| Parameters | osid.id.Id | timePeriodId | the Id of a TimePeriod |
osid.id.Id | eventId | an exception event Id | |
| Errors | NOT_FOUND | eventId not an exception in timePeriodId | |
| NULL_ARGUMENT | timePeriodId or eventId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |