public class MissingModulesValidationResult extends Object implements ValidationResult, Serializable
ValidationResult.FailedValidationResult| Modifier | Constructor and Description |
|---|---|
protected |
MissingModulesValidationResult(MissingModulesValidationResult result1,
MissingModulesValidationResult result2)
Initializes an instance of this class, merging the two validation results into one.
|
|
MissingModulesValidationResult(Set<String> missingModules,
String targetTemplateSet,
boolean targetTemplateSetPresent)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getMissingModules()
Returns a set with missing modules.
|
String |
getTargetTemplateSet()
Returns the name of the template set, specified in the imprt file.
|
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() |
protected MissingModulesValidationResult(MissingModulesValidationResult result1, MissingModulesValidationResult result2)
result1 - the first validation result instance to be mergedresult2 - the second validation result instance to be mergedpublic MissingModulesValidationResult(Set<String> missingModules, String targetTemplateSet, boolean targetTemplateSetPresent)
missingModules - missing modules informationtargetTemplateSet - the template set from the import filetargetTemplateSetPresent - is template set from import file present on the system?public Set<String> getMissingModules()
public String getTargetTemplateSet()
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.