Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1271:3e7717b6e2bc | 1272:2ce5d7ac9e60 |
---|---|
49 } | 49 } |
50 | 50 |
51 throw new ServerException(ERROR_LOAD_ARTIFACT); | 51 throw new ServerException(ERROR_LOAD_ARTIFACT); |
52 } | 52 } |
53 | 53 |
54 | |
55 /** | |
56 * Clone one or more artifacts and add it to a collection. | |
57 * | |
58 * @param parent Collection where clones will be added to. | |
59 * @param recommendations definitions of source of clone. | |
60 * @param factory name of factory to use when cloning artifacts. | |
61 */ | |
54 public Artifact[] loadMany( | 62 public Artifact[] loadMany( |
55 Collection parent, | 63 Collection parent, |
56 Recommendation[] recoms, | 64 Recommendation[] recoms, |
57 String factory, | 65 String factory, |
58 String url, | 66 String url, |
59 String locale | 67 String locale |
60 ) | 68 ) |
61 throws ServerException { | 69 throws ServerException { |
62 System.out.println( | 70 System.out.println("LoadArtifactServiceImpl.loadMany: " |
63 "LoadArtifactServiceImpl.loadMany: " + recoms[0].getMasterArtifact()); | 71 + recoms[0].getMasterArtifact()); |
64 ArrayList<Artifact> artifacts = new ArrayList<Artifact>(); | 72 ArrayList<Artifact> artifacts = new ArrayList<Artifact>(); |
73 | |
74 // TODO Respect the index of what to clone. | |
65 | 75 |
66 // 1) Clone the Artifacts specified in >>recom<< | 76 // 1) Clone the Artifacts specified in >>recom<< |
67 for (Recommendation recom : recoms) { | 77 for (Recommendation recom : recoms) { |
68 Artifact clone = ArtifactHelper.createArtifact( | 78 Artifact clone = ArtifactHelper.createArtifact( |
69 url, locale, factory, recom); | 79 url, locale, factory, recom); |