Foundations Object Model

LinkingMessageHelper2

global with sharing class LinkingMessageHelper2

Delegate class to aid processing messages in a MessageHandler. Uses a DataTargetRoot and LinkingMessageToTargetObjectMarshaller to group messages for the same targets, pass them into the marshaller, and finally commit any changes using the DataTargetRoot's work scope.

Methods

LinkingMessageHelper2

global LinkingMessageHelper2(DataTargetRoot dataTargetRoot, LinkingMessageToTargetObjectMarshaller marshaller, String linkDeveloperName)

Construct a LinkingMessageHelper2.

Input Parameters

Name Type Description
dataTargetRoot DataTargetRoot Respository of relevant target objects.
marshaller LinkingMessageToTargetObjectMarshaller Logic to apply the messages to the target objects.
linkDeveloperName String Developer name to identify the product during linking.

onMessages

global LinkingMessageHandlerResult onMessages(List<DeliveredMessage> messages)

Process the given messages.

Input Parameters

Name Type Description
messages List<DeliveredMessage> The DeliveredMessage to process.

Return Value

A collection of the resulting link control messages.

© Copyright 2009–2021 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.