This is called before the drilling down to edit an issue.
Edit Issue screen
public boolean ucEditPreDisplay (
SesameSession session, // the current Sesame session
Problem prob, // the current problem
HttpServletRequest request,
PrintWriter out)
Returning false will prevent the issue from being edited.
public boolean ucEditPreDisplay (
SesameSession session, // the current Sesame session
Problem item, // the current item
HttpServletRequest request,
PrintWriter out) {
// check if clone was just performed in order to perform after-clone operations
if (session.getContainsKey("UC_CLONE_INFO") ) {
ArrayList cloneInfo = (ArrayList) session.getAttribute("UC_CLONE_INFO");
if (cloneInfo != null) {
String parentId = (String) cloneInfo.get(0);
String clonedId = (String) cloneInfo.get(1);
String groupName = (String) cloneInfo.get(2);
String title = item.getShortDescr();
cloneRelationshipGroupChildren(groupName, parentId, clonedId);
cloneInterestList(parentId, clonedId, title, session);
}
}
return super.ucEditPreDisplay(session, item, request, out);
}