From 7b4f9d9428f59e18b0ca774bdaca22e7521a3389 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 10 Aug 2016 13:01:15 +0200 Subject: [PATCH] right place for these business methods, they are not contact-related and only "phone-generic" --- .../phone/AdminPhoneSessionBeanRemote.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java b/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java index cb52fb4..7c7398f 100644 --- a/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java +++ b/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java @@ -18,6 +18,7 @@ package org.mxchange.jphone.phonenumbers.phone; import java.io.Serializable; import javax.ejb.Remote; +import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber; /** * A remote administrative interface for any kind of phone numbers. @@ -27,4 +28,20 @@ import javax.ejb.Remote; @Remote public interface AdminPhoneSessionBeanRemote extends Serializable { + /** + * Deletes given cell phone data. + *

+ * @param cellPhoneNumber Cell phone data to be deleted + */ + void deleteCellphoneData (final DialableCellphoneNumber cellPhoneNumber); + + /** + * Updates data from given cell phone number instance in database + *

+ * @param cellPhoneNumber Cell phone number instance to update + *

+ * @return Updated cell phone number instance + */ + DialableCellphoneNumber updateCellphoneData (final DialableCellphoneNumber cellPhoneNumber); + } -- 2.39.5