Changeset 444 for tapas/service
- Timestamp:
- 04/02/12 15:14:31 (12 years ago)
- Location:
- tapas/service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tapas/service/implementation/com/ether/TapasServiceImpl.java
r440 r444 32 32 { 33 33 34 final String fichier = "/home_local/workspace/request 1.xml";34 final String fichier = "/home_local/workspace/request2.xml"; 35 35 36 36 final Element tapas = new Element( "tapas" ); … … 40 40 //On crée un nouveau Document JDOM basé sur la racine que l'on vient de créer 41 41 final Document document = new Document( tapas ); 42 43 44 //a terme recuperer id tapas via la BDD 45 fTapas.setId( "124" ); 42 46 43 47 final Attribute id = new Attribute( "Id", fTapas.getId() ); … … 58 62 // Element format 59 63 final Element format = new Element( "format" ); 60 final Attribute validF = new Attribute( "valid", iRequest.getPreference().getFormat().getFirstValue() ); 64 //final Attribute validF = new Attribute( "valid", iRequest.getPreference().getFormat().getFirstValue() ); 65 final Attribute validF = new Attribute( "valid", "ACII,FITS,NETCDF" ); 61 66 format.setAttribute( validF ); 62 67 format.setText( iRequest.getPreference().getFormat().getSecondValue() ); 68 63 69 preferences.addContent( format ); 64 70 65 71 // Element rayleighExtinction 66 final Element rayleighExtinction = new Element( "rayleigh_extinction" );72 /* final Element rayleighExtinction = new Element( "rayleigh_extinction" ); 67 73 final Attribute validR = new Attribute( "valid", iRequest.getPreference().getRayleighExtinction().getFirstValue() ); 68 74 rayleighExtinction.setAttribute( validR ); 69 75 rayleighExtinction.setText( iRequest.getPreference().getRayleighExtinction().getSecondValue() ); 70 preferences.addContent( rayleighExtinction ); 76 preferences.addContent( rayleighExtinction );*/ 71 77 72 //73 78 74 79 request.addContent( preferences ); 75 80 76 81 // OBSERVATORIES 82 //recuperer les coordonnees obervatoire avec requete sql : methode de tapas services -> appel methode couche persistence 83 // TapasService 77 84 78 85 86 //creer le nome des fichiers input ECMW F + ARLETTY à partir du nom court de l'observatoire 87 // + calculer le bonne heure de mesure en fonction de la date demandée : 00 06 12 ou 18h 88 //TapasService 89 90 91 //créer le num de le requete en lisant dans bdd 79 92 80 93 -
tapas/service/interface/com/ether/TapasService.java
r419 r444 16 16 extends BackofficeService 17 17 { 18 18 19 public void createXMLRequest( @NotNull final Tapas tapas ); 19 20 … … 21 22 22 23 public List<Observatory> getAllObservatories() throws ServiceException; 24 23 25 }
Note: See TracChangeset
for help on using the changeset viewer.