comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/services/MetaDataService.java @ 792:9b9bf42b7928

Added and repaired JavaDoc in artifacts package. gnv-artifacts/trunk@874 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 31 Mar 2010 10:52:34 +0000
parents c4156275c1e1
children feae2f9d6c6f
comparison
equal deleted inserted replaced
791:23877dd69444 792:9b9bf42b7928
91 public MetaDataService() { 91 public MetaDataService() {
92 super(); 92 super();
93 } 93 }
94 94
95 /** 95 /**
96 * @param data
97 * @param globalContext
98 * @param callMeta
99 * @return
96 * @see de.intevation.artifactdatabase.DefaultService#process(org.w3c.dom.Document, java.lang.Object, de.intevation.artifacts.CallMeta) 100 * @see de.intevation.artifactdatabase.DefaultService#process(org.w3c.dom.Document, java.lang.Object, de.intevation.artifacts.CallMeta)
97 */ 101 */
98 @Override 102 @Override
103 @SuppressWarnings({"static-access", "static-access"})
99 public Document process(Document data, Object globalContext, 104 public Document process(Document data, Object globalContext,
100 CallMeta callMeta) { 105 CallMeta callMeta) {
101 log.debug("MetaDataService.process"); 106 log.debug("MetaDataService.process");
102 Document document = null; 107 Document document = null;
103 try { 108 try {
105 Collection<MapService> mapServices = this.parseMapServices(data); 110 Collection<MapService> mapServices = this.parseMapServices(data);
106 Collection<FIS> resultFIS = this.unionFIS(this.getFIS(g), 111 Collection<FIS> resultFIS = this.unionFIS(this.getFIS(g),
107 this.getFIS(mapServices)); 112 this.getFIS(mapServices));
108 document = XMLUtils.newDocument(); 113 document = XMLUtils.newDocument();
109 this.writeFIS2Document(document, resultFIS); 114 this.writeFIS2Document(document, resultFIS);
110 log.debug(new ArtifactXMLUtilities().writeDocument2String(document)); 115 log.debug(ArtifactXMLUtilities.writeDocument2String(document));
111 } catch (MetaDataServiceException e) { 116 } catch (MetaDataServiceException e) {
112 log.error(e,e); 117 log.error(e,e);
113 document = new ArtifactXMLUtilities() 118 document = ArtifactXMLUtilities
114 .createExceptionReport(e.getMessage(), document); 119 .createExceptionReport(e.getMessage(), document);
115 } 120 }
116 return document; 121 return document;
117 } 122 }
118 123
260 265
261 /** 266 /**
262 * Returns all FIS which Areas is intersected by this given Geometry 267 * Returns all FIS which Areas is intersected by this given Geometry
263 * @param g the Geometry which should be used to determine the FIS. 268 * @param g the Geometry which should be used to determine the FIS.
264 * @return all FIS which Areas is intersected by this given Geometry 269 * @return all FIS which Areas is intersected by this given Geometry
270 * @throws MetaDataServiceException
265 */ 271 */
266 protected Collection<FIS> getFIS(Geometry g) 272 protected Collection<FIS> getFIS(Geometry g)
267 throws MetaDataServiceException{ 273 throws MetaDataServiceException{
268 log.debug("MetaDataService.getFIS ==> Geometry"); 274 log.debug("MetaDataService.getFIS ==> Geometry");
269 Collection<FIS> resultValue = null; 275 Collection<FIS> resultValue = null;
294 300
295 /** 301 /**
296 * Returns all FIS which were represented by the given Mapservices 302 * Returns all FIS which were represented by the given Mapservices
297 * @param mapServices the Mapservices which should determine the FIS. 303 * @param mapServices the Mapservices which should determine the FIS.
298 * @return all FIS which where represented my the given Mapservices. 304 * @return all FIS which where represented my the given Mapservices.
305 * @throws MetaDataServiceException
299 */ 306 */
300 protected Collection<FIS> getFIS(Collection<MapService> mapServices) 307 protected Collection<FIS> getFIS(Collection<MapService> mapServices)
301 throws MetaDataServiceException{ 308 throws MetaDataServiceException{
302 log.debug("MetaDataService.getFIS ==> MapServices"); 309 log.debug("MetaDataService.getFIS ==> MapServices");
303 Collection<FIS> resultValue = null; 310 Collection<FIS> resultValue = null;
415 } 422 }
416 } 423 }
417 return null; 424 return null;
418 } 425 }
419 426
427 @SuppressWarnings("empty-statement")
420 private String createLayerQueryString(Collection<Layer> layer){ 428 private String createLayerQueryString(Collection<Layer> layer){
421 log.debug("MetaDataService.createLayerQueryString"); 429 log.debug("MetaDataService.createLayerQueryString");
422 StringBuffer sb = new StringBuffer();; 430 StringBuffer sb = new StringBuffer();;
423 Iterator<Layer> it = layer.iterator(); 431 Iterator<Layer> it = layer.iterator();
424 synchronized (sb) { 432 synchronized (sb) {
441 } 449 }
442 return returnValue; 450 return returnValue;
443 } 451 }
444 452
445 /** 453 /**
454 * @param factory
455 * @param globalContext
446 * @see de.intevation.artifactdatabase.DefaultService#setup(de.intevation.artifacts.ServiceFactory, java.lang.Object) 456 * @see de.intevation.artifactdatabase.DefaultService#setup(de.intevation.artifacts.ServiceFactory, java.lang.Object)
447 */ 457 */
448 @Override 458 @Override
449 public void setup(ServiceFactory factory, Object globalContext) { 459 public void setup(ServiceFactory factory, Object globalContext) {
450 log.debug("MetaDataService.setup"); 460 log.debug("MetaDataService.setup");

http://dive4elements.wald.intevation.org