]> git.mxchange.org Git - jproduct-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 27 Apr 2018 22:03:04 +0000 (00:03 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 24 Jun 2018 16:13:19 +0000 (18:13 +0200)
- renamed UpdatedProductEvent -> ObservableProductUpdatedEvent to follow
  naming-convention
- productCreated cannot be copied

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jproduct/events/product/updated/ObservableProductUpdatedEvent.java [new file with mode: 0644]
src/org/mxchange/jproduct/events/product/updated/ProductUpdatedEvent.java
src/org/mxchange/jproduct/events/product/updated/UpdatedProductEvent.java [deleted file]
src/org/mxchange/jproduct/model/product/Products.java
src/org/mxchange/jproduct/model/product/agegroup/AgeGroup.java

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 (file)
index 0000000..c64cc00
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jproduct.events.product.updated;
+
+import java.io.Serializable;
+import org.mxchange.jproduct.model.product.Product;
+
+/**
+ * An interface for updated product events
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableProductUpdatedEvent extends Serializable {
+
+       /**
+        * Getter for updated product instance
+        * <p>
+        * @return Updated product instance
+        */
+       public Product getUpdatedProduct ();
+
+}
index a6e8f5f3fad89a4199fbe9be1978d4ce0967d92a..a03d5e8f90bc44534eb71679449fae612979593b 100644 (file)
@@ -24,7 +24,7 @@ import org.mxchange.jproduct.model.product.Product;
  * <p>
  * @author Roland Häder<roland@mxchange.org>
  */
-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 (file)
index 6048b4f..0000000
+++ /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 <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jproduct.events.product.updated;
-
-import java.io.Serializable;
-import org.mxchange.jproduct.model.product.Product;
-
-/**
- * An interface for updated product events
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-public interface UpdatedProductEvent extends Serializable {
-
-       /**
-        * Getter for updated product instance
-        * <p>
-        * @return Updated product instance
-        */
-       public Product getUpdatedProduct ();
-
-}
index a05968ef2e6205414e4b77e74b4c70d206fc62d8..92b370285d5745814089f5cad7d01585e4fc6fea 100644 (file)
@@ -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());
index 5aed39fd5bb8077060cc4b5b17af05af323a7b40..f51ff480082ffba838a78080f7090c5646a9622b 100644 (file)
@@ -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