public interface OffsetEventEnablerCalendarAssignmentSession extends OsidSession
This session provides methods to re-assign OffsetEventEnabler
to Calendar
mappings. An OffsetEventEnabler
may appear in multiple Calendar
objects and
removing the last reference to an OffsetEventEnabler
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 an OffsetEventEnabler
to another
Calendar
is not a copy operation (eg: does not change its
Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignOffsetEventEnablerToCalendar(Id offsetEventEnablerId,
Id calendarId)
Adds an existing
OffsetEventEnabler to an
Calendar. |
boolean |
canAssignOffsetEventEnablers()
Tests if this user can alter offset event enabler/calendar mappings.
|
boolean |
canAssignOffsetEventEnablersToCalendar(Id calendarId)
Tests if this user can alter offset event enabler/calendar mappings.
|
IdList |
getAssignableCalendarIds(Id calendarId)
Gets a list of calendars including and under the given calendar node
in which any offset event enabler can be assigned.
|
IdList |
getAssignableCalendarIdsForOffsetEventEnabler(Id calendarId,
Id eventEnablerId)
Gets a list of calendars including and under the given calendar node
in which a specific offset event enabler can be assigned.
|
void |
unassignOffsetEventEnablerFromCalendar(Id offsetEventEnablerId,
Id calendarId)
Removes an
OffsetEventEnabler from an Calendar. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignOffsetEventEnablers()
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canAssignOffsetEventEnablersToCalendar(Id calendarId)
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users.calendarId
- the Id
of the Calendar
false
if mapping is not authorized, true
otherwiseNullArgumentException
- calendarId
is
null
mandatory
- This method must be implemented. IdList getAssignableCalendarIds(Id calendarId) throws OperationFailedException
calendarId
- the Id
of the Calendar
Ids
NullArgumentException
- calendarId
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableCalendarIdsForOffsetEventEnabler(Id calendarId, Id eventEnablerId) throws OperationFailedException
calendarId
- the Id
of the Calendar
eventEnablerId
- the Id
of the
OffsetEventEnabler
Ids
NullArgumentException
- calendarId
or
eventEnablerId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignOffsetEventEnablerToCalendar(Id offsetEventEnablerId, Id calendarId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
OffsetEventEnabler
to an
Calendar.
offsetEventEnablerId
- the Id
of the
OffsetEventEnabler
calendarId
- the Id
of the Calendar
AlreadyExistsException
- offsetEventEnablerId
already mapped to calendarId
NotFoundException
- offsetEventEnablerId
or calendarId
not foundNullArgumentException
- offsetEventEnablerId
or calendarId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignOffsetEventEnablerFromCalendar(Id offsetEventEnablerId, Id calendarId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OffsetEventEnabler
from an Calendar.
offsetEventEnablerId
- the Id
of the
OffsetEventEnabler
calendarId
- the Id
of the Calendar
NotFoundException
- offsetEventEnablerId
or calendarId
not found or
offsetEventEnablerId
not assigned to calendarId
NullArgumentException
- offsetEventEnablerId
or calendarId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.