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.

ComplianceControlLog Class

Represents a map of business context and evidence that's logged to evaluate compliance for the control.

Namespace

ComplianceMgmt

Example

1@VisibleApiVersion(minApiVersion='256')
2global class ComplianceControlLog {
3   Map<String,String> businessContextEvidenceMap; // Map of attributes and their values that must be logged for compliance coverage.
4
5   global ComplianceControlLog() {
6       this.businessContextEvidenceMap = new Map<String,String>();
7   }
8
9   global void addLog(String attrName, String attrValue) {
10       this.businessContextEvidenceMap.put(attrName, attrValue);
11   }
12
13   global Map<String,String> getBusinessContextEvidenceMap() {
14       return this.businessContextEvidenceMap;
15   }
16
17}

ComplianceControlLog Methods

Learn more about the methods available with the ComplianceControlLog class.

The ComplianceControlLog class includes these methods.

addLog(attributeName, attributeValue)

Add a log entry with a name and value. Maximum number of log entries is 25.

Signature

public void addLog(String attributeName, String attributeValue)

1ComplianceMgmt.ComplianceControlLog, addLog, [String, String], void

Parameters

attributeName
Type: String
Name of the log entry. The maximum size is 100 characters.
attributeValue
Type: String
Value of the log entry. The maximum size is 1024 characters.

Return Value

Type: void

getBusinessContextEvidenceMap()

Gets the business context and evidence map.

Signature

public Map<String,String> getBusinessContextEvidenceMap()

1ComplianceMgmt.ComplianceControlLog, getBusinessContextEvidenceMap, [], Map<String,String>

Return Value

Type: Map<String,String>

Map of attributes and their values that must be logged for compliance coverage.