Class DestinationSet
java.lang.Object
com.mirth.connect.server.userutil.DestinationSet
Utility class used in the preprocessor or source filter/transformer to prevent the message from
being sent to specific destinations.
-
Constructor Summary
ConstructorsConstructorDescriptionDestinationSet(ImmutableConnectorMessage connectorMessage) DestinationSet instances should NOT be constructed manually. -
Method Summary
Modifier and TypeMethodDescriptionbooleanStop a destination from being processed for this message.booleanremove(Collection<Object> metaDataIdOrConnectorNames) Stop a destination from being processed for this message.booleanStop all destinations from being processed for this message.booleanremoveAllExcept(Object metaDataIdOrConnectorName) Stop all except one destination from being processed for this message.booleanremoveAllExcept(Collection<Object> metaDataIdOrConnectorNames) Stop all except one destination from being processed for this message.
-
Constructor Details
-
DestinationSet
DestinationSet instances should NOT be constructed manually. The instance "destinationSet" provided in the scope should be used.- Parameters:
connectorMessage- The delegate ImmutableConnectorMessage object.
-
-
Method Details
-
remove
Stop a destination from being processed for this message.- Parameters:
metaDataIdOrConnectorName- An integer representing the metaDataId of a destination connector, or the actual destination connector name.- Returns:
- A boolean indicating whether at least one destination connector was actually removed from processing for this message.
-
remove
Stop a destination from being processed for this message.- Parameters:
metaDataIdOrConnectorNames- A collection of integers representing the metaDataId of a destination connectors, or the actual destination connector names. JavaScript arrays can be used.- Returns:
- A boolean indicating whether at least one destination connector was actually removed from processing for this message.
-
removeAllExcept
Stop all except one destination from being processed for this message.- Parameters:
metaDataIdOrConnectorName- An integer representing the metaDataId of a destination connector, or the actual destination connector name.- Returns:
- A boolean indicating whether at least one destination connector was actually removed from processing for this message.
-
removeAllExcept
Stop all except one destination from being processed for this message.- Parameters:
metaDataIdOrConnectorNames- A collection of integers representing the metaDataId of a destination connectors, or the actual destination connector names. JavaScript arrays can be used.- Returns:
- A boolean indicating whether at least one destination connector was actually removed from processing for this message.
-
removeAll
public boolean removeAll()Stop all destinations from being processed for this message. This does NOT mark the source message as FILTERED.- Returns:
- A boolean indicating whether at least one destination connector was actually removed from processing for this message.
-