ERP Apex API Developer Reference

fferpcore.GenericMessageHandlerHelper

global with sharing class GenericMessageHandlerHelper

Delegate class to aid in processing messages within a MessageHandler. Implements the typical logic of constructing a fferpcore.LinkingMessageHelper2 using the fferpcore.LinkingMessageToTargetObjectMarshaller and fferpcore.DataTargetRoot from the subscription describer. Also sends resulting link control messages on the provided link control publications.

Methods

GenericMessageHandlerHelper

global GenericMessageHandlerHelper(String productDeveloperName, String messageTypeDeveloperName)

Construct a GenericMessageHandlerHelper.

Input Parameters

Name Type Description
productDeveloperName String Developer name of the subscription's owner product.
messageTypeDeveloperName String Developer name of the subscription's message type.

withProxyDeveloperName

global fferpcore.GenericMessageHandlerHelper withProxyDeveloperName(String productProxyDeveloperName)

Provide the developer name of the subscription's product proxy.

Input Parameters

Name Type Description
productProxyDeveloperName String Developer name of the product proxy.

Return Value

The original instance to allow fluent method calls.

withIdentifier

global fferpcore.GenericMessageHandlerHelper withIdentifier(String identifier)

Provide the identifier of the subscription.

Input Parameters

Name Type Description
identifier String Identifier of the subscription.

Return Value

The original instance to allow fluent method calls.

withLinkControlDeveloperName

global fferpcore.GenericMessageHandlerHelper withLinkControlDeveloperName(String linkControlDeveloperName)

Provide the link control developer name of the subscription.

Input Parameters

Name Type Description
linkControlDeveloperName String Developer name to identify the product during linking.

Return Value

The original instance to allow fluent method calls.

addLinkControlPublication

global void addLinkControlPublication(fferpcore.MessagingSystemService.Sender sender, fferpcore.MessagingSystemService.MessageTypeSpecifier specifier)

Add a link control publication that resulting link control messages will be sent with.

Input Parameters

Name Type Description
sender fferpcore.MessagingSystemService.Sender Sender of the publication.
specifier fferpcore.MessagingSystemService.MessageTypeSpecifier MessageTypeSpecifier of the publication.

onMessages

global void onMessages(List<fferpcore.DeliveredMessage> messages)

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