Foundations Apex API Developer Reference

fferpcore.LinkingMessageToObjectMarshaller

global interface LinkingMessageToObjectMarshaller

Methods

getAdditionalSelections

Set<String> getAdditionalSelections()

This method returns the set of additional field selections needed by the applyMessages code. This method must be implemented by a class which implements fferpcore.LinkingMessageToObjectMarshaller

Return Value

Returns a set of strings objects.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

private class LinkingMessageToObjectMarshallerImpl implements fferpcore.LinkingMessageToObjectMarshaller
{
    ...
}

fferpcore.LinkingMessageToObjectMarshaller marshaller = new LinkingMessageToObjectMarshallerImpl();

Set<String> additionalFields = marshaller.getAdditionalSelections();

applyMessages

void applyMessages(List<fferpcore.ApplyMessagesToObjectRequest> requests)

Attempt to apply the given messages to each object. The objects may be new or existing depending on correlation Id. Only respond to the messages if there is an error. Call preventSave() to prevent a save attempt. The system will respond

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

private class LinkingMessageToObjectMarshallerImpl implements fferpcore.LinkingMessageToObjectMarshaller
{
    ...
}

private class ApplyMessagesToObjectRequestImpl implements fferpcore.ApplyMessagesToObjectRequest
{
    ...
}

fferpcore.LinkingMessageToObjectMarshaller marshaller = new LinkingMessageToObjectMarshallerImpl();

marshaller.applyMessages1(List<ApplyMessagesToObjectRequestImpl>{new ApplyMessagesToObjectRequestImpl()});
© Copyright 2009–2024 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.