Commit 36bed009 authored by pborate's avatar pborate

Updated UserActivityCache

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@175960 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 84738d82
......@@ -143,7 +143,7 @@ public class UserActivityCache
CacheManager.createInstance(cacheName);
}
String cacheKey = "USER_" + sessionId;
itemCode = String.format("%-10s", itemCode);
Cache cache = CacheManager.getInstance().getCache(cacheName);
Object userObj = cache.get(cacheKey);
ECMUserTracker userBean = new ECMUserTracker();
......@@ -189,6 +189,7 @@ public class UserActivityCache
if (userObj != null) {
userBean = (ECMUserTracker) userObj; // TypeCasting
}
itemCode = String.format("%-10s", itemCode);
userBean.setWishlistedProducts(itemCode, wishlistDetails);
System.out.println("Inside storeWishlistItem > userBean >" + userBean);
TransactionManager tm = cache.getAdvancedCache().getTransactionManager();
......@@ -210,7 +211,7 @@ public class UserActivityCache
public void removeWishlistItem(String itemCode, String sessionId, String cacheName)
{
System.out.println("Inside removeWishlistItem >>" + sessionId + "<>" + cacheName);
System.out.println("Inside removeWishlistItem >>" + sessionId + "<>" + cacheName+"["+itemCode+"]");
try
{
if (!CacheManager.getInstance().cacheExists(cacheName)) {
......@@ -225,6 +226,7 @@ public class UserActivityCache
if (userObj != null) {
userBean = (ECMUserTracker) userObj; // TypeCasting
}
itemCode = String.format("%-10s", itemCode);
userBean.removeWishlistedProducts(itemCode);
System.out.println("Inside removeWishlistItem > userBean >" + userBean);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment