View Javadoc

1   package org.kuali.ole.describe.controller;
2   
3   import org.kuali.ole.OLEConstants;
4   import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
5   import org.kuali.rice.krad.maintenance.MaintenanceDocument;
6   import org.kuali.rice.krad.maintenance.MaintenanceUtils;
7   import org.kuali.rice.krad.service.MaintenanceDocumentService;
8   import org.kuali.rice.krad.web.controller.MaintenanceDocumentController;
9   import org.kuali.rice.krad.web.form.MaintenanceDocumentForm;
10  import org.springframework.stereotype.Controller;
11  import org.springframework.validation.BindingResult;
12  import org.springframework.web.bind.annotation.ModelAttribute;
13  import org.springframework.web.bind.annotation.RequestMapping;
14  import org.springframework.web.servlet.ModelAndView;
15  
16  import javax.servlet.http.HttpServletRequest;
17  import javax.servlet.http.HttpServletResponse;
18  
19  /**
20   * Created with IntelliJ IDEA.
21   * User: PJ7789
22   * Date: 27/12/12
23   * Time: 6:46 PM
24   * To change this template use File | Settings | File Templates.
25   */
26  @Controller
27  @RequestMapping(value = "/userPreferences")
28  public class OleUserPreferencesController
29          extends MaintenanceDocumentController {
30      private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger
31                                                                         .getLogger(OleUserPreferencesController.class);
32  
33      /**
34       * This method returns the instance of oleUserPreferenceMaintenanceDocumentService
35       *
36       * @return oleUserPreferenceMaintenanceDocumentService(MaintenanceDocumentService)
37       */
38      @Override
39      protected MaintenanceDocumentService getMaintenanceDocumentService() {
40          return GlobalResourceLoader.getService(OLEConstants.OleUserPreferences.USER_PREF_MAINTENANCE_DOC_SERVICE);
41      }
42  
43  }