]> git.mxchange.org Git - jproduct-core.git/blobdiff - src/org/mxchange/jproduct/model/category/Category.java
Continued:
[jproduct-core.git] / src / org / mxchange / jproduct / model / category / Category.java
index 7606fc617edbb41ad1f1258fc3f6316439b085d7..1ec30899ff8ae02c79cc393ad1e02d7b24feaac8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Roland Häder
+ * Copyright (C) 2016, 2017 Roland Häder
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -17,6 +17,7 @@
 package org.mxchange.jproduct.model.category;
 
 import java.io.Serializable;
+import java.util.Date;
 
 /**
  * An interface for categories
@@ -26,11 +27,18 @@ import java.io.Serializable;
 public interface Category extends Serializable {
 
        /**
-        * Copies all properties from other category to this
+        * Getter for created timestamp
         * <p>
-        * @param category Source category instance
+        * @return Created timestamp
         */
-       void copyAll (final Category category);
+       Date getCategoryCreated ();
+
+       /**
+        * Setter for created timestamp
+        * <p>
+        * @param categoryCreated Created timestamp
+        */
+       void setCategoryCreated (final Date categoryCreated);
 
        /**
         * Id number of category
@@ -46,6 +54,21 @@ public interface Category extends Serializable {
         */
        void setCategoryId (final Long id);
 
+       /**
+        * Getter for if category is shown in any statistics
+        * <p>
+        * @return Whether this category is shown in any statistics
+        */
+       Boolean getCategoryShownInStatistics ();
+
+       /**
+        * Setter for if category is shown in any statistics
+        * <p>
+        * @param categoryShownInStatistics Whether this category is shown in any
+        *                                  statistics
+        */
+       void setCategoryShownInStatistics (final Boolean categoryShownInStatistics);
+
        /**
         * Parent category
         * <p>
@@ -65,14 +88,14 @@ public interface Category extends Serializable {
         * <p>
         * @return the title
         */
-       String getCategoryTitle ();
+       String getCategoryI18nKey ();
 
        /**
         * Title of category
         * <p>
         * @param title the title to set
         */
-       void setCategoryTitle (final String title);
+       void setCategoryI18nKey (final String title);
 
        @Override
        boolean equals (final Object object);