<%@ page language="java"%> <%@ page import="java.util.*"%> <%@ page import="com.lamsinternational.lams.contentrepository.IVersionDetail"%> <%@ page import="com.lamsinternational.lams.contentrepository.NodeKey"%> <%@ page import="com.lamsinternational.lams.contentrepository.struts.action.RepositoryDispatchAction"%> <%@ taglib uri="/WEB-INF/struts/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts/struts-logic.tld" prefix="logic" %> JSP for loginRepositoryForm form

View Node

Click on the numbered button to view the current version of this node. The number is the UUID of the node.

The nodes with a name in the application cache column have been added in this session and hence the name is known to the application cache (in the session). The rest of the nodes have been added to the workspace at some other time.

Note: Node 1 for the atool workspace does not have a file in the repository so it will generate an error. This is due to the data being designed for unit testing, not demonstration.

<% Iterator iter = nodeMap.keySet().iterator(); Map nodeCache = (Map) session.getAttribute(RepositoryDispatchAction.NODE_CACHE); while ( iter.hasNext()) { Long key = (Long) iter.next(); %> <% Set versionDetails = (Set) nodeMap.get(key); Iterator setIter = versionDetails.iterator(); while ( setIter.hasNext() ) { IVersionDetail detail = (IVersionDetail) setIter.next(); NodeKey nodeKey = new NodeKey(key, detail.getVersionId()); String nodeName = nodeCache != null ? (String)nodeCache.get(nodeKey) : ""; %> <% } // end version details iterator %> <% }// end node iterator %>
Version Created Date Time Version Description File Name ( Application Cache )
Node
<%=detail.getVersionId()%> <%=detail.getCreatedDateTime()%> <%=detail.getDescription()%> <%=nodeName!=null?nodeName:""%>