Interface | osid.calendaring.RecurringEventAdminSession | ||
---|---|---|---|
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 | canCreateRecurringEvents | ||
Description |
Tests if this user can create | ||
Return | boolean | false if RecurringEvent creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateRecurringEventWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | recurringEventRecordTypes | array of recurring event types |
Return | boolean | true if RecurringEvent creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | recurringEventRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getRecurringEventFormForCreate | ||
Description |
Gets the recurring event form for creating new recurring events. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | recurringEventRecordTypes | array of recurring event types |
Return | osid.calendaring.RecurringEventForm | the recurring event form | |
Errors | NULL_ARGUMENT | recurringEventRecordTypes 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 | createRecurringEvent | ||
Description |
Creates a new | ||
Parameters | osid.calendaring.RecurringEventForm | recurringEventForm | the form for this RecurringEvent |
Return | osid.calendaring.RecurringEvent | the new RecurringEvent | |
Errors | ILLEGAL_STATE | recurringEventForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | recurringEventForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | recurringEventForm did not originate in a create transaction | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateRecurringEvents | ||
Description |
Tests if this user can update | ||
Return | boolean | false if recurring event modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getRecurringEventFormForUpdate | ||
Description |
Gets the recurring event form for updating an existing recurring event. A new recurring event form should be requested for each update transaction. | ||
Parameters | osid.id.Id | recurringEventId | the Id of the RecurringEvent |
Return | osid.calendaring.RecurringEventForm | the recurring event form | |
Errors | NOT_FOUND | recurringEventId is not found | |
NULL_ARGUMENT | recurringEventId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateRecurringEvent | ||
Description |
Updates an existing recurring event. | ||
Parameters | osid.calendaring.RecurringEventForm | recurringEventForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | recurringEventForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | recurringEventForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | recurringEventForm did not originate in an update
transaction | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteRecurringEvents | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if RecurringEvent deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteRecurringEvent | ||
Description |
Deletes the | ||
Parameters | osid.id.Id | recurringEventId | the Id of the RecurringEvent to delete |
Errors | NOT_FOUND | a RecurringEvent was not found identified by the given
Id | |
NULL_ARGUMENT | recurringEventId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageRecurringEventAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if RecurringEvent aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasRecurringEvent | ||
Description |
Adds an | ||
Parameters | osid.id.Id | recurringEventId | the Id of a RecurringEvent |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | recurringEventId not found | ||
NULL_ARGUMENT | recurringEventId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canScheduleRecurringEvents | ||
Description |
Tests if this user can schedule recurring events. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known recurring event methods in this session will result
in a | ||
Return | boolean | false if recurring event scheduling is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | addSchedule | ||
Description |
Adds a schedule to the given recurring event. | ||
Parameters | osid.id.Id | recurringEventId | a recurring event Id |
osid.id.Id | scheduleId | a schedule Id | |
Return | osid.id.Id | the Id of the schedule | |
Errors | ALREADY_EXISTS | schedule is already part of recurring event | |
NOT_FOUND | recurringEventId or scheduleId is not found | ||
NULL_ARGUMENT | recurringEventId or scheduleId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | removeSchedule | ||
Description |
Removes a schedule from a given recurring event. | ||
Parameters | osid.id.Id | recurringEventId | a recurring event Id |
osid.id.Id | scheduleId | the schedule Id | |
Errors | NOT_FOUND | schedule not part of recurring event | |
NULL_ARGUMENT | recurringEventId or scheduleId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | addSpecificDate | ||
Description |
Adds a specific date to the given recurring event. | ||
Parameters | osid.id.Id | recurringEventId | a recurring event Id |
osid.calendaring.DateTime | date | a date | |
osid.locale.DisplayText | locationDescription | location description | |
Errors | NOT_FOUND | recurringEventId is not found | |
NULL_ARGUMENT | recurringEventId, date , or locationDescription
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | addSpecificDateWithLocation | ||
Description |
Adds a specific date to the given recurring event. | ||
Parameters | osid.id.Id | recurringEventId | a recurring event Id |
osid.calendaring.DateTime | date | a date | |
osid.id.Id | locationId | a location | |
Errors | NOT_FOUND | recurringEventId or locationId is not found | |
NULL_ARGUMENT | recurringEventId, date , or locationId is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | clearSpecificDates | ||
Description |
Clears any specific dates between the given dates inclusive. | ||
Parameters | osid.id.Id | recurringEventId | a recurring event Id |
osid.calendaring.DateTime | from | start date inclusive | |
osid.calendaring.DateTime | to | end date inclusive | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NOT_FOUND | recurringEventId is not found | ||
NULL_ARGUMENT | recurringEventId, from or to is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | addEvent | ||
Description |
Adds another event as part of this recurring event. | ||
Parameters | osid.id.Id | recurringEventId | a recurring event Id |
osid.id.Id | eventId | an event Id | |
Errors | NOT_FOUND | recurringEventId or eventId is not found | |
NULL_ARGUMENT | recurringEventId or eventId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | removeEvent | ||
Description |
Removes an event as part of this recurring event. | ||
Parameters | osid.id.Id | recurringEventId | a recurring event Id |
osid.id.Id | eventId | an event Id | |
Errors | NOT_FOUND | recurringEventId or eventId is not found or
eventId not part of recurringEventId | |
NULL_ARGUMENT | recurringEventId or eventId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | addBlackout | ||
Description |
Adds a blackout to the given recurring event that blocks events in the series. | ||
Parameters | osid.id.Id | recurringEventId | a recurring event Id |
osid.calendaring.DateTime | from | start date inclusive | |
osid.calendaring.DateTime | to | end date inclusive | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NOT_FOUND | recurringEventId is not found | ||
NULL_ARGUMENT | recurringEventId, from or to is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | clearBlackout | ||
Description |
Clears any blackouts between the given dates inclusive. | ||
Parameters | osid.id.Id | recurringEventId | a recurring event Id |
osid.calendaring.DateTime | from | start date inclusive | |
osid.calendaring.DateTime | to | end date inclusive | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NOT_FOUND | recurringEventId is not found | ||
NULL_ARGUMENT | recurringEventId, from or to is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |