Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java @ 856:ec5c75da5c7a
Bugfix flys/issue166: Parse Collection names from DESCRIBE.
flys-client/trunk@2648 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 06 Sep 2011 07:47:15 +0000 |
parents | 18fc7afe0251 |
children | 6bb6d43eeb2d |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java Tue Sep 06 07:14:17 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java Tue Sep 06 07:47:15 2011 +0000 @@ -42,9 +42,10 @@ } - public DefaultCollection(String uuid, long ttl) { + public DefaultCollection(String uuid, long ttl, String name) { this.uuid = uuid; this.ttl = ttl; + this.name = name; this.items = new ArrayList<CollectionItem>(); this.themeLists = new HashMap<String, ThemeList>(); this.recommendations = new ArrayList<Recommendation>(); @@ -56,8 +57,13 @@ * * @param uuid The UUID. */ - public DefaultCollection(String uuid, long ttl, List<Recommendation> recs) { - this(uuid, ttl); + public DefaultCollection( + String uuid, + long ttl, + String name, + List<Recommendation> recs + ) { + this(uuid, ttl, name); this.recommendations = recs; } @@ -66,10 +72,11 @@ public DefaultCollection( String uuid, long ttl, + String name, List<Recommendation> recommendations, Map<String, ThemeList> themeLists) { - this(uuid, ttl, recommendations); + this(uuid, ttl, name, recommendations); this.themeLists = themeLists; } @@ -79,19 +86,6 @@ * * @param uuid The identifier of this collection. * @param name The name of this collection. - */ - public DefaultCollection(String uuid, long ttl, String name) { - this(uuid, ttl, new ArrayList<Recommendation>()); - - this.name = name; - } - - - /** - * Creates a new DefaultCollection with uuid and name. - * - * @param uuid The identifier of this collection. - * @param name The name of this collection. * @param creation The creation time. */ public DefaultCollection(String uuid, long ttl, String name, Date creation){