|
@@ -0,0 +1,35 @@
|
|
|
|
|
+package com.psi.gabontel.mobileapp.helper;
|
|
|
|
|
+
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
+
|
|
|
|
|
+import javax.ejb.Remote;
|
|
|
|
|
+import javax.ejb.Stateless;
|
|
|
|
|
+
|
|
|
|
|
+import com.psi.applicationmanager.AppManagerFunction;
|
|
|
|
|
+import com.psi.applicationmanager.AppMessage;
|
|
|
|
|
+import com.psi.common.transactions.Message;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+@Stateless
|
|
|
|
|
+@Remote(AppManagerFunction.class)
|
|
|
|
|
+public class GetMobileAppMsisdnDetails implements AppManagerFunction {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String processTransaction(String refid, String msisdn, String message, Map<String, String> syntax) {
|
|
|
|
|
+ return manageTransaction(refid, msisdn, message, syntax).getMessage();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public AppMessage manageTransaction(String refid, String msisdn, String message, Map<String, String> syntax) {
|
|
|
|
|
+ // TODO Auto-generated method stub
|
|
|
|
|
+ String key = syntax.get("key");
|
|
|
|
|
+ String detailkey = syntax.get("detailkey");
|
|
|
|
|
+
|
|
|
|
|
+ return new Message(0, 0, MsisdnDetails.get(msisdn, detailkey));
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+}
|