Skip to content

Commit

Permalink
Removed commented-out code in LoggerSObjectHandlerPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Jun 20, 2021
1 parent 7f4a84d commit 4d13999
Showing 1 changed file with 0 additions and 233 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,237 +36,4 @@ public abstract class LoggerSObjectHandlerPlugin {
List<SObject> triggerOld,
Map<Id, SObject> 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<Boolean>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<Boolean>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<Boolean> getBooleanListParameter(String parameterDeveloperName) {
// return (List<Boolean>) this.castParameter(parameterDeveloperName, List<Boolean>.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<Date>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<Date>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<Date> getDateListParameter(String parameterDeveloperName) {
// return (List<Date>) this.castParameter(parameterDeveloperName, List<Date>.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<Datetime>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<Datetime>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<Datetime> getDatetimeListParameter(String parameterDeveloperName) {
// return (List<Datetime>) this.castParameter(parameterDeveloperName, List<Datetime>.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<Decimal>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<Decimal>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<Decimal> getDecimalListParameter(String parameterDeveloperName) {
// return (List<Decimal>) this.castParameter(parameterDeveloperName, List<Decimal>.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<Id>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<Id>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<Id> getIdListParameter(String parameterDeveloperName) {
// return (List<Id>) this.castParameter(parameterDeveloperName, List<Id>.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<Integer>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<Integer>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<Integer> getIntegerListParameter(String parameterDeveloperName) {
// return (List<Integer>) this.castParameter(parameterDeveloperName, List<Integer>.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<Long>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<Long>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<Long> getLongListParameter(String parameterDeveloperName) {
// return (List<Long>) this.castParameter(parameterDeveloperName, List<Long>.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<Object>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<Object>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<Object> getObjectListParameter(String parameterDeveloperName) {
// return (List<Object>) this.castParameter(parameterDeveloperName, List<Object>.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<SObject>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<SObject>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<SObject> getSObjectListParameter(String parameterDeveloperName) {
// return (List<SObject>) this.castParameter(parameterDeveloperName, List<SObject>.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<String>`
* @param parameterDeveloperName The developer name of the instance of `LoggerSObjectHandlerPluginParameter__mdt`
* @return The `List<String>` value configured in the matching instance of `LoggerSObjectHandlerPluginParameter__mdt`,
* or null when not found or disabled
*/
// protected List<String> getStringListParameter(String parameterDeveloperName) {
// return (List<String>) this.castParameter(parameterDeveloperName, List<String>.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);
// }
}

0 comments on commit 4d13999

Please sign in to comment.