public interface OffsetEventEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply OffsetEventEnablers
to OffsetEvents.
An OffsetEvent
with
multiple OffsetEventEnablers
means any positive rule
evaluation across the enablers result in an effective OffsetEvent.
Modifier and Type | Method and Description |
---|---|
void |
assignOffsetEventEnablerToOffsetEvent(Id offsetEventEnablerId,
Id offsetEventId)
Adds an existing
OffsetEventEnabler to an
OffsetEvents. |
boolean |
canAssignOffsetEventEnablerRules()
Tests if this user can alter offset event enabler/offset event
mappings.
|
boolean |
canSequenceOffsetEventEnablers()
Tests if this user can order
OffsetEventEnablers. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
void |
moveOffsetEventEnablerAhead(Id offsetEventEnablerId,
Id offsetEventId,
Id referenceId)
Reorders offset event enablers for an offset event by moving the
specified offset event enabler in front of a reference offset event
enabler.
|
void |
moveOffsetEventEnablerBehind(Id offsetEventEnablerId,
Id offsetEventId,
Id referenceId)
Reorders offset event enablers for an offset event by moving the
specified offset event enabler behind a reference offset event
enabler.
|
void |
orderOffsetEventEnablers(Id[] offsetEventEnablerIds,
Id offsetEventId)
Reorders a set of offset event enablers for an offset event.
|
void |
unassignOffsetEventEnablerFromOffsetEvent(Id offsetEventEnablerId,
Id offsetEventId)
Removes an
OffsetEventEnabler from an
OffsetEvent. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCalendarId()
Calendar
Id
associated with
this session. Calendar Id
associated with this sessionmandatory
- This method must be implemented. Calendar getCalendar() throws OperationFailedException, PermissionDeniedException
Calendar
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canAssignOffsetEventEnablerRules()
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. void assignOffsetEventEnablerToOffsetEvent(Id offsetEventEnablerId, Id offsetEventId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
OffsetEventEnabler
to an
OffsetEvents.
offsetEventEnablerId
- the Id
of the
OffsetEventEnabler
offsetEventId
- the Id
of the OffsetEvent
AlreadyExistsException
- offsetEventEnablerId
already applied to offsetEventId
NotFoundException
- offsetEventEnablerId
or offsetEventId
not foundNullArgumentException
- offsetEventEnablerId
or offsetEventId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignOffsetEventEnablerFromOffsetEvent(Id offsetEventEnablerId, Id offsetEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OffsetEventEnabler
from an
OffsetEvent.
offsetEventEnablerId
- the Id
of the
OffsetEventEnabler
offsetEventId
- the Id
of the OffsetEvent
NotFoundException
- offsetEventEnablerId
or offsetEventId
not found or
offsetEventEnablerId
not applied to
offsetEventId
NullArgumentException
- offsetEventEnablerId
or offsetEventId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceOffsetEventEnablers()
OffsetEventEnablers.
A
return of true does not guarantee successful authorization. A return
of false indicates that it is known sequencing operations will result
in a PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer sequencing operations to an
unauthorized user. false
if OffsetEventEnabler
ordering is not authorized, true
otherwisemandatory
- This method must be implemented. void moveOffsetEventEnablerAhead(Id offsetEventEnablerId, Id offsetEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
offsetEventEnablerId
- the Id
of an
OffsetEventEnabler
offsetEventId
- the Id
of an OffsetEvent
referenceId
- the reference offset event enabler Id
NotFoundException
- offsetEventEnablerId,
offsetEventId,
or referenceId
not found
or, offsetEventEnablerId
or referenceId
not related to offsetEventId
NullArgumentException
- offsetEventEnablerId,
offsetEventId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveOffsetEventEnablerBehind(Id offsetEventEnablerId, Id offsetEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
offsetEventEnablerId
- the Id
of an
OffsetEventEnabler
offsetEventId
- the Id
of an OffsetEvent
referenceId
- the reference offset event enabler Id
NotFoundException
- offsetEventEnablerId,
offsetEventId,
or referenceId
not found
or, offsetEventEnablerId
or referenceId
not related to offsetEventId
NullArgumentException
- offsetEventEnablerId,
offsetEventId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderOffsetEventEnablers(Id[] offsetEventEnablerIds, Id offsetEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
offsetEventEnablerIds
- the Ids
for a set of
OffsetEventEnablers
offsetEventId
- the Id
of an OffsetEvent
NotFoundException
- offsetEventId
not
found or, an offsetEventEnablerId
not related
to offsetEventId
NullArgumentException
- offsetEventEnablerIds
or offsetEventId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.