Package org.nuxeo.ecm.core.bulk
Class AbstractBulkActionValidation
- java.lang.Object
-
- org.nuxeo.ecm.core.bulk.AbstractBulkActionValidation
-
- All Implemented Interfaces:
BulkActionValidation
- Direct Known Subclasses:
AutomationBulkValidation,CSVExportValidation,GarbageCollectOrphanBlobsValidation,RecomputeVideoConversionsActionValidation,RecomputeViewsActionValidation,SetPropertiesValidation
public abstract class AbstractBulkActionValidation extends Object implements BulkActionValidation
- Since:
- 10.10
-
-
Constructor Summary
Constructors Constructor Description AbstractBulkActionValidation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract List<String>getParametersToValidate()Returns the list of parameters to validate.protected StringinvalidParameterMessage(String parameter, BulkCommand command)protected StringunknownParameterMessage(String parameter, BulkCommand command)voidvalidate(BulkCommand command)Checks if action parameters are valid.protected voidvalidateBoolean(String param, BulkCommand command)protected abstract voidvalidateCommand(BulkCommand command)Validates the command.protected voidvalidateList(String param, BulkCommand command)protected voidvalidateMap(String param, BulkCommand command)protected voidvalidateSchema(String param, Serializable value, BulkCommand command)protected voidvalidateString(String param, BulkCommand command)protected voidvalidateStringValue(String param, Serializable value, BulkCommand command)protected voidvalidateXpath(String param, Serializable value, BulkCommand command)
-
-
-
Method Detail
-
validate
public void validate(BulkCommand command) throws IllegalArgumentException
Description copied from interface:BulkActionValidationChecks if action parameters are valid.- Specified by:
validatein interfaceBulkActionValidation- Throws:
IllegalArgumentException- if some action parameters are invalid.
-
invalidParameterMessage
protected String invalidParameterMessage(String parameter, BulkCommand command)
-
unknownParameterMessage
protected String unknownParameterMessage(String parameter, BulkCommand command)
-
validateBoolean
protected void validateBoolean(String param, BulkCommand command)
-
validateString
protected void validateString(String param, BulkCommand command)
-
validateStringValue
protected void validateStringValue(String param, Serializable value, BulkCommand command)
-
validateMap
protected void validateMap(String param, BulkCommand command)
-
validateList
protected void validateList(String param, BulkCommand command)
-
validateSchema
protected void validateSchema(String param, Serializable value, BulkCommand command)
-
validateXpath
protected void validateXpath(String param, Serializable value, BulkCommand command)
-
getParametersToValidate
protected abstract List<String> getParametersToValidate()
Returns the list of parameters to validate.
-
validateCommand
protected abstract void validateCommand(BulkCommand command) throws IllegalArgumentException
Validates the command.- Throws:
IllegalArgumentException
-
-