Interface OffsetEventEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, 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 .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignOffsetEventEnablerToOffsetEvent(Id offsetEventEnablerId, Id offsetEventId) Adds an existingOffsetEventEnablerto anOffsetEvents.booleanTests if this user can alter offset event enabler/offset event mappings.booleanTests if this user can orderOffsetEventEnablers.Gets theCalendarassociated with this session.Gets theCalendarIdassociated with this session.voidmoveOffsetEventEnablerAhead(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.voidmoveOffsetEventEnablerBehind(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.voidorderOffsetEventEnablers(Id[] offsetEventEnablerIds, Id offsetEventId) Reorders a set of offset event enablers for an offset event.voidunassignOffsetEventEnablerFromOffsetEvent(Id offsetEventEnablerId, Id offsetEventId) Removes anOffsetEventEnablerfrom anOffsetEvent.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
-
getCalendarId
Id getCalendarId()Gets theCalendarIdassociated with this session.- Returns:
- the
Calendar Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCalendar
Gets theCalendarassociated with this session.- Returns:
- the calendar
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignOffsetEventEnablerRules
boolean canAssignOffsetEventEnablerRules()Tests if this user can alter offset event enabler/offset event 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.
-
assignOffsetEventEnablerToOffsetEvent
void assignOffsetEventEnablerToOffsetEvent(Id offsetEventEnablerId, Id offsetEventId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingOffsetEventEnablerto anOffsetEvents.- Parameters:
offsetEventEnablerId- theIdof theOffsetEventEnableroffsetEventId- theIdof theOffsetEvent- Throws:
AlreadyExistsException-offsetEventEnablerIdalready applied tooffsetEventIdNotFoundException-offsetEventEnablerIdoroffsetEventIdnot foundNullArgumentException-offsetEventEnablerIdoroffsetEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignOffsetEventEnablerFromOffsetEvent
void unassignOffsetEventEnablerFromOffsetEvent(Id offsetEventEnablerId, Id offsetEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anOffsetEventEnablerfrom anOffsetEvent.- Parameters:
offsetEventEnablerId- theIdof theOffsetEventEnableroffsetEventId- theIdof theOffsetEvent- Throws:
NotFoundException-offsetEventEnablerIdoroffsetEventIdnot found oroffsetEventEnablerIdnot applied tooffsetEventIdNullArgumentException-offsetEventEnablerIdoroffsetEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceOffsetEventEnablers
boolean canSequenceOffsetEventEnablers()Tests if this user can orderOffsetEventEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifOffsetEventEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveOffsetEventEnablerAhead
void moveOffsetEventEnablerAhead(Id offsetEventEnablerId, Id offsetEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders offset event enablers for an offset event by moving the specified offset event enabler in front of a reference offset event enabler.- Parameters:
offsetEventEnablerId- theIdof anOffsetEventEnableroffsetEventId- theIdof anOffsetEventreferenceId- the reference offset event enablerId- Throws:
NotFoundException-offsetEventEnablerId, offsetEventId, orreferenceIdnot found or,offsetEventEnablerIdorreferenceIdnot related tooffsetEventIdNullArgumentException-offsetEventEnablerId, offsetEventId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveOffsetEventEnablerBehind
void moveOffsetEventEnablerBehind(Id offsetEventEnablerId, Id offsetEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders offset event enablers for an offset event by moving the specified offset event enabler behind a reference offset event enabler.- Parameters:
offsetEventEnablerId- theIdof anOffsetEventEnableroffsetEventId- theIdof anOffsetEventreferenceId- the reference offset event enablerId- Throws:
NotFoundException-offsetEventEnablerId, offsetEventId, orreferenceIdnot found or,offsetEventEnablerIdorreferenceIdnot related tooffsetEventIdNullArgumentException-offsetEventEnablerId, offsetEventId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderOffsetEventEnablers
void orderOffsetEventEnablers(Id[] offsetEventEnablerIds, Id offsetEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of offset event enablers for an offset event.- Parameters:
offsetEventEnablerIds- theIdsfor a set ofOffsetEventEnablersoffsetEventId- theIdof anOffsetEvent- Throws:
NotFoundException-offsetEventIdnot found or, anoffsetEventEnablerIdnot related tooffsetEventIdNullArgumentException-offsetEventEnablerIdsoroffsetEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-