All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.spotnext.spring.web.facade.AbstractBaseFacade Maven / Gradle / Ivy

There is a newer version: 1.0.21-BETA-20190513
Show newest version
package io.spotnext.spring.web.facade;

import javax.annotation.Resource;

import io.spotnext.core.infrastructure.service.LoggingService;
import io.spotnext.core.infrastructure.service.UserService;
import io.spotnext.itemtype.core.beans.UserData;
import io.spotnext.itemtype.core.user.User;
import io.spotnext.itemtype.core.user.UserGroup;

/**
 * 

Abstract AbstractBaseFacade class.

* * @author mojo2012 * @version 1.0 * @since 1.0 */ public abstract class AbstractBaseFacade { @Resource protected LoggingService loggingService; @Resource protected UserService userService; protected UserData getCurrentUser() { final UserData user = userService.getCurrentUser(); if (user == null) { throw new IllegalStateException("No user stored in session."); } return user; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy