Interface SupersedingEventEnablerCalendarAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign
SupersedingEventEnabler to Calendar mappings. A
SupersedingEventEnabler may appear in multiple Calendar objects
and removing the last reference to a SupersedingEventEnabler is
the equivalent of deleting it. Each Calendar may have its own
authorizations governing who is allowed to operate on it.
Adding a reference of a SupersedingEventEnabler to another
Calendar is not a copy operation (eg: does not change its
Id).
Like all OsidSessions,
SupersedingEventEnablerCalendarAssignmentSessions are dedicated to single
processing threads and a single authenticated user.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignSupersedingEventEnablerToCalendar(Id supersedingEventEnablerId, Id calendarId) Adds an existingSupersedingEventEnablerto anCalendar.booleanTests if this user can alter superseding event enabler/calendar mappings.booleancanAssignSupersedingEventEnablersToCalendar(Id calendarId) Tests if this user can alter superseding event enabler/calendar mappings.getAssignableCalendarIds(Id calendarId) Gets a list of calendars including and under the given calendar node in which any superseding event enabler can be assigned.getAssignableCalendarIdsForSupersedingEventEnabler(Id calendarId, Id supersedingEventEnablerId) Gets a list of calendars including and under the given calendar node in which a specific superseding event enabler can be assigned.voidreassignSupersedingEventEnablerToCalendar(Id supersedingEventEnablerId, Id fromCalendarId, Id toCalendarId) Moves aSupersedingEventEnablerfrom oneCalendarto another.voidunassignSupersedingEventEnablerFromCalendar(Id supersedingEventEnablerId, Id calendarId) Removes aSupersedingEventEnablerfrom anCalendar.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
Method Details
-
canAssignSupersedingEventEnablers
boolean canAssignSupersedingEventEnablers()Tests if this user can alter superseding event enabler/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 lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canAssignSupersedingEventEnablersToCalendar
Tests if this user can alter superseding event enabler/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 lookup 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 superseding event enabler 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.
-
getAssignableCalendarIdsForSupersedingEventEnabler
IdList getAssignableCalendarIdsForSupersedingEventEnabler(Id calendarId, Id supersedingEventEnablerId) throws OperationFailedException Gets a list of calendars including and under the given calendar node in which a specific superseding event enabler can be assigned.- Parameters:
calendarId- theIdof theCalendarsupersedingEventEnablerId- theIdof theSupersedingEventEnabler- Returns:
- list of assignable calendar
Ids - Throws:
NullArgumentException-calendarIdorsupersedingEventEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignSupersedingEventEnablerToCalendar
void assignSupersedingEventEnablerToCalendar(Id supersedingEventEnablerId, Id calendarId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingSupersedingEventEnablerto anCalendar.- Parameters:
supersedingEventEnablerId- theIdof theSupersedingEventEnablercalendarId- theIdof theCalendar- Throws:
AlreadyExistsException-supersedingEventEnablerIdalready assigned tocalendarIdNotFoundException-supersedingEventEnablerIdorcalendarIdnot foundNullArgumentException-supersedingEventEnablerIdorcalendarIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignSupersedingEventEnablerFromCalendar
void unassignSupersedingEventEnablerFromCalendar(Id supersedingEventEnablerId, Id calendarId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aSupersedingEventEnablerfrom anCalendar.- Parameters:
supersedingEventEnablerId- theIdof theSupersedingEventEnablercalendarId- theIdof theCalendar- Throws:
NotFoundException-supersedingEventEnablerIdorcalendarIdnot found orsupersedingEventEnablerIdnot assigned tocalendarIdNullArgumentException-supersedingEventEnablerIdorcalendarIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignSupersedingEventEnablerToCalendar
void reassignSupersedingEventEnablerToCalendar(Id supersedingEventEnablerId, Id fromCalendarId, Id toCalendarId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aSupersedingEventEnablerfrom oneCalendarto another. Mappings to otherCalendarsare unaffected.- Parameters:
supersedingEventEnablerId- theIdof theSupersedingEventEnablerfromCalendarId- theIdof the currentCalendartoCalendarId- theIdof the destinationCalendar- Throws:
AlreadyExistsException-supersedingEventEnablerIdalready assigned totoCalendarIdNotFoundException-supersedingEventEnablerId, fromCalendarId,supersedingEventEnablerIdnot mapped tofromCalendarIdNullArgumentException-supersedingEventEnablerId, fromCalendarId, ortoCalendarIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-