source: EDIS/trunk/java/tracking-server-main/src/main/java/gov/va/med/edp/web/controller/LoginController.java@ 1252

Last change on this file since 1252 was 1252, checked in by Solomon Blaz, 13 years ago

removed cruft related to KAAJEE, stubbed in spring-security/VistALink authentication implementation

File size: 1.4 KB
Line 
1package gov.va.med.edp.web.controller;
2
3import gov.va.med.edp.vistalink.locator.VistaLinkConnectorConfig;
4import org.springframework.beans.factory.InitializingBean;
5import org.springframework.util.Assert;
6import org.springframework.web.servlet.ModelAndView;
7import org.springframework.web.servlet.mvc.AbstractController;
8
9import javax.servlet.http.HttpServletRequest;
10import javax.servlet.http.HttpServletResponse;
11import java.util.Set;
12
13public class LoginController extends AbstractController implements InitializingBean {
14
15 public static final String DEFAULT_VIEW_NAME = "login";
16
17 private String viewName = DEFAULT_VIEW_NAME;
18
19 private Set/*<VistaLinkConnectorConfig>*/ vistaAccounts;
20
21 public void afterPropertiesSet() throws Exception {
22 Assert.notNull(viewName, "viewName must not be null");
23 }
24
25 protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
26 return new ModelAndView(getViewName(), "vistaAccounts", vistaAccounts);
27 }
28
29 public String getViewName() {
30 return viewName;
31 }
32
33 public void setViewName(String viewName) {
34 this.viewName = viewName;
35 }
36
37 public Set/*<VistaLinkConnectorConfig>*/ getVistaAccounts() {
38 return vistaAccounts;
39 }
40
41 public void setVistaAccounts(Set/*<VistaLinkConnectorConfig>*/ vistaAccounts) {
42 this.vistaAccounts = vistaAccounts;
43 }
44}
Note: See TracBrowser for help on using the repository browser.