mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-24 13:44:33 +00:00
updated javadoc for experience tracking
added/changed some javadoc for mod mail some small interface changes changed a few methods to actually use the exists mechanic, instead of checking for null values added some templates instead of hard coded strings fixed some bugs related to mod mail
This commit is contained in:
@@ -9,7 +9,7 @@ import java.util.HashMap;
|
||||
@Getter
|
||||
@Setter
|
||||
@Builder
|
||||
public class EmoteMissingValidationError implements ValidationError {
|
||||
public class EmoteMissingValidationErrorModel implements ValidationErrorModel {
|
||||
|
||||
private String emoteKey;
|
||||
|
||||
@@ -18,7 +18,7 @@ public class FeatureValidationResult implements Templatable {
|
||||
private FeatureConfig feature;
|
||||
private Boolean validationResult;
|
||||
@Builder.Default
|
||||
private List<ValidationError> validationErrors = new ArrayList<>();
|
||||
private List<ValidationErrorModel> validationErrorModels = new ArrayList<>();
|
||||
|
||||
public static FeatureValidationResult validationSuccessful(FeatureConfig featureConfig) {
|
||||
return FeatureValidationResult
|
||||
@@ -37,7 +37,7 @@ public class FeatureValidationResult implements Templatable {
|
||||
public Object getTemplateModel() {
|
||||
HashMap<String, Object> params = new HashMap<>();
|
||||
params.put("featureTemplate", this.feature.getFeature().getKey() + "_feature");
|
||||
params.put("errors", this.validationErrors);
|
||||
params.put("errors", this.validationErrorModels);
|
||||
return params;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.HashMap;
|
||||
@Getter
|
||||
@Setter
|
||||
@Builder
|
||||
public class PostTargetValidationError implements ValidationError {
|
||||
public class PostTargetValidationErrorModel implements ValidationErrorModel {
|
||||
|
||||
private String postTargetName;
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.HashMap;
|
||||
@Getter
|
||||
@Setter
|
||||
@Builder
|
||||
public class SystemConfigValidationError implements ValidationError {
|
||||
public class SystemConfigValidationErrorModel implements ValidationErrorModel {
|
||||
|
||||
private String configKey;
|
||||
|
||||
@@ -2,5 +2,5 @@ package dev.sheldan.abstracto.core.models;
|
||||
|
||||
import dev.sheldan.abstracto.templating.Templatable;
|
||||
|
||||
public interface ValidationError extends Templatable {
|
||||
public interface ValidationErrorModel extends Templatable {
|
||||
}
|
||||
Reference in New Issue
Block a user