public class MissingTemplatesValidationResult extends Object implements ValidationResult, Serializable
ValidationResult.FailedValidationResult| Modifier | Constructor and Description |
|---|---|
|
MissingTemplatesValidationResult(Map<String,Set<String>> missing,
String targetTemplateSet,
boolean targetTemplateSetPresent,
Map<String,Integer> modulesMissingCounts)
Initializes an instance of this class.
|
protected |
MissingTemplatesValidationResult(MissingTemplatesValidationResult result1,
MissingTemplatesValidationResult result2)
Initializes an instance of this class, merging the two validation results into one.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<String>> |
getMissingTemplates()
Returns a Map with missing templates as keys and as value a list of element paths having that template in the import.
|
String |
getTargetTemplateSet()
Returns the name of the template set, specified in the imprt file.
|
Map<String,Integer> |
getTemplateSetsMissingCounts()
If the target template set is not present on the system we verify templates against all available template sets and check how many
are missing in each of them.
|
boolean |
isBlocking()
Returns
true if the current validation blocks the import. |
boolean |
isSuccessful()
Returns
true if the current validation result is successful, meaning no missing templates were detected. |
boolean |
isTargetTemplateSetPresent() |
ValidationResult |
merge(ValidationResult toBeMergedWith)
Performs a merge of current validation results with provided one.
|
String |
toString() |
public MissingTemplatesValidationResult(Map<String,Set<String>> missing, String targetTemplateSet, boolean targetTemplateSetPresent, Map<String,Integer> modulesMissingCounts)
missing - missing templates informationtargetTemplateSet - the template set from the import filetargetTemplateSetPresent - is template set from import file present on the system?modulesMissingCounts - if the target template set is not present on the system we verify templates against all available template sets and check
how many are missing in each of themprotected MissingTemplatesValidationResult(MissingTemplatesValidationResult result1, MissingTemplatesValidationResult result2)
result1 - the first validation result instance to be mergedresult2 - the second validation result instance to be mergedpublic Map<String,Set<String>> getMissingTemplates()
public String getTargetTemplateSet()
public Map<String,Integer> getTemplateSetsMissingCounts()
public boolean isSuccessful()
true if the current validation result is successful, meaning no missing templates were detected.isSuccessful in interface ValidationResulttrue if the current validation result is successful, meaning no missing templates were detectedpublic boolean isTargetTemplateSetPresent()
public ValidationResult merge(ValidationResult toBeMergedWith)
merge in interface ValidationResulttoBeMergedWith - a ValidationResult to merge withpublic boolean isBlocking()
ValidationResulttrue if the current validation blocks the import.isBlocking in interface ValidationResulttrue if the current validation result is blocking.Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.