Foundations Apex API Developer Reference

fferpcore.AnalysisValueService

global with sharing class AnalysisValueService

Validate all analysis field values on the specified records that relate to analysis mappings.

Methods

validate

global static List<fferpcore.AnalysisValueService.ValidationResult> validate(List<SObject> records)

Validate analysis field values on the records. All fields defined by Analysis Mappings are validated.

Input Parameters

Name Type Description
records List<SObject> A list of records for the same object where analysis fields have been queried.

Return Value

A validation result for each record. This is listed in the same order as the record list.

fferpcore.AnalysisValueService.ValidationResult

global interface ValidationResult

The result of validating a single record.

Methods

getId

Id getId()

Return Value

The ID of the record.

isSuccess

Boolean isSuccess()

Return Value

True if the validation is successful for this object. False if an error occurred.

getErrors

List<AnalysisValueService.ValidationError> getErrors()

Return Value

Errors that occurred as a result of validating the record.

fferpcore.AnalysisValueService.ValidationError

global class ValidationError

An error when validating a single analysis field on a record.

Methods

ValidationError

global ValidationError(SObjectField field, String message)

Input Parameters

Name Type Description
field SObjectField The field on which the error occurred.
message String Details of the error that occurred.

getField

global SObjectField getField()

Return Value

The field on which the error occurred.

getMessage

global String getMessage()

Return Value

Details of the error that occurred.

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