Class ValidationResult
java.lang.Object
org.craftercms.studio.model.policy.ValidationResult
Holds the result of a site policy validation
- Since:
- 4.0.0
- Author:
- joseross
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationResultstatic ValidationResultallowedWithModifications(Action action, String modifiedValue) getType()booleanstatic ValidationResultnotAllowed(Action action) voidsetAllowed(boolean allowed) voidsetModifiedValue(String modifiedValue) voidvoid
-
Field Details
-
type
The type of the action -
target
The target of the action -
allowed
protected boolean allowedIndicates if the action is allowed -
modifiedValue
Indicates the modified target if there is one
-
-
Constructor Details
-
ValidationResult
public ValidationResult()
-
-
Method Details
-
allowed
-
allowedWithModifications
-
notAllowed
-
getType
-
setType
-
getTarget
-
setTarget
-
isAllowed
public boolean isAllowed() -
setAllowed
public void setAllowed(boolean allowed) -
getModifiedValue
-
setModifiedValue
-