public interface TriggerEnablerRuleApplicationSession extends 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.
| Modifier and Type | Method and Description |
|---|---|
void |
assignTriggerEnablerToTrigger(Id triggerEnablerId,
Id triggerId)
Adds an existing
TriggerEnabler to a Trigger. |
boolean |
canAssignTriggerEnablers()
Tests if this user can alter trigger enabler/trigger mappings.
|
boolean |
canSequenceTriggerEnablers()
Tests if this user can order
TriggerEnablers. |
System |
getSystem()
Gets the
System associated with this session. |
Id |
getSystemId()
Gets the
System Id associated with this
session. |
void |
moveTriggerEnablerAhead(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.
|
void |
moveTriggerEnablerBehind(Id triggerEnablerId,
Id triggerId,
Id referenceId)
Reorders trigger enablers for a device by moving the specified trigger
enabler behind a reference trigger enabler.
|
void |
orderTriggerEnablers(Id[] triggerEnablerIds,
Id triggerId)
Reorders a set of trigger enablers for a trigger.
|
void |
unassignTriggerEnablerFromTrigger(Id triggerEnablerId,
Id triggerId)
Removes a
TriggerEnabler from a Trigger. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getSystemId()
System Id associated with this
session. System Id associated with this sessionmandatory - This method must be implemented. System getSystem() throws OperationFailedException, PermissionDeniedException
System associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAssignTriggerEnablers()
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 assignTriggerEnablerToTrigger(Id triggerEnablerId, Id triggerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
TriggerEnabler to a Trigger.
triggerEnablerId - the Id of the
TriggerEnabler triggerId - the Id of the Trigger AlreadyExistsException - triggerEnablerId
already applied to triggerId NotFoundException - triggerEnablerId or
triggerId not foundNullArgumentException - triggerEnablerId
or triggerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignTriggerEnablerFromTrigger(Id triggerEnablerId, Id triggerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
TriggerEnabler from a Trigger. triggerEnablerId - the Id of the
TriggerEnabler triggerId - the Id of the Trigger NotFoundException - triggerEnablerId or
triggerId not found or triggerEnablerId
not applied to triggerId NullArgumentException - triggerEnablerId
or triggerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSequenceTriggerEnablers()
TriggerEnablers. 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 TriggerEnabler ordering
is not authorized, true otherwisemandatory - This method must be implemented. void moveTriggerEnablerAhead(Id triggerEnablerId, Id triggerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
triggerEnablerId - the Id of a
TriggerEnabler triggerId - the Id of a Trigger referenceId - the reference trigger enabler Id NotFoundException - triggerEnablerId, triggerId,
or referenceId not found or,
triggerEnablerId or referenceId not
related to triggerId NullArgumentException - triggerEnablerId,
triggerId, or referenceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void moveTriggerEnablerBehind(Id triggerEnablerId, Id triggerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
triggerEnablerId - the Id of a
TriggerEnabler triggerId - the Id of a Trigger referenceId - the reference trigger enabler Id NotFoundException - triggerEnablerId, triggerId,
or referenceId not found or,
triggerEnablerId or referenceId not
related to triggerId NullArgumentException - triggerEnablerId,
triggerId, or referenceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void orderTriggerEnablers(Id[] triggerEnablerIds, Id triggerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
triggerEnablerIds - the Ids for a set of
TriggerEnablers triggerId - the Id of a Trigger NotFoundException - triggerId not found
or, a triggerEnablerId not related to
triggerId NullArgumentException - triggerEnablerIds
or triggerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.