Foundations Object Model

ChildSubscriptionMapping

global with sharing class ChildSubscriptionMapping implements SubscriptionMapping, CustomizableWithMappings, CustomizableWithMappings2, VirtualDataObjectTargetMapping, ClientChildMapping

Implementation of SubscriptionMapping that creates and updates child targets based on a list node in the message.

This class implements the following interfaces:

Methods

ChildSubscriptionMapping

global ChildSubscriptionMapping(String childKey, List<String> messageKey, ChildCorrelationStrategy childCorrelationStrategy)

Constructs a ChildSubscriptionMapping.

Input Parameters

Name Type Description
childKey String The key of the children in the TargetObject.
messageKey List<String> The location of the list node in the message.
childCorrelationStrategy ChildCorrelationStrategy The strategy used to determine how existing child targets should be dealt with.

ChildSubscriptionMapping

global ChildSubscriptionMapping(String childKey, List<String> messageKey)

Constructs a ChildSubscriptionMapping.

Input Parameters

Name Type Description
childKey String The key of the children in the TargetObject.
messageKey List<String> The location of the list node in the message.

addMappings

global AddMappingsResult addMappings(List<SubscriptionMapping> mappings)

Add child mappings with the default target child type.

Input Parameters

Name Type Description
mappings List<SubscriptionMapping> The child mappings to be added.

Return Value

An instance of AddMappingsResult containing the status and any errors.

addMappings

global AddMappingsResult addMappings(String targetChildType, List<SubscriptionMapping> mappings)

Add multiple child mappings for a given target child type.

Input Parameters

Name Type Description
targetChildType String The name of a type of target child object, which enables you to create multiple target child objects from a single source child object. For example, Default, Debit Line, or Admin Fee.
mappings List<SubscriptionMapping> The child mappings to be added.

Return Value

An instance of AddMappingsResult containing the status and any errors.

getMappings

global List<SubscriptionMapping> getMappings()

Return Value

The child mappings with the default target child type.

getMappings

global List<SubscriptionMapping> getMappings(String targetChildType)

Input Parameters

Name Type Description
targetChildType String The name of a type of target child object, which enables you to create multiple target child objects from a single source child object. For example, Default, Debit Line, or Admin Fee.

Return Value

The child mappings with the specified target child type.

withMapping

global ChildSubscriptionMapping withMapping(String targetChildType, SubscriptionMapping mapping)

Add a single child mapping for a given target child type.

Input Parameters

Name Type Description
targetChildType String The name of a type of target child object, which enables you to create multiple target child objects from a single source child object. For example, Default, Debit Line, or Admin Fee.
mapping SubscriptionMapping The new mapping.

Return Value

The child subscription mapping.

withMappings

global ChildSubscriptionMapping withMappings(String targetChildType, List<SubscriptionMapping> mappings)

Add multiple child mappings for a given target child type.

Input Parameters

Name Type Description
targetChildType String The name of a type of target child object, which enables you to create multiple target child objects from a single source child object. For example, Default, Debit Line, or Admin Fee.
mappings List<SubscriptionMapping> The new mappings.

Return Value

The child subscription mapping.

prepare

global void prepare(DataTarget dataTarget)

performImmediateActions

global void performImmediateActions(ApplyMappingRequest2 request)

withFilter

global ChildSubscriptionMapping withFilter(ChildMappingMatcher filter)

Provides a fferpcore.ChildMappingMatcher that is used to filter the child records within a child mapping.

Input Parameters

Name Type Description
filter ChildMappingMatcher An instance of ChildMappingMatcher defining the filter.

Return Value

The child subscription mapping.

withFilter

global ChildSubscriptionMapping withFilter(TransformFilter filter)

Provides a fferpcore.TransformFilter that is used to filter the child records within a child mapping.

Input Parameters

Name Type Description
filter TransformFilter An instance of TransformFilter defining the filter.

Return Value

The child subscription mapping.

performBulkActions

global void performBulkActions()

getTargetFields

global Set<String> getTargetFields()

getMessageKeys

global List<List<String>> getMessageKeys()

getTransformTableId

global String getTransformTableId()

isDeclarative

global Boolean isDeclarative()

setDeclarative

global void setDeclarative(Boolean value)

disableOutputTo

global void disableOutputTo(Set<String> output)

isDisabled

global Boolean isDisabled()

getChildren

global List<SubscriptionMapping> getChildren()

canHaveChildren

global Boolean canHaveChildren()

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