X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjproduct%2Fmodel%2Fcategory%2FCategory.java;h=1ec30899ff8ae02c79cc393ad1e02d7b24feaac8;hb=5871d3f588e8adc958c4d0f488793547bbcfaa57;hp=7606fc617edbb41ad1f1258fc3f6316439b085d7;hpb=32863bf1f8eb09758ebdb43f5afbcc18f20ae66e;p=jproduct-core.git diff --git a/src/org/mxchange/jproduct/model/category/Category.java b/src/org/mxchange/jproduct/model/category/Category.java index 7606fc6..1ec3089 100644 --- a/src/org/mxchange/jproduct/model/category/Category.java +++ b/src/org/mxchange/jproduct/model/category/Category.java @@ -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 *

- * @param category Source category instance + * @return Created timestamp */ - void copyAll (final Category category); + Date getCategoryCreated (); + + /** + * Setter for created timestamp + *

+ * @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 + *

+ * @return Whether this category is shown in any statistics + */ + Boolean getCategoryShownInStatistics (); + + /** + * Setter for if category is shown in any statistics + *

+ * @param categoryShownInStatistics Whether this category is shown in any + * statistics + */ + void setCategoryShownInStatistics (final Boolean categoryShownInStatistics); + /** * Parent category *

@@ -65,14 +88,14 @@ public interface Category extends Serializable { *

* @return the title */ - String getCategoryTitle (); + String getCategoryI18nKey (); /** * Title of category *

* @param title the title to set */ - void setCategoryTitle (final String title); + void setCategoryI18nKey (final String title); @Override boolean equals (final Object object);