Author: chintana
Date: Sat Sep 19 10:01:51 2009
New Revision: 816883

URL: http://svn.apache.org/viewvc?rev=816883&view=rev
Log:
Implementing the new operation

Modified:
    
incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeServiceImpl.java
    
incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TraderServiceManager.java

Modified: 
incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeServiceImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeServiceImpl.java?rev=816883&r1=816882&r2=816883&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeServiceImpl.java
 (original)
+++ 
incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeServiceImpl.java
 Sat Sep 19 10:01:51 2009
@@ -68,12 +68,29 @@
 import com.ibm.websphere.samples.trade.SellResponse;
 import com.ibm.websphere.samples.trade.UpdateAccountProfile;
 import com.ibm.websphere.samples.trade.UpdateAccountProfileResponse;
+import com.ibm.websphere.samples.trade.GetProfileIdFromStsIdentifier;
+import com.ibm.websphere.samples.trade.GetProfileIdFromStsIdentifierResponse;
 
 public class TradeServiceImpl extends TradeServiceWcfSkeleton {
        private static final Log logger = 
LogFactory.getLog(TradeServiceImpl.class);
 
        private final TraderServiceManager mgr = new TraderServiceManager();
 
+    public String getProfileIdFromStsIdentifier(String uniqueIdentifier, 
String issuingSts) {
+        // GetProfileIdFromStsIdentifierResponse pid_r = new 
GetProfileIdFromStsIdentifierResponse();
+        String pid = null;
+
+        try {
+            pid = mgr.getProfileIdFromStsIdentifier(uniqueIdentifier, 
issuingSts);
+        } catch (DAOException e) {
+            logger.debug("", e);
+            throw new RuntimeException(e);
+        }
+
+        // pid_r.setGetProfileIdFromStsIdentifierReturn(pid);
+        return pid;
+    }
+
        public BuyResponse buy(Buy buy) {
                CustomOrderBean order;
                try {

Modified: 
incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TraderServiceManager.java
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TraderServiceManager.java?rev=816883&r1=816882&r2=816883&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TraderServiceManager.java
 (original)
+++ 
incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TraderServiceManager.java
 Sat Sep 19 10:01:51 2009
@@ -46,6 +46,11 @@
                factory = DAOFactory.getFacotry();
        }
 
+    public String getProfileIdFromStsIdentifier(String Id, String Sts) throws 
DAOException {
+        CustomerDAO customerDAO = factory.getCustomerDAO();
+        return customerDAO.getProfileIdFromStsIdentifier(Id, Sts);
+    }
+
        public CustomAccountBean login(String userId, String password) throws 
DAOException {
                CustomerDAO customerDAO = factory.getCustomerDAO();
                return customerDAO.login(userId, password);


Reply via email to