Coverage Report - org.kuali.rice.krms.impl.ui.EditorDocumentController
 
Classes in this File Line Coverage Branch Coverage Complexity
EditorDocumentController
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.krms.impl.ui;
 17  
 
 18  
 import javax.servlet.http.HttpServletRequest;
 19  
 import javax.servlet.http.HttpServletResponse;
 20  
 
 21  
 import org.apache.commons.collections.MapUtils;
 22  
 import org.kuali.rice.krad.service.BusinessObjectService;
 23  
 import org.kuali.rice.krad.service.KRADServiceLocator;
 24  
 import org.kuali.rice.krad.web.spring.controller.MaintenanceDocumentController;
 25  
 import org.kuali.rice.krad.web.spring.controller.UifControllerBase;
 26  
 import org.kuali.rice.krad.web.spring.form.MaintenanceForm;
 27  
 import org.kuali.rice.krad.web.spring.form.UifFormBase;
 28  
 import org.kuali.rice.krms.impl.repository.AgendaBo;
 29  
 import org.kuali.rice.krms.impl.repository.ContextBo;
 30  
 import org.springframework.stereotype.Controller;
 31  
 import org.springframework.validation.BindingResult;
 32  
 import org.springframework.web.bind.annotation.ModelAttribute;
 33  
 import org.springframework.web.bind.annotation.RequestMapping;
 34  
 import org.springframework.web.bind.annotation.RequestMethod;
 35  
 import org.springframework.web.servlet.ModelAndView;
 36  
 
 37  
 /**
 38  
  * Controller for the Test UI Page
 39  
  * 
 40  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 41  
  */
 42  0
 @Controller
 43  
 @RequestMapping(value = "/krmsAgendaEditor")
 44  0
 public class EditorDocumentController extends MaintenanceDocumentController {
 45  
 
 46  
     @Override
 47  
     public MaintenanceForm createInitialForm(HttpServletRequest request) {
 48  0
         return new MaintenanceForm();
 49  
     }
 50  
     
 51  
     /**
 52  
      * This overridden method does extra work on refresh to populate the context and agenda
 53  
      * 
 54  
      * @see org.kuali.rice.krad.web.spring.controller.UifControllerBase#refresh(org.kuali.rice.krad.web.spring.form.UifFormBase, org.springframework.validation.BindingResult, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
 55  
      */
 56  
     @Override
 57  
     public ModelAndView refresh(UifFormBase form, BindingResult result,
 58  
             HttpServletRequest request, HttpServletResponse response)
 59  
             throws Exception {
 60  
         
 61  0
         MapUtils.verbosePrint(System.out, "actionParameters", form.getActionParameters());
 62  
         
 63  0
         return super.refresh(form, result, request, response);
 64  
     }
 65  
 
 66  
     private BusinessObjectService getBoService() {
 67  0
         return KRADServiceLocator.getBusinessObjectService();
 68  
     }
 69  
 
 70  
 }