From: Roland Häder Date: Mon, 25 Apr 2016 14:02:50 +0000 (+0200) Subject: Splitted remote interface into admin and general custom stuff X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b4937f82edba18366003b7fe6f01e0cfde902aa7;p=jcustomer-lib.git Splitted remote interface into admin and general custom stuff --- diff --git a/src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java b/src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java new file mode 100644 index 0000000..4bb050d --- /dev/null +++ b/src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java @@ -0,0 +1,39 @@ +/* + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jcustomercore.model.customer; + +import java.io.Serializable; +import java.util.List; +import javax.ejb.Remote; + +/** + * Administrative interface for customer beans + *

+ * @author Roland Haeder + */ +@Remote +public interface AdminCustomerSessionBeanRemote extends Serializable { + + /** + * Returns a list of all customers. This method should be used from + * administrative beans. + *

+ * @return A list of all customers + */ + List allCustomers (); + +} diff --git a/src/org/mxchange/jcustomercore/model/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jcustomercore/model/customer/CustomerSessionBeanRemote.java index 09e02dc..5585d80 100644 --- a/src/org/mxchange/jcustomercore/model/customer/CustomerSessionBeanRemote.java +++ b/src/org/mxchange/jcustomercore/model/customer/CustomerSessionBeanRemote.java @@ -17,7 +17,6 @@ package org.mxchange.jcustomercore.model.customer; import java.io.Serializable; -import java.util.List; import javax.ejb.Remote; import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException; @@ -61,12 +60,4 @@ public interface CustomerSessionBeanRemote extends Serializable { */ Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException; - /** - * Returns a list of all customers. This method should be used from - * administrative beans. - *

- * @return A list of all customers - */ - List allCustomers (); - }