Index: lams_contentrepository/web/nodeSelection.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_contentrepository/web/nodeSelection.jsp,v diff -u -r1.1 -r1.2 --- lams_contentrepository/web/nodeSelection.jsp 17 Jan 2005 10:02:58 -0000 1.1 +++ lams_contentrepository/web/nodeSelection.jsp 18 Jan 2005 06:20:34 -0000 1.2 @@ -2,6 +2,8 @@ <%@ 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" %> @@ -12,37 +14,61 @@ JSP for loginRepositoryForm form -

Select Node

+ +

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(); - while ( iter.hasNext()) { - Object key = iter.next(); + 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 %>
VersionCreated Date TimeVersion DescriptionFile Name ( Application Cache )
Node
Node
<%=detail.getVersionId()%> <%=detail.getCreatedDateTime()%> <%=detail.getDescription()%><%=nodeName!=null?nodeName:""%>