Subversion Repositories SmartDukaan

Rev

Rev 1852 | Rev 2982 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1852 Rev 2944
Line 55... Line 55...
55
            for (WidgetItem wItem : widgetItems) {
55
            for (WidgetItem wItem : widgetItems) {
56
                itemsJson.put(wItem.getItem_id());
56
                itemsJson.put(wItem.getItem_id());
57
            }
57
            }
58
            itemsInJson = itemsJson.toString();
58
            itemsInJson = itemsJson.toString();
59
        } catch (WidgetException e) {
59
        } catch (WidgetException e) {
60
            e.printStackTrace();
60
            log.error("Unable to create the browse history widget because of: ", e);
61
        } catch (TException e) {
61
        } catch (TException e) {
62
            e.printStackTrace();
62
            log.error("Unable to create the browse history widget because of: ", e);
63
        } catch (Exception e) {
63
        } catch (Exception e) {
64
            e.printStackTrace();
64
            log.error("Unable to create the browse history widget because of: ", e);
65
        }
65
        }
66
        return "success";
66
        return "success";
67
	}
67
	}
68
 
68
 
69
    public String getSnippets() {
69
    public String getSnippets() {
Line 117... Line 117...
117
			for (String item : historyItems) {
117
			for (String item : historyItems) {
118
				long itemId = Long.parseLong(item);
118
				long itemId = Long.parseLong(item);
119
				userClient.updateBrowseHistory(userinfo.getUserId(), itemId);
119
				userClient.updateBrowseHistory(userinfo.getUserId(), itemId);
120
			}	
120
			}	
121
		} catch (Exception e) {
121
		} catch (Exception e) {
122
			e.printStackTrace();
122
		    log.error("Unable to update the browse history because of: ", e);
123
		}
123
		}
124
	}
124
	}
125
}
125
}
126
126