From: Roland Häder Date: Fri, 27 Apr 2018 22:03:04 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cb5a15efb68b4e4d54c913b962f66b8d65ca5013;p=jproduct-core.git Continued: - renamed UpdatedProductEvent -> ObservableProductUpdatedEvent to follow naming-convention - productCreated cannot be copied Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jproduct/events/product/updated/ObservableProductUpdatedEvent.java b/src/org/mxchange/jproduct/events/product/updated/ObservableProductUpdatedEvent.java new file mode 100644 index 0000000..c64cc00 --- /dev/null +++ b/src/org/mxchange/jproduct/events/product/updated/ObservableProductUpdatedEvent.java @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2016 - 2018 Free Software Foundation + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.jproduct.events.product.updated; + +import java.io.Serializable; +import org.mxchange.jproduct.model.product.Product; + +/** + * An interface for updated product events + *

+ * @author Roland Häder + */ +public interface ObservableProductUpdatedEvent extends Serializable { + + /** + * Getter for updated product instance + *

+ * @return Updated product instance + */ + public Product getUpdatedProduct (); + +} diff --git a/src/org/mxchange/jproduct/events/product/updated/ProductUpdatedEvent.java b/src/org/mxchange/jproduct/events/product/updated/ProductUpdatedEvent.java index a6e8f5f..a03d5e8 100644 --- a/src/org/mxchange/jproduct/events/product/updated/ProductUpdatedEvent.java +++ b/src/org/mxchange/jproduct/events/product/updated/ProductUpdatedEvent.java @@ -24,7 +24,7 @@ import org.mxchange.jproduct.model.product.Product; *

* @author Roland Häder */ -public class ProductUpdatedEvent implements UpdatedProductEvent { +public class ProductUpdatedEvent implements ObservableProductUpdatedEvent { /** * Serial number diff --git a/src/org/mxchange/jproduct/events/product/updated/UpdatedProductEvent.java b/src/org/mxchange/jproduct/events/product/updated/UpdatedProductEvent.java deleted file mode 100644 index 6048b4f..0000000 --- a/src/org/mxchange/jproduct/events/product/updated/UpdatedProductEvent.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2016 - 2018 Free Software Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ -package org.mxchange.jproduct.events.product.updated; - -import java.io.Serializable; -import org.mxchange.jproduct.model.product.Product; - -/** - * An interface for updated product events - *

- * @author Roland Häder - */ -public interface UpdatedProductEvent extends Serializable { - - /** - * Getter for updated product instance - *

- * @return Updated product instance - */ - public Product getUpdatedProduct (); - -} diff --git a/src/org/mxchange/jproduct/model/product/Products.java b/src/org/mxchange/jproduct/model/product/Products.java index a05968e..92b3702 100644 --- a/src/org/mxchange/jproduct/model/product/Products.java +++ b/src/org/mxchange/jproduct/model/product/Products.java @@ -79,7 +79,6 @@ public class Products implements Serializable { targetProduct.setProductAgeGroup(sourceProduct.getProductAgeGroup()); targetProduct.setProductAvailability(sourceProduct.getProductAvailability()); targetProduct.setProductCategory(sourceProduct.getProductCategory()); - targetProduct.setProductCreated(sourceProduct.getProductCreated()); targetProduct.setProductCurrencyCode(sourceProduct.getProductCurrencyCode()); targetProduct.setProductGrossPrice(sourceProduct.getProductGrossPrice()); targetProduct.setProductI18nKey(sourceProduct.getProductI18nKey()); diff --git a/src/org/mxchange/jproduct/model/product/agegroup/AgeGroup.java b/src/org/mxchange/jproduct/model/product/agegroup/AgeGroup.java index 5aed39f..f51ff48 100644 --- a/src/org/mxchange/jproduct/model/product/agegroup/AgeGroup.java +++ b/src/org/mxchange/jproduct/model/product/agegroup/AgeGroup.java @@ -46,7 +46,7 @@ public enum AgeGroup { /** * Age group "senior" */ - AGE_GROUP_SENIOR("AGE_GROUP_SENIOR"); //NOI18N//NOI18N + AGE_GROUP_SENIOR("AGE_GROUP_SENIOR"); //NOI18N /** * I18n key for age group/class