001package org.kuali.ole.describe.controller;
002
003import org.kuali.ole.OLEConstants;
004import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
005import org.kuali.rice.krad.maintenance.MaintenanceDocument;
006import org.kuali.rice.krad.maintenance.MaintenanceUtils;
007import org.kuali.rice.krad.service.MaintenanceDocumentService;
008import org.kuali.rice.krad.web.controller.MaintenanceDocumentController;
009import org.kuali.rice.krad.web.form.MaintenanceDocumentForm;
010import org.springframework.stereotype.Controller;
011import org.springframework.validation.BindingResult;
012import org.springframework.web.bind.annotation.ModelAttribute;
013import org.springframework.web.bind.annotation.RequestMapping;
014import org.springframework.web.servlet.ModelAndView;
015
016import javax.servlet.http.HttpServletRequest;
017import javax.servlet.http.HttpServletResponse;
018
019/**
020 * Created with IntelliJ IDEA.
021 * User: PJ7789
022 * Date: 27/12/12
023 * Time: 6:46 PM
024 * To change this template use File | Settings | File Templates.
025 */
026@Controller
027@RequestMapping(value = "/userPreferences")
028public class OleUserPreferencesController
029        extends MaintenanceDocumentController {
030    private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger
031            .getLogger(OleUserPreferencesController.class);
032
033    /**
034     * This method returns the instance of oleUserPreferenceMaintenanceDocumentService
035     *
036     * @return oleUserPreferenceMaintenanceDocumentService(MaintenanceDocumentService)
037     */
038    @Override
039    protected MaintenanceDocumentService getMaintenanceDocumentService() {
040        return GlobalResourceLoader.getService(OLEConstants.OleUserPreferences.USER_PREF_MAINTENANCE_DOC_SERVICE);
041    }
042
043}