Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java @ 1430:6bb6d43eeb2d
Cosmetics.
flys-client/trunk@3383 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 12 Dec 2011 07:23:24 +0000 |
parents | ec5c75da5c7a |
children | f6fbfdc813f0 |
comparison
equal
deleted
inserted
replaced
1429:16b7adc66330 | 1430:6bb6d43eeb2d |
---|---|
15 public class DefaultCollection implements Collection { | 15 public class DefaultCollection implements Collection { |
16 | 16 |
17 /** The uuid of the collection. */ | 17 /** The uuid of the collection. */ |
18 protected String uuid; | 18 protected String uuid; |
19 | 19 |
20 /** The name of the collection.*/ | 20 /** The name of the collection. */ |
21 protected String name; | 21 protected String name; |
22 | 22 |
23 /** The creation time of this collection.*/ | 23 /** The creation time of this collection. */ |
24 protected Date creation; | 24 protected Date creation; |
25 | 25 |
26 /** The time to live of the collection. If this value is 0, it will never | 26 /** |
27 * die.*/ | 27 * The time to live of the collection. |
28 * If this value is 0, it will never die. | |
29 */ | |
28 protected long ttl; | 30 protected long ttl; |
29 | 31 |
30 /** The list of artifacts that are managed by this Collection.*/ | 32 /** The list of artifacts that are managed by this Collection.*/ |
31 protected List<CollectionItem> items; | 33 protected List<CollectionItem> items; |
32 | 34 |
33 protected List<Recommendation> recommendations; | 35 protected List<Recommendation> recommendations; |
34 | 36 |
37 /** | |
38 * ThemeList by outputmode name. | |
39 */ | |
35 protected Map<String, ThemeList> themeLists; | 40 protected Map<String, ThemeList> themeLists; |
36 | 41 |
37 | 42 |
38 /** | 43 /** |
39 * Constructor without arguments is necessary for GWT. | 44 * Constructor without arguments is necessary for GWT. |
41 public DefaultCollection() { | 46 public DefaultCollection() { |
42 } | 47 } |
43 | 48 |
44 | 49 |
45 public DefaultCollection(String uuid, long ttl, String name) { | 50 public DefaultCollection(String uuid, long ttl, String name) { |
46 this.uuid = uuid; | 51 this.uuid = uuid; |
47 this.ttl = ttl; | 52 this.ttl = ttl; |
48 this.name = name; | 53 this.name = name; |
49 this.items = new ArrayList<CollectionItem>(); | 54 this.items = new ArrayList<CollectionItem>(); |
50 this.themeLists = new HashMap<String, ThemeList>(); | 55 this.themeLists = new HashMap<String, ThemeList>(); |
51 this.recommendations = new ArrayList<Recommendation>(); | 56 this.recommendations = new ArrayList<Recommendation>(); |
52 } | 57 } |
53 | 58 |
54 | 59 |
55 /** | 60 /** |
103 public Date getCreationTime() { | 108 public Date getCreationTime() { |
104 return creation; | 109 return creation; |
105 } | 110 } |
106 | 111 |
107 | 112 |
113 /** | |
114 * Returns now. | |
115 * TODO candidate for removal? | |
116 */ | |
108 public Date getLastAccess() { | 117 public Date getLastAccess() { |
109 return new Date(); | 118 return new Date(); |
110 } | 119 } |
111 | 120 |
112 | 121 |
170 | 179 |
171 return modes; | 180 return modes; |
172 } | 181 } |
173 | 182 |
174 | 183 |
184 /** | |
185 * Returns ThemeList for given output name. | |
186 */ | |
175 public ThemeList getThemeList(String outName) { | 187 public ThemeList getThemeList(String outName) { |
176 if (themeLists != null) { | 188 if (themeLists != null) { |
177 return themeLists.get(outName); | 189 return themeLists.get(outName); |
178 } | 190 } |
179 | 191 |