Interface TriggerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply TriggerEnablers to
Triggers . A Trigger with multiple TriggerEnablers
means any positive rule evaluation across the enablers result in an
effective Trigger .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignTriggerEnablerToTrigger(Id triggerEnablerId, Id triggerId) Adds an existingTriggerEnablerto aTrigger.booleanTests if this user can alter trigger enabler/trigger mappings.booleanTests if this user can orderTriggerEnablers.Gets theSystemassociated with this session.Gets theSystemIdassociated with this session.voidmoveTriggerEnablerAhead(Id triggerEnablerId, Id triggerId, Id referenceId) Reorders trigger enablers for a trigger by moving the specified trigger enabler in front of a reference trigger enabler.voidmoveTriggerEnablerBehind(Id triggerEnablerId, Id triggerId, Id referenceId) Reorders trigger enablers for a device by moving the specified trigger enabler behind a reference trigger enabler.voidorderTriggerEnablers(Id[] triggerEnablerIds, Id triggerId) Reorders a set of trigger enablers for a trigger.voidunassignTriggerEnablerFromTrigger(Id triggerEnablerId, Id triggerId) Removes aTriggerEnablerfrom aTrigger.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
-
getSystemId
Id getSystemId()Gets theSystemIdassociated with this session.- Returns:
- the
System Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getSystem
Gets theSystemassociated with this session.- Returns:
- the system
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignTriggerEnablers
boolean canAssignTriggerEnablers()Tests if this user can alter trigger enabler/trigger 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.
-
assignTriggerEnablerToTrigger
void assignTriggerEnablerToTrigger(Id triggerEnablerId, Id triggerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingTriggerEnablerto aTrigger.- Parameters:
triggerEnablerId- theIdof theTriggerEnablertriggerId- theIdof theTrigger- Throws:
AlreadyExistsException-triggerEnablerIdalready applied totriggerIdNotFoundException-triggerEnablerIdortriggerIdnot foundNullArgumentException-triggerEnablerIdortriggerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignTriggerEnablerFromTrigger
void unassignTriggerEnablerFromTrigger(Id triggerEnablerId, Id triggerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aTriggerEnablerfrom aTrigger.- Parameters:
triggerEnablerId- theIdof theTriggerEnablertriggerId- theIdof theTrigger- Throws:
NotFoundException-triggerEnablerIdortriggerIdnot found ortriggerEnablerIdnot applied totriggerIdNullArgumentException-triggerEnablerIdortriggerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceTriggerEnablers
boolean canSequenceTriggerEnablers()Tests if this user can orderTriggerEnablers. 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:
falseifTriggerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveTriggerEnablerAhead
void moveTriggerEnablerAhead(Id triggerEnablerId, Id triggerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders trigger enablers for a trigger by moving the specified trigger enabler in front of a reference trigger enabler.- Parameters:
triggerEnablerId- theIdof aTriggerEnablertriggerId- theIdof aTriggerreferenceId- the reference trigger enablerId- Throws:
NotFoundException-triggerEnablerId, triggerId, orreferenceIdnot found or,triggerEnablerIdorreferenceIdnot related totriggerIdNullArgumentException-triggerEnablerId, triggerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveTriggerEnablerBehind
void moveTriggerEnablerBehind(Id triggerEnablerId, Id triggerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders trigger enablers for a device by moving the specified trigger enabler behind a reference trigger enabler.- Parameters:
triggerEnablerId- theIdof aTriggerEnablertriggerId- theIdof aTriggerreferenceId- the reference trigger enablerId- Throws:
NotFoundException-triggerEnablerId, triggerId, orreferenceIdnot found or,triggerEnablerIdorreferenceIdnot related totriggerIdNullArgumentException-triggerEnablerId, triggerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderTriggerEnablers
void orderTriggerEnablers(Id[] triggerEnablerIds, Id triggerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of trigger enablers for a trigger.- Parameters:
triggerEnablerIds- theIdsfor a set ofTriggerEnablerstriggerId- theIdof aTrigger- Throws:
NotFoundException-triggerIdnot found or, atriggerEnablerIdnot related totriggerIdNullArgumentException-triggerEnablerIdsortriggerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-