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 Details

  • Method Details

    • getErrors

      Returns all error messages by entity id and attribute.

      Returns:
      the error messages by entity id and attribute
    • getErrors

      public Map<String[],CmsPair<String,String>> getErrors(String entityId)
      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

      public Map<String[],CmsPair<String,String>> getWarnings(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(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(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