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
-
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.boolean
Returns if there are any errors.boolean
Returns if the entity of the given id has errors.boolean
Returns if there are any warnings.boolean
hasWarnings
(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:
true
if there are any errors
-
hasErrors
Returns if the entity of the given id has errors.- Parameters:
entityId
- the entity id- Returns:
true
if the entity of the given id has errors
-
hasWarnings
Returns if there are any warnings.- Returns:
true
if there are any warnings
-
hasWarnings
Returns if the entity of the given id has warnings.- Parameters:
entityId
- the entity id- Returns:
true
if the entity of the given id has warnings
-