.addGridActionGroup("Bulk Operations",
Actions.bulkAction()
.bulkOperationType("SET_ACTIVE_PRODUCT")
.entityType(entityType)
.generateFriendlyName()
.label("product.bulk-operation.update-active")
.addField(ProductProps.ONLINE, Fields.bool()
.label("product.columns.online")
.required())
.addField(ProductProps.ACTIVE_START_DATE, Fields.date()
.label("product.fields.active-start-date"))
.addField(ProductProps.ACTIVE_END_DATE, Fields.date()
.label("product.fields.active-end-date")
.validationSchema(ValidationSchemas.date()
.method(ValidationMethods.isAfter(
"product.fields.active-end-date.must-be-after")
.arg(ProductProps.ACTIVE_START_DATE))))
.addSubmitEndpoint(Endpoints.post()
.uri(BulkOperationPaths.EXECUTE_BULK_OPERATION)
.scope(BulkOperationScopes.BULK_OPERATION)),
Actions.bulkAction()
.bulkOperationType("ARCHIVE_PRODUCT")
.entityType(entityType)
.generateFriendlyName()
.label("product.bulk-operation.archive")
.addGroup("warning", Groups.inline()
.addMessage("deleteWarning", Messages.warningMessage()
.message("product.bulk-operation.archive.warning")
.order(1000)))
.addSubmitEndpoint(Endpoints.post()
.uri(BulkOperationPaths.EXECUTE_BULK_OPERATION)
.scope(BulkOperationScopes.BULK_OPERATION)))