Java tutorial
/* * 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 com.cerebro.gorgone.game; import com.cerebro.gorgone.MyUI; import com.cerebro.gorgone.beans.User; import com.vaadin.external.org.slf4j.Logger; import com.vaadin.ui.HorizontalLayout; import org.apache.shiro.SecurityUtils; import org.apache.shiro.session.Session; import org.apache.shiro.subject.Subject; /** * * @author matteo */ public class Game extends HorizontalLayout { Logger logger = MyUI.logger; User user; public Game() { // Soggetto logger.info("Carico le informazione dell'utente nella sessione"); // Subject currentUser = SecurityUtils.getSubject(); // Session session = currentUser.getSession(); // user = (User)session.getAttribute("User"); // if (user.getEmailConfermata()) { // logger.info("Email confermata"); // } else { // logger.info("Email non confermata"); // } } }