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 java.lang.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 Modifier Constructor Description protected
CmsValidationResult()
Constructor.CmsValidationResult(java.util.Map<java.lang.String,java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>>> errors, java.util.Map<java.lang.String,java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>>> warnings)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>>>
getErrors()
Returns all error messages by entity id and attribute.java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>>
getErrors(java.lang.String entityId)
Returns the error messages for the given entity.java.util.Map<java.lang.String,java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>>>
getWarnings()
Returns all warning messages by entity id and attribute.java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>>
getWarnings(java.lang.String entityId)
Returns the warning messages for the given entity.boolean
hasErrors()
Returns if there are any errors.boolean
hasErrors(java.lang.String entityId)
Returns if the entity of the given id has errors.boolean
hasWarnings()
Returns if there are any warnings.boolean
hasWarnings(java.lang.String entityId)
Returns if the entity of the given id has warnings.
-
-
-
Constructor Detail
-
CmsValidationResult
public CmsValidationResult(java.util.Map<java.lang.String,java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>>> errors, java.util.Map<java.lang.String,java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.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 Detail
-
getErrors
public java.util.Map<java.lang.String,java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>>> getErrors()
Returns all error messages by entity id and attribute.- Returns:
- the error messages by entity id and attribute
-
getErrors
public java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>> getErrors(java.lang.String entityId)
Returns the error messages for the given entity.- Parameters:
entityId
- the entity id- Returns:
- the error messages for the given entity
-
getWarnings
public java.util.Map<java.lang.String,java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>>> getWarnings()
Returns all warning messages by entity id and attribute.- Returns:
- the warning messages by entity id and attribute
-
getWarnings
public java.util.Map<java.lang.String[],CmsPair<java.lang.String,java.lang.String>> getWarnings(java.lang.String entityId)
Returns the warning messages for the given entity.- Parameters:
entityId
- the entity id- Returns:
- the warning messages for the given entity
-
hasErrors
public boolean hasErrors()
Returns if there are any errors.- Returns:
true
if there are any errors
-
hasErrors
public boolean hasErrors(java.lang.String entityId)
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
public boolean hasWarnings()
Returns if there are any warnings.- Returns:
true
if there are any warnings
-
hasWarnings
public boolean hasWarnings(java.lang.String entityId)
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
-
-