| Interface | osid.calendaring.EventAdminSession | ||
|---|---|---|---|
| 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 | 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 | canCreateEvents | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Event creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateEventWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | eventRecordTypes | array of event record types |
| Return | boolean | true if Event creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | eventRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getEventFormForCreate | ||
| Description |
Gets the event form for creating new events. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | eventRecordTypes | array of event record types |
| Return | osid.calendaring.EventForm | the event form | |
| Errors | NULL_ARGUMENT | eventRecordTypes 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 | createEvent | ||
| Description |
Creates a new | ||
| Parameters | osid.calendaring.EventForm | eventForm | the form for this Event |
| Return | osid.calendaring.Event | the new Event | |
| Errors | ILLEGAL_STATE | eventForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | eventForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | eventForm did not originate from
getEventFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateEvents | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if event modification is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getEventFormForUpdate | ||
| Description |
Gets the event form for updating an existing event. A new event form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | eventId | the Id of the Event |
| Return | osid.calendaring.EventForm | the event form | |
| Errors | NOT_FOUND | eventId is not found | |
| NULL_ARGUMENT | eventId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateEvent | ||
| Description |
Updates an existing event. | ||
| Parameters | osid.calendaring.EventForm | eventForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | eventForm already used in an update transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | eventForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | eventForm did not originate from
getEventFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteEvents | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Event deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteEvent | ||
| Description |
Deletes the | ||
| Parameters | osid.id.Id | eventId | the Id of the Event to delete |
| Errors | NOT_FOUND | an Event was not found identified by the given Id
| |
| NULL_ARGUMENT | eventId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageEventAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Event aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasEvent | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | eventId | the Id of an Event |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | eventId not found | ||
| NULL_ARGUMENT | eventId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |