ControlEvaluationInput Class

Represents the input object used by the ComplianceEvaluation interface’s evaluate method. It contains a map of ControlInput class that stores the business context value required to evaluate compliance.

Namespace 

ComplianceMgmt

Example 

1@VisibleApiVersion(minApiVersion='256')
2global class ControlEvaluationInput {
3    Map<ControlInput, String> controlInputMap; // Map of ControlInput class and value (business context) that is needed for evaluating compliance
4
5    global ControlEvaluationInput() {
6        this.controlInputMapRecordIdType = new Map<ControlInput, String>();
7    }
8
9    global void setControlInputValue(ControlInput controlInput, String value) {
10       this.controlInputMapRecordIdType.put(controlInput, value);
11    }
12
13    global String getControlInputValue(ControlInput controlInput) {
14       return this.controlInputMapRecordIdType.get(controlInput);
15    }
16}

ControlEvaluationInput Methods 

Learn more about the methods available with the ComplianceEvaluationInput class.

The ControlEvaluationInput class includes these methods.

getControlInputValue(controlInput) 

Gets the value associated with the ControlInput class.

Signature 

public String getControlInputValue(ComplianceMgmt.ControlInput controlInput)

Parameters 

controlInput

Type: ComplianceMgmt.ControlInput

The ControlInput class object you must get the value for.

Return Value 

Type: String

setControlInputValue(controlInput, value) 

Sets the values for ControlInputValue object, such as parameterName and parameterType.

Signature 

public void setControlInputValue(ComplianceMgmt.ControlInput controlInput, String value)

Parameters 

controlInput

Type: ComplianceMgmt.ControlInput

Input details of the ControlInput class object.

value

Type: String

Value of the control input.

Return Value 

Type: void