# HG changeset patch # User Felix Wolfsteller # Date 1317131374 0 # Node ID 2ce5d7ac9e607a14549eb07fc21d7898a737ced0 # Parent 3e7717b6e2bc1db436be11e4a8d2637f8275ad2d Cosmetics, documentation. flys-client/trunk@2842 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 3e7717b6e2bc -r 2ce5d7ac9e60 flys-client/ChangeLog --- 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 + + Cosmetics, documentation. + + * src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.java + (loadMany): Documented, added TODO. + 2011-09-27 Felix Wolfsteller Implement equals and hashCode for Recommendation, Recommendation.Facet diff -r 3e7717b6e2bc -r 2ce5d7ac9e60 flys-client/src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.java --- 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 artifacts = new ArrayList(); + // TODO Respect the index of what to clone. + // 1) Clone the Artifacts specified in >>recom<< for (Recommendation recom : recoms) { Artifact clone = ArtifactHelper.createArtifact(