Package org.opencms.acacia.shared
Class CmsValidationResult
java.lang.Object
org.opencms.acacia.shared.CmsValidationResult
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsValidationResult
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
The entity validation result containing all errors and warnings for a set of entities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all error messages by entity id and attribute.Returns the error messages for the given entity.Returns all warning messages by entity id and attribute.getWarnings(String entityId) Returns the warning messages for the given entity.booleanReturns if there are any errors.booleanReturns if the entity of the given id has errors.booleanReturns if there are any warnings.booleanhasWarnings(String entityId) Returns if the entity of the given id has warnings.
-
Constructor Details
-
CmsValidationResult
public CmsValidationResult(Map<String, Map<String[], CmsPair<String, String>>> errors, Map<String, Map<String[], CmsPair<String, String>>> warnings) Constructor.- Parameters:
errors- the error messages by entity and attributewarnings- the warning messages by entity and attribute
-
CmsValidationResult
protected CmsValidationResult()Constructor. For serialization only.
-
-
Method Details
-
getErrors
Returns all error messages by entity id and attribute.- Returns:
- the error messages by entity id and attribute
-
getErrors
Returns the error messages for the given entity.- Parameters:
entityId- the entity id- Returns:
- the error messages for the given entity
-
getWarnings
Returns all warning messages by entity id and attribute.- Returns:
- the warning messages by entity id and attribute
-
getWarnings
Returns the warning messages for the given entity.- Parameters:
entityId- the entity id- Returns:
- the warning messages for the given entity
-
hasErrors
Returns if there are any errors.- Returns:
trueif there are any errors
-
hasErrors
Returns if the entity of the given id has errors.- Parameters:
entityId- the entity id- Returns:
trueif the entity of the given id has errors
-
hasWarnings
Returns if there are any warnings.- Returns:
trueif there are any warnings
-
hasWarnings
Returns if the entity of the given id has warnings.- Parameters:
entityId- the entity id- Returns:
trueif the entity of the given id has warnings
-