From b4937f82edba18366003b7fe6f01e0cfde902aa7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 25 Apr 2016 16:02:50 +0200 Subject: [PATCH] Splitted remote interface into admin and general custom stuff --- .../AdminCustomerSessionBeanRemote.java | 39 +++++++++++++++++++ .../customer/CustomerSessionBeanRemote.java | 9 ----- 2 files changed, 39 insertions(+), 9 deletions(-) create mode 100644 src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java 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 (); - } -- 2.39.5