Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ControlInput Class
Represents a control input that's used in the evaluation of compliance. It includes two
main properties: parameterName and parameterType.
Namespace
Example
1@VisibleApiVersion(minApiVersion='256')
2 global class ControlInput {
3 String parameterName; // Name of the parameter
4 ControlInputType parameterType; // Type of the parameter
5
6 global ControlInput(String parameterName, ControlInputType parameterType) {
7 this.parameterName = parameterName;
8 this.parameterType = parameterType;
9 }
10
11 public Boolean equals(Object obj) {
12 if (obj instanceof ControlInput) {
13 ControlInput p = (ControlInput)obj;
14 return ((parameterName==p.parameterName) && (parameterType==p.parameterType));
15 }
16 return false;
17 }
18
19 public Integer hashCode() {
20 return (31 * parameterName.hashCode()) ^ parameterType.hashCode();
21 }
22 }ControlInput Constructors
Learn more about the constructors available with the ControlInput class.
The ControlInput class includes this constructor.
ControlInput(parameterName, parameterType)
Initializes the ControlInput object.
Signature
public ControlInput(String parameterName, ComplianceMgmt.ControlInputType parameterType)
1ComplianceMgmt.ControlInput, newinstance, [String, ComplianceMgmt.ControlInputType], ComplianceMgmt.ControlInputParameters
- parameterName
- Type: String
- Name of the business context parameter that’s used to evaluate compliance.
- parameterType
- Type: ComplianceMgmt.ControlInputType
- The type of the business context parameter. Only RecordId is supported.