Agentforce IT Service Associated Objects
BaseComponentCnfgItem Class
BaseParentCnfgItem Class
CnfgItemTag Class
Previous Versions
Abstract class that represents a base component configuration item in IT Service Asset Discovery. Stores the field labels for the component configuration item.
This is an example implementation of the ItSvcAssetDcvr.BaseComponentCnfgItem abstract class.
1// Represents a CrowdStrike application (software) configuration item discovered on an asset.
2// Extends the base component config item from the IT Service Asset Discovery framework.
3global class CrowdstrikeApplnCnfgItem extends ItSvcAssetDcvr.BaseComponentCnfgItem {
4
5 // Maps each field's API name to a human-readable display label used by the UI.
6 private static final Map<String, String> CS_APP_LABELS = new Map<String, String>{
7 'softwareName' => 'Software Name', // Name of the discovered software
8 'softwareVersion' => 'Software Version', // Installed version of the software
9 'softwareInstallDate' => 'Software Install Date',// Date the software was installed
10 'softwarePublisher' => 'Software Publisher', // Vendor/publisher of the software
11 'softwareType' => 'Software Type', // Category/type of the software
12 'assetName' => 'Asset Name' // Name of the asset the software runs on
13 };
14
15 // No-arg constructor: passes the field label map to the base class so it knows how to display each field.
16 global CrowdstrikeApplnCnfgItem() {
17 super(CS_APP_LABELS);
18 }
19
20 // Fields exposed to Lightning/Aura components; each holds a discovered software attribute value.
21 @AuraEnabled global String softwareName; // Name of the discovered software
22 @AuraEnabled global String softwareVersion; // Installed version of the software
23 @AuraEnabled global String softwareInstallDate; // Date the software was installed
24 @AuraEnabled global String softwarePublisher; // Vendor/publisher of the software
25 @AuraEnabled global String softwareType; // Category/type of the software
26 @AuraEnabled global String assetName; // Name of the asset the software runs on
27 @AuraEnabled global String cnfgItemTypeName; // Name of this configuration item type
28}The following are constructors for BaseComponentCnfgItem.
BaseComponentCnfgItem(fieldLabels)
Creates a new instance of the ItSvcAssetDcvr.BaseComponentCnfgItem class using the specified fieldLabels payload parameter.
Creates a new instance of the ItSvcAssetDcvr.BaseComponentCnfgItem class using the specified fieldLabels payload parameter.
public BaseComponentCnfgItem(Map<String,String> fieldLabels)
fieldLabels: Type: Map<String,String>. Required. Specifies the field labels that map Apex fields in the class to the corresponding configuration item display names used by Content Management Database (CMDB).
The following are properties for BaseComponentCnfgItem.
A map of field API names to their display labels for the component configuration item.
A map of field API names to their display labels for the component configuration item.
public Map<String,String> fieldLabels {get; set;}
Type: Map<String,String>