Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.java @ 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 | 9976d99aea34 |
children | 489e6a82fe84 |
line wrap: on
line diff
--- 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(