Interface RecurringEventEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply RecurringEventEnablers
to RecurringEvents . A RecurringEvent with multiple
RecurringEventEnablers means any positive rule evaluation across the
enablers result in an effective RecurringEvent .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignRecurringEventEnablerToRecurringEvent(Id recurringEventEnablerId, Id recurringEventId) Adds an existingRecurringEventEnablerto aRecurringEvent.booleanTests if this user can alter recurring event enabler/recurring event mappings.booleanTests if this user can orderRecurringEventEnablers.Gets theCalendarassociated with this session.Gets theCalendarIdassociated with this session.voidmoveRecurringEventEnablerAhead(Id recurringEventEnablerId, Id recurringEventId, Id referenceId) Reorders recurring event enablers for a recurring event by moving the specified recurring event enabler in front of a reference recurring event enabler.voidmoveRecurringEventEnablerBehind(Id recurringEventEnablerId, Id recurringEventId, Id referenceId) Reorders recurring event enablers for a recurring event by moving the specified recurring event enabler behind a reference recurring event enabler.voidorderRecurringEventEnablers(Id[] recurringEventEnablerIds, Id recurringEventId) Reorders a set of recurring event enablers for a recurring event.voidunassignRecurringEventEnablerFromRecurringEvent(Id recurringEventEnablerId, Id recurringEventId) Removes aRecurringEventEnablerfrom aRecurringEvent.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.
-
canAssignRecurringEventEnablerRules
boolean canAssignRecurringEventEnablerRules()Tests if this user can alter recurring event enabler/recurring 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.
-
assignRecurringEventEnablerToRecurringEvent
void assignRecurringEventEnablerToRecurringEvent(Id recurringEventEnablerId, Id recurringEventId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingRecurringEventEnablerto aRecurringEvent.- Parameters:
recurringEventEnablerId- theIdof theRecurringEventEnablerrecurringEventId- theIdof theRecurringEvent- Throws:
AlreadyExistsException-recurringEventEnablerIdalready applied torecurringEventIdNotFoundException-recurringEventEnablerIdorrecurringEventIdnot foundNullArgumentException-recurringEventEnablerIdorrecurringEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignRecurringEventEnablerFromRecurringEvent
void unassignRecurringEventEnablerFromRecurringEvent(Id recurringEventEnablerId, Id recurringEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aRecurringEventEnablerfrom aRecurringEvent.- Parameters:
recurringEventEnablerId- theIdof theRecurringEventEnablerrecurringEventId- theIdof theRecurringEvent- Throws:
NotFoundException-recurringEventEnablerIdorrecurringEventIdnot found orrecurringEventEnablerIdnot applied torecurringEventIdNullArgumentException-recurringEventEnablerIdorrecurringEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceRecurringEventEnablers
boolean canSequenceRecurringEventEnablers()Tests if this user can orderRecurringEventEnablers. 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:
falseifRecurringEventEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveRecurringEventEnablerAhead
void moveRecurringEventEnablerAhead(Id recurringEventEnablerId, Id recurringEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders recurring event enablers for a recurring event by moving the specified recurring event enabler in front of a reference recurring event enabler.- Parameters:
recurringEventEnablerId- theIdof aRecurringEventEnablerrecurringEventId- theIdof aRecurringEventreferenceId- the reference recurring event enablerId- Throws:
NotFoundException-recurringEventEnablerId, recurringEventId, orreferenceIdnot found or,recurringEventEnablerIdorreferenceIdnot related torecurringEventIdNullArgumentException-recurringEventEnablerId, recurringEventId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveRecurringEventEnablerBehind
void moveRecurringEventEnablerBehind(Id recurringEventEnablerId, Id recurringEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders recurring event enablers for a recurring event by moving the specified recurring event enabler behind a reference recurring event enabler.- Parameters:
recurringEventEnablerId- theIdof aRecurringEventEnablerrecurringEventId- theIdof aRecurringEventreferenceId- the reference recurring event enablerId- Throws:
NotFoundException-recurringEventEnablerId, recurringEventId, orreferenceIdnot found or,recurringEventEnablerIdorreferenceIdnot related torecurringEventIdNullArgumentException-recurringEventEnablerId, recurringEventId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderRecurringEventEnablers
void orderRecurringEventEnablers(Id[] recurringEventEnablerIds, Id recurringEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of recurring event enablers for a recurring event.- Parameters:
recurringEventEnablerIds- theIdsfor a set ofRecurringEventEnablersrecurringEventId- theIdof aRecurringEvent- Throws:
NotFoundException-recurringEventEnablerIdnot related torecurringEventIdNullArgumentException-rceurringEventEnablerIdsorrecurringEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-