Class CmsValidationContext

java.lang.Object
org.opencms.acacia.client.CmsValidationContext

public class CmsValidationContext extends Object
The validation context. Keeps track of valid and invalid entity id's.

  • Constructor Details

  • Method Details

    • addInvalidEntity

      public void addInvalidEntity(String entityId, String invalidFields)
      Adds an invalid entity id.

      Parameters:
      entityId - the entity id
      invalidFields - the invalid fields
    • addValidEntity

      public void addValidEntity(String entityId)
      Adds a valid entity id.

      Parameters:
      entityId - the entity id
    • getInvalidEntityIds

      Returns the invalid entity id's.

      Returns:
      the invalid entity id's
    • getInvalidFields

      public String getInvalidFields(String entityId)
      Returns the invalid fields of the given entity.

      Parameters:
      entityId - the entity id
      Returns:
      the invalid fields
    • getValidEntityIds

      Returns the valid entity id's.

      Returns:
      the valid entity id's
    • hasValidationErrors

      public boolean hasValidationErrors()
      Returns if there are any invalid entities.

      Returns:
      true if there are any invalid entities
    • removeEntityId

      public void removeEntityId(String entityId)
      Removes the given entity id, use when validating the entity is no longer required.

      Parameters:
      entityId - the entity id