Coverage Report - com.buckosoft.PicMan.web.MosaicAnalysePageController
 
Classes in this File Line Coverage Branch Coverage Complexity
MosaicAnalysePageController
0%
0/11
N/A
1
 
 1  
 /******************************************************************************
 2  
  * MosaicAnalysePageController.java - The Spring controller for Mosaic Analysis
 3  
  * 
 4  
  * PicMan - The BuckoSoft Picture Manager in Java
 5  
  * Copyright(c) 2008 - Dick Balaska
 6  
  * 
 7  
  */
 8  
 package com.buckosoft.PicMan.web;
 9  
 
 10  
 import java.io.IOException;
 11  
 import java.util.HashMap;
 12  
 import java.util.Map;
 13  
 
 14  
 import javax.servlet.ServletException;
 15  
 import javax.servlet.http.HttpServletRequest;
 16  
 import javax.servlet.http.HttpServletResponse;
 17  
 
 18  
 import org.springframework.web.servlet.ModelAndView;
 19  
 
 20  
 import com.buckosoft.BSAccount.web.BSAccountPageController;
 21  
 import com.buckosoft.BSAccount.web.BSAccountUserWebSession;
 22  
 import com.buckosoft.PicMan.business.PicManFacade;
 23  
 
 24  
 /** The Spring controller for the Mosaic analysis page. <br>
 25  
  * See <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/WebContent/WEB-INF/jsp/MosaicAnalysePage.jsp">FilterEditPage.jsp</a>
 26  
  * which is kinda boring.  All the good stuff happens in the javascript
 27  
  * <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/WebContent/js/mosaicAnalyse.js">mosaicAnalyse.js</a>
 28  
  * and
 29  
  * <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/WebContent/js/mosaicAnalyseAjax.js">mosaicAnalyseAjax.js</a>.
 30  
  * @author Dick Balaska
 31  
  * @since 2008/05/30
 32  
  */
 33  0
 public class MosaicAnalysePageController extends BSAccountPageController {
 34  
         private PicManFacade        pmf;
 35  
         
 36  
         /** Set the reference to the PicMan API.
 37  
          * @param pmf The PicManFacade
 38  
          */
 39  0
         public void setPicMan(PicManFacade pmf) { this.pmf = pmf; }
 40  
 
 41  
         /** Spring standard http request handler
 42  
          * @param request The http request
 43  
          * @param response The http response
 44  
          * @return The Spring Model and View
 45  
          */ 
 46  
         public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
 47  
                                 throws ServletException, IOException {
 48  
 
 49  0
                 BSAccountUserWebSession userWebSession = this.bsAccountMan.getUserWebSession(request);
 50  0
                 String s = request.getParameter("mid");
 51  0
                 String now = (new java.util.Date()).toString();
 52  
 
 53  0
                 Map<String, Object> myModel = new HashMap<String, Object>();
 54  0
                 myModel.put("userWebSession", userWebSession);
 55  0
                 myModel.put("now", now);
 56  0
                 myModel.put("picMan", pmf);
 57  0
                 myModel.put("mid", s);
 58  
 
 59  0
                 return new ModelAndView("MosaicAnalysePage", "model", myModel);
 60  
         }
 61  
         
 62  
 }