ControlInput Class
Represents a control input that's used in the evaluation of compliance. It includes two
main properties: parameterName and parameterType.
Namespace
Example
@VisibleApiVersion(minApiVersion='256')
global class ControlInput {
String parameterName; // Name of the parameter
ControlInputType parameterType; // Type of the parameter
global ControlInput(String parameterName, ControlInputType parameterType) {
this.parameterName = parameterName;
this.parameterType = parameterType;
}
public Boolean equals(Object obj) {
if (obj instanceof ControlInput) {
ControlInput p = (ControlInput)obj;
return ((parameterName==p.parameterName) && (parameterType==p.parameterType));
}
return false;
}
public Integer hashCode() {
return (31 * parameterName.hashCode()) ^ parameterType.hashCode();
}
}
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)
ComplianceMgmt.ControlInput, newinstance, [String, ComplianceMgmt.ControlInputType], ComplianceMgmt.ControlInput
Parameters
- 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.