public abstract class AbstractBulkActionValidation extends Object implements BulkActionValidation
Constructor and Description |
---|
AbstractBulkActionValidation() |
Modifier and Type | Method and Description |
---|---|
protected abstract List<String> |
getParametersToValidate()
Returns the list of parameters to validate.
|
protected String |
invalidParameterMessage(String parameter,
BulkCommand command) |
protected String |
unknownParameterMessage(String parameter,
BulkCommand command) |
void |
validate(BulkCommand command)
Checks if action parameters are valid.
|
protected void |
validateBoolean(String param,
BulkCommand command) |
protected abstract void |
validateCommand(BulkCommand command)
Validates the command.
|
protected void |
validateList(String param,
BulkCommand command) |
protected void |
validateMap(String param,
BulkCommand command) |
protected void |
validateSchema(String param,
Serializable value,
BulkCommand command) |
protected void |
validateString(String param,
BulkCommand command) |
protected void |
validateStringValue(String param,
Serializable value,
BulkCommand command) |
protected void |
validateXpath(String param,
Serializable value,
BulkCommand command) |
public AbstractBulkActionValidation()
public void validate(BulkCommand command) throws IllegalArgumentException
BulkActionValidation
validate
in interface BulkActionValidation
IllegalArgumentException
- if some action parameters are invalid.protected String invalidParameterMessage(String parameter, BulkCommand command)
protected String unknownParameterMessage(String parameter, BulkCommand command)
protected void validateBoolean(String param, BulkCommand command)
protected void validateString(String param, BulkCommand command)
protected void validateStringValue(String param, Serializable value, BulkCommand command)
protected void validateMap(String param, BulkCommand command)
protected void validateList(String param, BulkCommand command)
protected void validateSchema(String param, Serializable value, BulkCommand command)
protected void validateXpath(String param, Serializable value, BulkCommand command)
protected abstract List<String> getParametersToValidate()
protected abstract void validateCommand(BulkCommand command) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2019 Nuxeo. All rights reserved.