# HG changeset patch # User Bjoern Ricks # Date 1348821576 0 # Node ID 33fcc786f2464445b843dc1362f11b78cf9e0cb1 # Parent 608e127fc0f54f8ed7660ba9cc08d5112722a16a Add FLYSArtifact addFacets method flys-artifacts/trunk@5634 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 608e127fc0f5 -r 33fcc786f246 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Fri Sep 28 08:38:17 2012 +0000 +++ b/flys-artifacts/ChangeLog Fri Sep 28 08:39:36 2012 +0000 @@ -1,3 +1,9 @@ +2012-09-29 Björn Ricks + + * src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java: + Add protected method addFacets to allow child classes to add facets + without accessing the member variable. + 2012-09-28 Ingo Weinzierl * doc/conf/meta-data.xml: Added 'info' column to the dem section of the diff -r 608e127fc0f5 -r 33fcc786f246 flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Fri Sep 28 08:38:17 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Fri Sep 28 08:39:36 2012 +0000 @@ -1396,12 +1396,24 @@ facets.remove(stateID); } else { - facets.put(stateID, fs); + addFacets(stateID, fs); } } } } + /** + * Sets the facets for an ID + * + * Normally the id is a state ID. + * + * @param id ID to map the facets to + * @param facets List of facets to be stored + */ + protected void addFacets(String id, List facets) { + this.facets.put(id, facets); + } + /** * Method to dump the artifacts state/data.