]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java
Updated copyright year
[jcustomer-lib.git] / src / org / mxchange / jshopcore / model / category / AdminCategorySessionBeanRemote.java
index 9958060d100ea9ec7a3afda62efd3ce9b4bcc9c7..945971c89e42723b2c3a362cff0a55bbe2bd8926 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Roland Haeder
+ * Copyright (C) 2016 Roland Haeder
  *
  * 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
 package org.mxchange.jshopcore.model.category;
 
 import java.io.Serializable;
-import java.rmi.RemoteException;
 import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.CannotAddCategoryException;
 import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
 
 /**
- * An interface for categories for "ADMIN" role
- *.
- * @author Roland Haeder
+ * An interface for categories for "ADMIN" role.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
  */
 @Remote
 public interface AdminCategorySessionBeanRemote extends Serializable {
 
        /**
         * Adds given category data from request to database
-        *
+        * <p>
         * @param category Category instance
-        * @throws java.rmi.RemoteException If something unexpected happened
-        * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used
+        * <p>
+        * @return Updated category instance
+        * <p>
+        * @throws
+        * org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If
+        * the given title is already used
+        * @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If
+        * the category cannot be added
         */
-       public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException;
+       Category doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException;
 }