/*
- * 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;
}