View Javadoc

1   /*
2    * Copyright (2005-2009) Schibsted Søk AS
3    * This file is part of SESAT.
4    *
5    *   SESAT is free software: you can redistribute it and/or modify
6    *   it under the terms of the GNU Affero General Public License as published by
7    *   the Free Software Foundation, either version 3 of the License, or
8    *   (at your option) any later version.
9    *
10   *   SESAT is distributed in the hope that it will be useful,
11   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   *   GNU Affero General Public License for more details.
14   *
15   *   You should have received a copy of the GNU Affero General Public License
16   *   along with SESAT.  If not, see <http://www.gnu.org/licenses/>.
17   */
18  package no.sesat.search.user;
19  
20  import java.io.Serializable;
21  import java.util.Date;
22  
23  /**
24   * A user cookie belonging to a user.
25   *
26   * @author <a href="mailto:endre@sesam.no">Endre Midtgård Meckelborg</a>
27   * @author <a href="mailto:mick@semb.wever.org">Mck</a>
28   * @version <tt>$Id: UserCookie.java 21 2009-03-06 10:36:40Z ssmiweve $</tt>
29   */
30  public interface UserCookie extends Serializable {
31  
32      // See Javadoc in implementing class.
33  
34      Long getUserCookieId();
35  
36      void setUserCookieId(final Long userCookieId);
37  
38      String getSeries();
39  
40      void setSeries(final String series);
41  
42      String getToken();
43  
44      void setToken(final String token);
45  
46      Date getCreated();
47  
48      void setCreated(final Date created);
49  
50      User getUser();
51  
52      void setUser(final User user);
53  
54  }