Interface SupersedingEventEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply SupersedingEventEnablers
to SupersedingEvents . A SupersedingEvent with multiple
SupersedingEventEnablers means any positive rule evaluation across
the enablers result in an effective SupersedingEvent .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignSupersedingEventEnablerToSupersedingEvent(Id supersedingEventEnablerId, Id supersedingEventId) Adds an existingSupersedingEventEnablerto aSupersedingEvent.booleanTests if this user can alter superseding event enabler/superseding event mappings.booleanTests if this user can orderSupersedingEventEnablers.Gets theCalendarassociated with this session.Gets theCalendarIdassociated with this session.voidmoveSupersedingEventEnablerAhead(Id supersedingEventEnablerId, Id supersedingEventId, Id referenceId) Reorders superseding event enablers for a superseding event by moving the specified superseding event enabler in front of a reference superseding event enabler.voidmoveSupersedingEventEnablerBehind(Id supersedingEventEnablerId, Id supersedingEventId, Id referenceId) Reorders superseding event enablers for a superseding event by moving the specified superseding event enabler behind a reference superseding event enabler.voidorderSupersedingEventEnablers(Id[] supersedingEventEnablerIds, Id supersedingEventId) Reorders a set of superseding event enablers for a superseding event.voidunassignSupersedingEventEnablerFromSupersedingEvent(Id supersedingEventEnablerId, Id supersedingEventId) Removes aSupersedingEventEnablerfrom aSupersedingEvent.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.
-
canAssignSupersedingEventEnablers
boolean canAssignSupersedingEventEnablers()Tests if this user can alter superseding event enabler/superseding 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.
-
assignSupersedingEventEnablerToSupersedingEvent
void assignSupersedingEventEnablerToSupersedingEvent(Id supersedingEventEnablerId, Id supersedingEventId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingSupersedingEventEnablerto aSupersedingEvent.- Parameters:
supersedingEventEnablerId- theIdof theSupersedingEventEnablersupersedingEventId- theIdof theSupersedingEvent- Throws:
AlreadyExistsException-supersedingEventEnablerIdalready applied tosupersedingEventIdNotFoundException-supersedingEventEnablerIdorsupersedingEventIdnot foundNullArgumentException-supersedingEventEnablerIdorsupersedingEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignSupersedingEventEnablerFromSupersedingEvent
void unassignSupersedingEventEnablerFromSupersedingEvent(Id supersedingEventEnablerId, Id supersedingEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aSupersedingEventEnablerfrom aSupersedingEvent.- Parameters:
supersedingEventEnablerId- theIdof theSupersedingEventEnablersupersedingEventId- theIdof theCalendar- Throws:
NotFoundException-supersedingEventEnablerIdorsupersedingEventIdnot found orsupersedingEventEnablerIdnot applied tosupersedingEventIdNullArgumentException-supersedingEventEnablerIdorsupersedingEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceSupersedingEventEnablers
boolean canSequenceSupersedingEventEnablers()Tests if this user can orderSupersedingEventEnablers. 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:
falseifSupersedingEventEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveSupersedingEventEnablerAhead
void moveSupersedingEventEnablerAhead(Id supersedingEventEnablerId, Id supersedingEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders superseding event enablers for a superseding event by moving the specified superseding event enabler in front of a reference superseding event enabler.- Parameters:
supersedingEventEnablerId- theIdof aSupersedingEventEnablersupersedingEventId- theIdof aSupersedingEventreferenceId- the reference superseding event enablerId- Throws:
NotFoundException-supersedingEventEnablerId, supersedingEventId, orreferenceIdnot found or,supersedingEventEnablerIdorreferenceIdnot related tosupersedingEventIdNullArgumentException-supersedingEventEnablerId, supersedingEventId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveSupersedingEventEnablerBehind
void moveSupersedingEventEnablerBehind(Id supersedingEventEnablerId, Id supersedingEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders superseding event enablers for a superseding event by moving the specified superseding event enabler behind a reference superseding event enabler.- Parameters:
supersedingEventEnablerId- theIdof aSupersedingEventEnablersupersedingEventId- theIdof aSupersedingEventreferenceId- the reference superseding event enablerId- Throws:
NotFoundException-supersedingEventEnablerId, supersedingEventId, orreferenceIdnot found or,supersedingEventEnablerIdorreferenceIdnot related tosupersedingEventIdNullArgumentException-supersedingEventEnablerId, supersedingEventId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderSupersedingEventEnablers
void orderSupersedingEventEnablers(Id[] supersedingEventEnablerIds, Id supersedingEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of superseding event enablers for a superseding event.- Parameters:
supersedingEventEnablerIds- theIdsfor a set ofSupersedingEventEnablerIdssupersedingEventId- theIdof aSupersedingEvent- Throws:
NotFoundException-supersedingEventIdnot found or, ansupersedingEventEnablerIdnot related tosupersedingEventIdNullArgumentException-supersedingEventEnablerIdsorsupersedingEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-