| Line 102... |
Line 102... |
| 102 |
log.error("File not found : " + Utils.EXPORT_ENTITIES_PATH + itemId + File.separator + htmlSnippetFileName);
|
102 |
log.error("File not found : " + Utils.EXPORT_ENTITIES_PATH + itemId + File.separator + htmlSnippetFileName);
|
| 103 |
}
|
103 |
}
|
| 104 |
catch (IOException e) {
|
104 |
catch (IOException e) {
|
| 105 |
log.error("IO exception : " + Utils.EXPORT_ENTITIES_PATH + itemId + File.separator + htmlSnippetFileName);
|
105 |
log.error("IO exception : " + Utils.EXPORT_ENTITIES_PATH + itemId + File.separator + htmlSnippetFileName);
|
| 106 |
}
|
106 |
}
|
| 107 |
DataLogger.logData(EventType.RESEARCH_ADD, session.getId(), userinfo.getUserId(), userinfo.getEmail(), StringUtils.join(items, "_"));
|
107 |
DataLogger.logData(EventType.RESEARCH_ADD, getSessionId(), userinfo.getUserId(), userinfo.getEmail(), StringUtils.join(items, "_"));
|
| 108 |
}
|
108 |
}
|
| 109 |
}
|
109 |
}
|
| 110 |
}
|
110 |
}
|
| 111 |
return "success";
|
111 |
return "success";
|
| 112 |
}
|
112 |
}
|
| Line 114... |
Line 114... |
| 114 |
@Action(value="deletefromresearch",interceptorRefs={@InterceptorRef("createuser"),@InterceptorRef("myDefault")})
|
114 |
@Action(value="deletefromresearch",interceptorRefs={@InterceptorRef("createuser"),@InterceptorRef("myDefault")})
|
| 115 |
public String destroy(){
|
115 |
public String destroy(){
|
| 116 |
for (String item : items){
|
116 |
for (String item : items){
|
| 117 |
long itemId = Long.parseLong(item);
|
117 |
long itemId = Long.parseLong(item);
|
| 118 |
deleteFromMyResearch(userinfo.getUserId(), itemId);
|
118 |
deleteFromMyResearch(userinfo.getUserId(), itemId);
|
| 119 |
DataLogger.logData(EventType.RESEARCH_DELETE, session.getId(), userinfo.getUserId(), userinfo.getEmail(), StringUtils.join(items, "_"));
|
119 |
DataLogger.logData(EventType.RESEARCH_DELETE, getSessionId(), userinfo.getUserId(), userinfo.getEmail(), StringUtils.join(items, "_"));
|
| 120 |
}
|
120 |
}
|
| 121 |
return "success";
|
121 |
return "success";
|
| 122 |
}
|
122 |
}
|
| 123 |
|
123 |
|
| 124 |
private void deleteFromMyResearch(long userId, long itemId) {
|
124 |
private void deleteFromMyResearch(long userId, long itemId) {
|