Changeset 490 for tapas/web/src


Ignore:
Timestamp:
04/26/12 15:42:13 (12 years ago)
Author:
rboipsl
Message:

ajout onglets

Location:
tapas/web/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tapas/web/src/com/ether/Controller.java

    r480 r490  
    1616import java.io.IOException; 
    1717import java.util.ArrayList; 
     18import java.util.Date; 
    1819import java.util.List; 
    1920import java.util.Properties; 
     
    3738     * @throws WebException 
    3839     */ 
    39     @ControllerMethod(view = VIEW_FORM_TAPAS, loginMandatory = true, defaultView = VIEW_INDEX) 
     40    @ControllerMethod(view = VIEW_FORM_TAPAS, loginMandatory = false, defaultView = VIEW_INDEX) 
    4041    public JSONObject viewForm() 
    4142            throws WebException 
    4243    { 
    43         try 
    44         { 
    45             final List<Observatory> allObservatories = getTapasService().getAllObservatories(); 
     44        /*try 
     45        { */ 
     46            //final List<Observatory> allObservatories = getTapasService().getAllObservatories(); 
    4647 
    4748            final JSONObject jsonObject = new JSONObject(); 
    4849            jsonObject.put( "jSonFileFormats", getJSONFileFormat() ); 
    4950            jsonObject.put( "jSonYesNos", getJSONYesNo() ); 
    50             jsonObject.put( "jSonObservatories", allObservatories ); 
     51            //jsonObject.put( "jSonObservatories", allObservatories ); 
    5152            jsonObject.put( "jSonSpectralUnits", getJSONSpectralUnit() ); 
    5253            jsonObject.put( "jSonInstrumentalFunctions", getJSONInstrumentalFunction() ); 
    5354            jsonObject.put( "jSonClimatoReferences", getJSONClimatoReference() ); 
    5455            return jsonObject; 
    55         } 
    56         catch( ServiceException e ) 
     56        //} 
     57        /*catch( ServiceException e ) 
    5758        { 
    5859            throw new WebException( WebException.WebCode.ERROR_NO_OBSERVATORY_FOUND, e ); 
    59         } 
     60        } */ 
    6061 
    6162    } 
     
    7374     * @throws WebException 
    7475     */ 
    75     @ControllerMethod(jsonResult = true, userMandatory = true, defaultView = VIEW_INDEX) 
    76     public JSONObject createUserRequest( @ParamName("jsonTapas") @Mandatory @UseJSON final Tapas javaTapas, @NotNull final User user ) // TODO rajouter parametre USER 
     76    //@ControllerMethod(jsonResult = true, userMandatory = true, defaultView = VIEW_INDEX) 
     77    @ControllerMethod(jsonResult = true, userMandatory = false, defaultView = VIEW_INDEX) 
     78    //public JSONObject createUserRequest( @ParamName("jsonTapas") @Mandatory @UseJSON final Tapas javaTapas, @NotNull final User user ) 
     79    public JSONObject createUserRequest( @ParamName("jsonTapas") @Mandatory @UseJSON final Tapas javaTapas ) 
    7780            throws WebException 
    7881    { 
     82 
     83        /***********/ 
     84        final User user= new User(); 
     85        user.setId( 12 ); 
     86        user.setLastName( "tamere" ); 
     87        user.setEmail( "rbopipsl@ipsl.jussieu.fr" ); 
     88        user.setCreationDate( new Date() ); 
     89        user.setPassword( "pif" ); 
     90        /******/ 
     91 
    7992        if( null == javaTapas ) 
    8093            throw new WebException( WebException.WebCode.ERROR_JSON_TAPAS_IS_NULL, "Serialization error : jsonTapas is null", WebException.getExceptionThrowable() ); 
     
    115128        try 
    116129        { 
    117             getTapasService().execAppelQSub( user, prop ); 
     130            getTapasService().execAppelQSub( "popo", user, prop ); 
    118131        } 
    119132        catch( ServiceException e ) 
  • tapas/web/src/messages_en.properties

    r489 r490  
    3030text.NONE=None 
    3131text.badvalue=bad value 
     32text.toselect=must be selected 
    3233 
     34label.delButton=CANCEL 
    3335 
    3436 
     
    5557error.ERROR_JSON_TAPAS_IS_NULL=Error to create the form 
    5658 
    57 label.submitButton=RUN 
     59label.submitButton=EXECUTE 
     60label.addButton=ADD REQUEST 
    5861label.confirm=ARE YOU SURE YOU WANT TO SEND THIS REQUEST ? 
     62label.requete=Request 
    5963 
    6064label.spectralUnit.NM_STANDARD=Standard Wavelength (nm) 
  • tapas/web/src/messages_fr.properties

    r489 r490  
    2727label.preferences=Préférences 
    2828 
     29label.delButton=ANNULER 
     30 
    2931text.validnum=doit être numérique 
    3032text.select=Sélectionnez 
    3133text.badvalue=mauvaise valeur 
    3234text.NONE=Aucune 
     35text.toselect=à sélectionner 
    3336 
    3437 
     
    4144 
    4245title.home=Accueil 
    43 title.form=Formulaire reqête 
     46title.form=Formulaire requête 
    4447title.legals=Mentions légales 
    4548 
     
    5861 
    5962label.submitButton=EXECUTER 
     63label.addButton=ENREGISTRER 
     64label.requete=Requete 
    6065 
    6166label.spectralUnit.NM_STANDARD=Standard Wavelength (nm) 
Note: See TracChangeset for help on using the changeset viewer.