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
- Since:
- 10.10
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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)
-
Constructor Details
-
AbstractBulkActionValidation
public AbstractBulkActionValidation()
-
-
Method Details
-
validate
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
-
unknownParameterMessage
-
validateBoolean
-
validateString
-
validateStringValue
-
validateMap
-
validateList
-
validateSchema
-
validateXpath
-
getParametersToValidate
Returns the list of parameters to validate. -
validateCommand
Validates the command.- Throws:
IllegalArgumentException
-