fferpcore.AnalysisMappingServiceglobal with sharing class AnalysisMappingService Query Foundations analysis mapping configuration. MethodsgetEntriesOnSObjectsglobal static fferpcore.AnalysisMappingService.EntriesOnSObjectResult getEntriesOnSObjects(List<SObjectType> targetSObjects) Input Parameters
Return ValueThe analysis mappings for a given list of objects. fferpcore.AnalysisMappingService.EntriesOnSObjectResultglobal interface EntriesOnSObjectResult Information about analysis mapping entries on several objects. Methods
getAnalysisMappingsSet<String> getAnalysisMappings() Return ValueThe set of analysis mapping names associated with the specified objects. Names are returned in lower case. getSObjectTypesSet<SObjectType> getSObjectTypes() Return ValueThe set of objects associated with this result. getEntryEntry getEntry(String analysisMapping, SObjectType targetType) Input Parameters
Return ValueThe analysis mapping entry for the given analysis mapping and object. getEntriesList<Entry> getEntries(SObjectType targetType) Input Parameters
Return ValueThe analysis mapping entries for the given object. getFieldPathStringsSet<String> getFieldPathStrings(SObjectType targetType) Input Parameters
Return ValueA set of SOQL field strings that you can use to read all analysis values for the given object. getCopyableMappingsList<DataFlow> getCopyableMappings(SObjectType sourceSObjectType, SObjectType targetSObjectType) Input Parameters
Return ValueThe list of analysis mappings that you can use to copy analysis values from a given source object to a target object. You can copy the analysis values if the analysis mapping exists on both objects and the target field is not referenced through a relationship on the target object. fferpcore.AnalysisMappingService.Entryglobal interface Entry Describes how an analysis mapping is used on an object. Methods
getAnalysisMappingNameString getAnalysisMappingName() Return ValueThe name of the analysis mapping. getAnalysisMappingLabelString getAnalysisMappingLabel() Return ValueThe label of the analysis mapping. getSObjectTypeSObjectType getSObjectType() Return ValueThe object associated with the analysis mapping entry. isIndirectBoolean isIndirect() Return ValueTrue if the field does not exist on the specified object. getFieldSObjectField getField() Return ValueThe field containing the analysis value. If isIndirect() is false, the field exists on the object. If isIndirect() is true, the field exists on a different record. getFieldPathSObjectFieldPath getFieldPath() Return ValueThe field path to the analysis value. Each field apart from the last one is a lookup. getFieldPathStringString getFieldPathString() Return ValueThe path expressed as a SOQL string that you can use in a query. readValueObject readValue(SObject sourceRecord) Read an analysis value from the source record. Input Parameters
Return ValueThe analysis value from the source record. Null if no value is present or an intermediate lookup is null. writeValuevoid writeValue(SObject targetRecord, Object value) Write an analysis value to the target record. Input Parameters
fferpcore.AnalysisMappingService.DataFlowglobal interface DataFlow Describes how analysis values can be copied from one record to another. Methods
getAnalysisMappingsSet<String> getAnalysisMappings() Return ValueThe names of all associated analysis mappings. getSourcePathSObjectFieldPath getSourcePath() Return ValueThe field path that is used to read an analysis value from a source record. All fields apart from the last one are lookups. getSourcePathStringString getSourcePathString() Return ValueThe source field path expressed as a SOQL string that you can use in a query. getTargetFieldSObjectField getTargetField() Return ValueThe target record field to which you want to write an analysis value. readValueObject readValue(SObject sourceRecord) Read an analysis value from the source record. Input Parameters
Return ValueThe analysis value from the source record. Null if no value is present or an intermediate lookup is null. writeValuevoid writeValue(SObject targetRecord, Object value) Write an analysis value to the target record. Input Parameters
copyValuevoid copyValue(SObject sourceRecord, SObject targetRecord) Copy an analysis value from a source record to a target record. Input Parameters
hasUserRequiredPermissionBoolean hasUserRequiredPermission() Return ValueTrue if the current user has the required permissions to copy the analysis value. |