Class ValidationResult
- java.lang.Object
-
- org.craftercms.studio.model.policy.ValidationResult
-
public class ValidationResult extends Object
Holds the result of a site policy validation- Since:
- 4.0.0
- Author:
- joseross
-
-
Constructor Summary
Constructors Constructor Description ValidationResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidationResult
allowed(Action action)
static ValidationResult
allowedWithModifications(Action action, String modifiedValue)
String
getModifiedValue()
String
getTarget()
Type
getType()
boolean
isAllowed()
static ValidationResult
notAllowed(Action action)
void
setAllowed(boolean allowed)
void
setModifiedValue(String modifiedValue)
void
setTarget(String target)
void
setType(Type type)
-
-
-
Method Detail
-
allowed
public static ValidationResult allowed(Action action)
-
allowedWithModifications
public static ValidationResult allowedWithModifications(Action action, String modifiedValue)
-
notAllowed
public static ValidationResult notAllowed(Action action)
-
getType
public Type getType()
-
setType
public void setType(Type type)
-
getTarget
public String getTarget()
-
setTarget
public void setTarget(String target)
-
isAllowed
public boolean isAllowed()
-
setAllowed
public void setAllowed(boolean allowed)
-
getModifiedValue
public String getModifiedValue()
-
setModifiedValue
public void setModifiedValue(String modifiedValue)
-
-