changeset 1272:2ce5d7ac9e60

Cosmetics, documentation. flys-client/trunk@2842 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 27 Sep 2011 13:49:34 +0000
parents 3e7717b6e2bc
children 6ec804500621
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.java
diffstat 2 files changed, 23 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Sep 27 13:46:33 2011 +0000
+++ b/flys-client/ChangeLog	Tue Sep 27 13:49:34 2011 +0000
@@ -1,3 +1,10 @@
+2011-09-27	Felix Wolfsteller	<felix.wolfsteller@intevation.de> 
+
+	Cosmetics, documentation.
+
+	* src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.java
+	  (loadMany): Documented, added TODO.
+
 2011-09-27	Felix Wolfsteller	<felix.wolfsteller@intevation.de> 
 
 	Implement equals and hashCode for Recommendation, Recommendation.Facet
--- a/flys-client/src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.java	Tue Sep 27 13:46:33 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.java	Tue Sep 27 13:49:34 2011 +0000
@@ -51,18 +51,28 @@
         throw new ServerException(ERROR_LOAD_ARTIFACT);
     }
 
+
+    /**
+     * Clone one or more artifacts and add it to a collection.
+     *
+     * @param parent Collection where clones will be added to.
+     * @param recommendations definitions of source of clone.
+     * @param factory name of factory to use when cloning artifacts.
+     */
     public Artifact[] loadMany(
-        Collection     parent,
+        Collection       parent,
         Recommendation[] recoms,
-        String         factory,
-        String         url,
-        String         locale
+        String           factory,
+        String           url,
+        String           locale
     )
     throws ServerException {
-        System.out.println(
-            "LoadArtifactServiceImpl.loadMany: " + recoms[0].getMasterArtifact());
+        System.out.println("LoadArtifactServiceImpl.loadMany: "
+            + recoms[0].getMasterArtifact());
         ArrayList<Artifact> artifacts = new ArrayList<Artifact>();
 
+        // TODO Respect the index of what to clone.
+
         // 1) Clone the Artifacts specified in >>recom<<
         for (Recommendation recom : recoms) {
             Artifact clone = ArtifactHelper.createArtifact(

http://dive4elements.wald.intevation.org