-
Notifications
You must be signed in to change notification settings - Fork 458
RecipeTreeViewController
Provides the necessary data to populate a lightning-tree base component with recipe and group information
Group Shared Code
private static groupToListOfNames
Map<String,List<String>>
The String here represents a relatively unique tag that Apex Recipe uses to help group related classes.
private static final GROUP_TAG
String
AURAENABLED
Generates a recursive list of RecipeTreeData objects to feed to a Lightning-tree-view component. Importantly, the returning array has two RecipeTreeData objects - One for Recipes, the other for our supporting, shared code.
public static List<RecipeTreeData> generateTreeData()
List<RecipeTreeData>
list of RecipeTreeData objects
System.debug(RecipeTreeViewController.generateTreeData());
SUPPRESSWARNINGS
Generates a map containing Group names as the Keys tied to a List of class names.
Note: this method contains a false-positive PMD violation. Normally, we'd want to check for FLS/CRUD here, but for ApexClass a system level object that Admins and users cannot really change we're ok.
private static Map<String,List<String>> generateMapOfGroupToListOfNames()
Map<String,List<String>>
map containing Group names as the Keys tied to a List of class names.
Used to marshall data between Apex and the LWC component that uses this data
Implements
Comparable
AURAENABLED
public label
String
AURAENABLED
public name
String
AURAENABLED
public expanded
Boolean
AURAENABLED
public items
RecipeTreeData
Required by the Comparable interface, this method, once implemented allows us to sort of this object type.
public Integer compareTo(Object compareTo)
Name | Type | Description |
---|---|---|
compareTo | Object | A RecipeTreeData object to compare this instance against. |
Integer
sort index