/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.csu.sdmx.web.controllers;

import cz.csu.sdmx.constants.SESSION;
import cz.csu.sdmx.web.security.User;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;

/**
 *
 * @author themi
 */
public class BaseController {
   
    @Autowired
    HttpSession session;
    
    protected User getCurrentUser(){
        return (User) session.getAttribute(SESSION.USER);
    }
}
