Package org.opencms.acacia.client
Class CmsValidationContext
java.lang.Object
org.opencms.acacia.client.CmsValidationContext
The validation context. Keeps track of valid and invalid entity id's.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInvalidEntity
(String entityId, String invalidFields) Adds an invalid entity id.void
addValidEntity
(String entityId) Adds a valid entity id.Returns the invalid entity id's.getInvalidFields
(String entityId) Returns the invalid fields of the given entity.Returns the valid entity id's.boolean
Returns if there are any invalid entities.void
removeEntityId
(String entityId) Removes the given entity id, use when validating the entity is no longer required.
-
Constructor Details
-
CmsValidationContext
public CmsValidationContext()Constructor.
-
-
Method Details
-
addInvalidEntity
Adds an invalid entity id.- Parameters:
entityId
- the entity idinvalidFields
- the invalid fields
-
addValidEntity
Adds a valid entity id.- Parameters:
entityId
- the entity id
-
getInvalidEntityIds
Returns the invalid entity id's.- Returns:
- the invalid entity id's
-
getInvalidFields
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
Returns if there are any invalid entities.- Returns:
true
if there are any invalid entities
-
removeEntityId
Removes the given entity id, use when validating the entity is no longer required.- Parameters:
entityId
- the entity id
-