Changeset 444 for tapas/service


Ignore:
Timestamp:
04/02/12 15:14:31 (12 years ago)
Author:
rboipsl
Message:

creation form jsp

Location:
tapas/service
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tapas/service/implementation/com/ether/TapasServiceImpl.java

    r440 r444  
    3232    { 
    3333 
    34         final String fichier = "/home_local/workspace/request1.xml"; 
     34        final String fichier = "/home_local/workspace/request2.xml"; 
    3535 
    3636        final Element tapas = new Element( "tapas" ); 
     
    4040        //On crée un nouveau Document JDOM basé sur la racine que l'on vient de créer 
    4141        final Document document = new Document( tapas ); 
     42 
     43 
     44        //a terme recuperer id tapas via la BDD 
     45        fTapas.setId( "124" ); 
    4246 
    4347        final Attribute id = new Attribute( "Id", fTapas.getId() ); 
     
    5862            // Element format 
    5963            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" ); 
    6166            format.setAttribute( validF ); 
    6267            format.setText( iRequest.getPreference().getFormat().getSecondValue() ); 
     68 
    6369            preferences.addContent( format ); 
    6470 
    6571            // Element rayleighExtinction 
    66             final Element rayleighExtinction = new Element( "rayleigh_extinction" ); 
     72           /* final Element rayleighExtinction = new Element( "rayleigh_extinction" ); 
    6773            final Attribute validR = new Attribute( "valid", iRequest.getPreference().getRayleighExtinction().getFirstValue() ); 
    6874            rayleighExtinction.setAttribute( validR ); 
    6975            rayleighExtinction.setText( iRequest.getPreference().getRayleighExtinction().getSecondValue() ); 
    70             preferences.addContent( rayleighExtinction ); 
     76            preferences.addContent( rayleighExtinction );*/ 
    7177 
    72             // 
    7378 
    7479            request.addContent( preferences ); 
    7580 
    7681            // OBSERVATORIES 
     82            //recuperer les coordonnees obervatoire avec requete sql : methode de tapas services -> appel methode couche persistence 
     83            // TapasService 
    7784 
    7885 
     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 
    7992 
    8093 
  • tapas/service/interface/com/ether/TapasService.java

    r419 r444  
    1616        extends BackofficeService 
    1717{ 
     18 
    1819    public void createXMLRequest( @NotNull final Tapas tapas ); 
    1920 
     
    2122 
    2223    public List<Observatory> getAllObservatories() throws ServiceException; 
     24 
    2325} 
Note: See TracChangeset for help on using the changeset viewer.