Interface | osid.calendaring.OffsetEventAdminSession | ||
---|---|---|---|
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 | canCreateOffsetEvents | ||
Description |
Tests if this user can create | ||
Return | boolean | false if OffsetEvent creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateOffsetEventWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | offsetEventRecordTypes | array of offset event record types |
Return | boolean | true if OffsetEvent creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | offsetEventRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getOffsetEventFormForCreate | ||
Description |
Gets the offset event form for creating new offset events. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | offsetEventRecordTypes | array of offset event record types |
Return | osid.calendaring.OffsetEventForm | the offset event form | |
Errors | NULL_ARGUMENT | offsetEventRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested recod types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createOffsetEvent | ||
Description |
Creates a new | ||
Parameters | osid.calendaring.OffsetEventForm | offsetEventForm | the form for this OffsetEvent |
Return | osid.calendaring.OffsetEvent | the new OffsetEvent | |
Errors | ILLEGAL_STATE | offsetEventForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | offsetEventForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | offsetEventForm did not originate from
getOffsetEventFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateOffsetEvents | ||
Description |
Tests if this user can update | ||
Return | boolean | false if offset event modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getOffsetEventFormForUpdate | ||
Description |
Gets the offset event form for updating an existing offset event. A new offset event form should be requested for each update transaction. | ||
Parameters | osid.id.Id | offsetEventId | the Id of the OffsetEvent |
Return | osid.calendaring.OffsetEventForm | the offset event form | |
Errors | NOT_FOUND | offsetEventId is not found | |
NULL_ARGUMENT | offsetEventId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateOffsetEvent | ||
Description |
Updates an existing offset event. | ||
Parameters | osid.calendaring.OffsetEventForm | offsetEventForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | offsetEventForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | offsetEventForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | offsetEventForm did not originate from
getOffsetEventFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteOffsetEvents | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if OffsetEvent deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteOffsetEvent | ||
Description |
Deletes the | ||
Parameters | osid.id.Id | offsetEventId | the Id of the OffsetEvent to delete |
Errors | NOT_FOUND | an OffsetEvent was not found identified by the given
Id | |
NULL_ARGUMENT | offsetEventId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageOffsetEventAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if OffsetEvent aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasOffsetEvent | ||
Description |
Adds an | ||
Parameters | osid.id.Id | offsetEventId | the Id of an OffsetEvent |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | offsetEventId not found | ||
NULL_ARGUMENT | offsetEventId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |