1 package ch.odi.justblog.command;
2
3 import ch.odi.justblog.api.Blog;
4 import ch.odi.justblog.api.Entry;
5
6 /***
7 * This is the most simplistic implementation of a session.
8 * It uses instance variables to store the values.
9 *
10 * @author oglueck
11 */
12 public class SimpleSession implements ISession {
13 private Blog blog;
14 private Entry entry;
15
16 public void setBlog(Blog blog) {
17 this.blog = blog;
18 }
19
20 public Blog getBlog() {
21 return blog;
22 }
23
24 public void setEntry(Entry entry) {
25 this.entry = entry;
26 }
27
28 public Entry getEntry() {
29 return entry;
30 }
31 }