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 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)
-
-
-
Method Detail
-
validate
public void validate(BulkCommand command) throws IllegalArgumentException
Description copied from interface:BulkActionValidation
Checks if action parameters are valid.- Specified by:
validate
in 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
-
-