Package de.xima.fc.formstore
Class StoreFormMetaValidationResult
- java.lang.Object
-
- de.xima.fc.formstore.StoreFormMetaValidationResult
-
- All Implemented Interfaces:
Serializable
public final class StoreFormMetaValidationResult extends Object implements Serializable
Validation result returned by theStoreFormMetaValidator.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StoreFormMetaValidationResult(Optional<com.vdurmont.semver4j.Semver> requiredVersion, com.google.common.collect.ImmutableSet<String> missingPlugins)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableSet<String>getMissingPlugins()Optional<com.vdurmont.semver4j.Semver>getRequiredVersion()booleanisValid()
-
-
-
Constructor Detail
-
StoreFormMetaValidationResult
public StoreFormMetaValidationResult(Optional<com.vdurmont.semver4j.Semver> requiredVersion, com.google.common.collect.ImmutableSet<String> missingPlugins)
- Parameters:
requiredVersion- Value returned bygetRequiredVersion().missingPlugins- Value returned bygetMissingPlugins().
-
-
Method Detail
-
getMissingPlugins
public com.google.common.collect.ImmutableSet<String> getMissingPlugins()
- Returns:
- The technical names of all plugins that are not installed but required for the form store file to function properly.
-
getRequiredVersion
public Optional<com.vdurmont.semver4j.Semver> getRequiredVersion()
- Returns:
- Empty when the version is compatible with the current formcycle version. When not empty, the minimum formcycle version required for the form store file.
-
isValid
public boolean isValid()
- Returns:
truewhen no validations are present in this result,falseotherwise.
-
-