Interface RecurringEventCalendarAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign RecurringEvents to
Calendars . A RecurringEvent may map to multiple
Calendars and removing the last reference to a RecurringEvent is
the equivalent of deleting it. Each Calendar may have its own
authorizations governing who is allowed to operate on it.
Moving or adding a reference of a RecurringEvent to another
Calendar is not a copy operation (eg: does not change its
Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignRecurringEventToCalendar(Id recurringEventId, Id calendarId) Adds an existingRecurringEventto aCalendar.booleanTests if this user can alter recurring event/calendar mappings.booleancanAssignRecurringEventsToCalendar(Id calendarId) Tests if this user can alter recurring event/calendar mappings.getAssignableCalendarIds(Id calendarId) Gets a list of calendars including and under the given calendar node in which any recurring event can be assigned.getAssignableCalendarIdsForRecurringEvent(Id calendarId, Id recurringEventId) Gets a list of calendars including and under the given calendar node in which a specific recurring event can be assigned.voidreassignRecurringEventToCalendar(Id recurringEventId, Id fromCalendarId, Id toCalendarId) Moves aRecurringEventfrom oneCalendarto another.voidunassignRecurringEventFromCalendar(Id recurringEventId, Id calendarId) Removes aRecurringEventfrom aCalendar.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
canAssignRecurringEvents
boolean canAssignRecurringEvents()Tests if this user can alter recurring event/calendar mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canAssignRecurringEventsToCalendar
Tests if this user can alter recurring event/calendar mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.- Parameters:
calendarId- theIdof theCalendar- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-calendarIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableCalendarIds
Gets a list of calendars including and under the given calendar node in which any recurring event can be assigned.- Parameters:
calendarId- theIdof theCalendar- Returns:
- list of assignable calendar
Ids - Throws:
NullArgumentException-calendarIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableCalendarIdsForRecurringEvent
IdList getAssignableCalendarIdsForRecurringEvent(Id calendarId, Id recurringEventId) throws OperationFailedException Gets a list of calendars including and under the given calendar node in which a specific recurring event can be assigned.- Parameters:
calendarId- theIdof theCalendarrecurringEventId- theIdof therecurringEventId- Returns:
- list of assignable calendar
Ids - Throws:
NullArgumentException-calendarIdorrecurringEventIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignRecurringEventToCalendar
void assignRecurringEventToCalendar(Id recurringEventId, Id calendarId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingRecurringEventto aCalendar.- Parameters:
recurringEventId- theIdof theRecurringEventcalendarId- theIdof theCalendar- Throws:
AlreadyExistsException-recurringEventIdis already assigned tocalendarIdNotFoundException-recurringEventIdorcalendarIdnot foundNullArgumentException-recurringEventIdorcalendarIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignRecurringEventFromCalendar
void unassignRecurringEventFromCalendar(Id recurringEventId, Id calendarId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aRecurringEventfrom aCalendar.- Parameters:
recurringEventId- theIdof theRecurringEventcalendarId- theIdof theCalendar- Throws:
NotFoundException-recurringEventIdorcalendarIdnot found orrecurringEventIdnot assigned tocalendarIdNullArgumentException-recurringEventIdorcalendarIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignRecurringEventToCalendar
void reassignRecurringEventToCalendar(Id recurringEventId, Id fromCalendarId, Id toCalendarId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aRecurringEventfrom oneCalendarto another. Mappings to otherCalendarsare unaffected.- Parameters:
recurringEventId- theIdof theRecurringtEventfromCalendarId- theIdof the currentCalendartoCalendarId- theIdof the destinationCalendar- Throws:
AlreadyExistsException-recurringEventIdalready assigned totoCalendarIdNotFoundException-recurringEventId, fromCalendarId, ortoCalendarIdnot found orrecurringEventIdnot mapped tofromCalendarIdNullArgumentException-recurringEventId, fromCalendarId, ortoCalendarIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-