context+="themes/"+currTheme+"/";
htmlStream.append(" treeFunct = new dTree('treeFunct', '" + context + "');\n");
htmlStream.append(" treeFunct.add(" + dTreeRootId + ",-1,'"+nameTree+"');\n");
Iterator it = objectsList.iterator();
while (it.hasNext()) {
LowFunctionality folder = (LowFunctionality) it.next();
/* ********* start luca changes *************** */
RequestContainer reqCont = ChannelUtilities.getRequestContainer(httpRequest);
SessionContainer sessionContainer = reqCont.getSessionContainer();
SessionContainer permanentSession = sessionContainer.getPermanentContainer();
IEngUserProfile profile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
/*boolean isUserFunct = folder.getPath().startsWith("/"+((UserProfile)profile).getUserId());
if(isUserFunct) {
continue;
}*/
/* ********* end luca changes ***************** */
if (initialPath != null) {
if (initialPath.equalsIgnoreCase(folder.getPath())) addItemForJSTree(htmlStream, folder, true, profile);
else addItemForJSTree(htmlStream, folder, false, profile);
} else {
if (folder.getParentId() == null) addItemForJSTree(htmlStream, folder, true, profile);
else addItemForJSTree(htmlStream, folder, false, profile);
}
}
//htmlStream.append(" document.write(treeFunct);\n");
htmlStream.append(" document.getElementById('treeFoldersTd" + requestIdentity + "').innerHTML = treeFunct;\n");