001/**
002 * Copyright 2005-2015 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package edu.sampleu.travel;
017
018import org.kuali.rice.krad.lookup.LookupController;
019import org.kuali.rice.krad.uif.UifConstants;
020import org.kuali.rice.krad.web.controller.MethodAccessible;
021import org.kuali.rice.krad.web.form.UifFormBase;
022import org.springframework.stereotype.Controller;
023import org.springframework.web.bind.annotation.ModelAttribute;
024import org.springframework.web.bind.annotation.RequestMapping;
025import org.springframework.web.servlet.ModelAndView;
026
027import javax.servlet.http.HttpServletRequest;
028import javax.servlet.http.HttpServletResponse;
029
030/**
031 * @author Kuali Rice Team (rice.collab@kuali.org)
032 */
033@Controller
034@RequestMapping(value = "/lookup")
035public class DemoLookupController extends LookupController {
036
037    @Override
038    @MethodAccessible
039    @RequestMapping(params = "methodToCall=start")
040    public ModelAndView start(UifFormBase form) {
041        return super.start(form);
042    }
043
044    @Override
045    @MethodAccessible
046    @RequestMapping(params = "methodToCall=refresh")
047    public ModelAndView refresh(UifFormBase form) {
048        return super.refresh(form);
049    }
050}