From 4d139996eefdf41e339220797d1d91327b71320a Mon Sep 17 00:00:00 2001 From: Jonathan Gillespie Date: Sat, 19 Jun 2021 22:43:37 -0700 Subject: [PATCH] Removed commented-out code in LoggerSObjectHandlerPlugin --- .../classes/LoggerSObjectHandlerPlugin.cls | 233 ------------------ 1 file changed, 233 deletions(-) diff --git a/nebula-logger/main/plugin-framework/classes/LoggerSObjectHandlerPlugin.cls b/nebula-logger/main/plugin-framework/classes/LoggerSObjectHandlerPlugin.cls index 0a8d8db77..bbf36aefd 100644 --- a/nebula-logger/main/plugin-framework/classes/LoggerSObjectHandlerPlugin.cls +++ b/nebula-logger/main/plugin-framework/classes/LoggerSObjectHandlerPlugin.cls @@ -36,237 +36,4 @@ public abstract class LoggerSObjectHandlerPlugin { List triggerOld, Map triggerOldMap ); - - // TODO finish parameter methods in a future release - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `Boolean` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `Boolean` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected Boolean getBooleanParameter(String parameterDeveloperName) { - // return Boolean.valueOf(this.getStringParameter(parameterDeveloperName)); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getBooleanListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `Date` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `Date` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected Date getDateParameter(String parameterDeveloperName) { - // return Date.valueOf(this.getStringParameter(parameterDeveloperName)); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getDateListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `Datetime` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `Datetime` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected Datetime getDatetimeParameter(String parameterDeveloperName) { - // return Datetime.valueOf(this.getStringParameter(parameterDeveloperName)); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getDatetimeListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `Decimal` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `Decimal` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected Decimal getDecimalParameter(String parameterDeveloperName) { - // return Decimal.valueOf(this.getStringParameter(parameterDeveloperName)); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getDecimalListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `Double` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `Double` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected Double getDoubleParameter(String parameterDeveloperName) { - // return Double.valueOf(this.getStringParameter(parameterDeveloperName)); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `Id` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `Id` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected Id getIdParameter(String parameterDeveloperName) { - // return Id.valueOf(this.getStringParameter(parameterDeveloperName)); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getIdListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `Integer` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `Integer` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected Integer getIntegerParameter(String parameterDeveloperName) { - // return Integer.valueOf(this.getStringParameter(parameterDeveloperName)); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getIntegerListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `Long` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `Long` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected Long getLongParameter(String parameterDeveloperName) { - // return Long.valueOf(this.getStringParameter(parameterDeveloperName)); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getLongListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as an `Object` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `Object` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected Object getObjectParameter(String parameterDeveloperName) { - // return (Object) this.getStringParameter(parameterDeveloperName); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as an `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getObjectListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `SObject` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `SObject` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected SObject getSObjectParameter(String parameterDeveloperName) { - // return (SObject) JSON.deserialize(this.getStringParameter(parameterDeveloperName), SObject.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getSObjectListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `String` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `String` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // Since the Value__c field is a string field, this method is used internally by the other parameter methods - // protected String getStringParameter(String parameterDeveloperName) { - // return this.getParameter(parameterDeveloperName)?.Value__c; - // } - - /** - * @description Returns the configured value of the field `LoggerSObjectHandlerPluginParameter__mdt.Value__c` as a `List` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The `List` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected List getStringListParameter(String parameterDeveloperName) { - // return (List) this.castParameter(parameterDeveloperName, List.class); - // } - - /** - * @description Returns the matching instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt` - * @return The matching instance of `LoggerSObjectHandlerPluginParameter__mdt`, - * or null when not found or disabled - */ - // protected LoggerSObjectHandlerPluginParameter__mdt getParameter(String parameterDeveloperName) { - // LoggerSObjectHandlerPluginParameter__mdt parameter = LoggerSObjectHandlerPluginParameter__mdt.getInstance(parameterDeveloperName); - - // if (parameter == null || parameter.IsEnabled__c == false) { - // return null; - // } - - // return parameter; - // } - - // private Object castParameter(String parameterDeveloperName, Type dataType) { - // // return JSON.deserialize(this.getStringParameter(parameterDeveloperName), dataType); - // return JSON.deserialize(this.getParameter(parameterDeveloperName)?.Value__c, dataType); - // } }