ERP Core

fferpcore.LinkingFieldManager

global with sharing class LinkingFieldManager implements LinkingFieldManagerAPI

fferpcore.LinkingFieldManager maintains the link control fields on SObject instances based on received link control messages.

Methods

LinkingFieldManager

global LinkingFieldManager(Schema.SObjectType sourceObject)

Creates an instance of the fferpcore.LinkingFieldManager to manage fields on the given SObject type.

Input Parameters

Name Type Description
sourceObject Schema.SObjectType The object type we're working with, to maintain fields on.

manageLinkingFields

global fferpcore.LinkingFieldManager.LinkingFieldManagerResult manageLinkingFields(SObject record, List<fferpcore.LinkControlBody> linkControlBodies)

Update the link control fields on the given record based on the received messages. The messages are assumed to be in order, such that the most recent information is used.

Input Parameters

Name Type Description
record SObject Record containing the link control fields to be updated.
linkControlBodies List<fferpcore.LinkControlBody> Information to be used to update the link control fields. @result This service returns an LinkingFieldManager.LinkingFieldManagerResult object.

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.

//Initialise record.
//Initialise collection of link control bodies.

new fferpcore.LinkingFieldManager(SomeObject__c.SObjectType).manageLinkingFields(record, linkControlBodies);

getAdditionalSelections

global Set<String> getAdditionalSelections()

Return a list of additional selections that are required when querying records, such that this class has the information required to run. @result This service returns a set of String objects.

fferpcore.LinkingFieldManager.LinkingFieldManagerResult

global class LinkingFieldManagerResult

A LinkingFieldManagerResult structure. This class doesn't have any global methods.

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