1 /******************************************************************************
2 * UserWebSession.java - Extend BSAccountUserWebSession so we can give anonymous users some config attributes
3 * $Id: UserWebSession.java,v 1.2 2015/05/04 05:44:56 dick Exp $
4 *
5 * BuckoVidLib - The BuckoSoft Video Library
6 * Copyright(c) 2015 - Dick Balaska
7 *
8 * $Log: UserWebSession.java,v $
9 * Revision 1.2 2015/05/04 05:44:56 dick
10 * A custom UserWebSession is not really needed. BSAccount creates an anonymous user,
11 * and user is never null. (User's account is null).
12 * Ancient bug in BSAccount created an empty user on create and set session's user to null on logout (instead of creating an empty anonymous user.
13 *
14 * Revision 1.1 2015/05/03 17:59:13 dick
15 * Extend BSAccountUserWebSession so we can give anonymous users some config attributes.
16 *
17 */
18 package com.buckosoft.BuckoVidLib.domain;
19
20 import org.apache.commons.logging.Log;
21 import org.apache.commons.logging.LogFactory;
22
23 import com.buckosoft.BSAccount.domain.BSAccountUser;
24 import com.buckosoft.BSAccount.domain.BSAccountUserWebSession;
25
26 /** Extend BSAccountUserWebSession so we can give anonymous users some config attributes
27 * @author dick
28 * @since 2015-05-01
29 * @version $Revision: 1.2 $ <br/> $Date: 2015/05/04 05:44:56 $
30 */
31 public class UserWebSession extends BSAccountUserWebSession {
32 private final Log log = LogFactory.getLog(getClass());
33 private static final long serialVersionUID = 73L;
34
35 public UserWebSession() {}
36
37 /** Create a new session for this user.
38 * @param user The user who is logging in, or null for an anonymous user
39 */
40 public UserWebSession(BSAccountUser user) {
41 super(user);
42 log.debug("Creating new UserWebSession");
43 }
44 }