X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjshopcore%2Fmodel%2Fcategory%2FAdminCategorySessionBeanRemote.java;h=945971c89e42723b2c3a362cff0a55bbe2bd8926;hb=1f790d0f9d4fe8ff340b1d4d162c3502bf2fe6d2;hp=9958060d100ea9ec7a3afda62efd3ce9b4bcc9c7;hpb=8ff7ded93d58c588fa28e442f6970e4547c14d53;p=jcustomer-lib.git diff --git a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java index 9958060..945971c 100644 --- a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java @@ -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 @@ -17,24 +17,30 @@ 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. + *

+ * @author Roland Haeder */ @Remote public interface AdminCategorySessionBeanRemote extends Serializable { /** * Adds given category data from request to database - * + *

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

+ * @return Updated category instance + *

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