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,FixBinaryFulltextStorageValidation,GarbageCollectExpiredOAuth2TokensValidation,GarbageCollectOrphanBlobsValidation,RecomputeVideoConversionsActionValidation,RecomputeViewsActionValidation,SetPropertiesValidation
- Since:
- 10.10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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)
-
Constructor Details
-
AbstractBulkActionValidation
public AbstractBulkActionValidation()
-
-
Method Details
-
validate
Description copied from interface:BulkActionValidationChecks if action parameters are valid.- Specified by:
validatein 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
-