Changeset 542 for geisa/service


Ignore:
Timestamp:
07/30/12 18:23:29 (12 years ago)
Author:
npipsl
Message:

Début raffraichissement menu transition quand on clique dessus

Location:
geisa/service
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • geisa/service/implementation/com/ether/GeisaServiceImpl.java

    r541 r542  
    5151    } 
    5252 
    53     @NotNull 
    54     @Transactional(readOnly = true) 
    55     public List<Pair> getTransitionsLU( final List<String> isotopeNameArray, final Float spectralRangeLower, final Float spectralRangeUpper ) 
    56             throws ServiceException 
    57     { 
    58         try 
    59         { 
    60             return _isotopeG03DAO.getTransitionsLU( isotopeNameArray, spectralRangeLower, spectralRangeUpper ); 
    61         } 
    62         catch( PersistenceException e ) 
    63         { 
    64             throw new ServiceException( ServiceException.ServiceCode.ISOTOPE_NOT_FOUND, e ); 
    65         } 
    66     } 
     53 
    6754 
    6855    @NotNull 
     
    8976        } 
    9077    } 
     78 
     79    @NotNull 
     80    @Transactional(readOnly = true) 
     81    public Set<String> getTransitionsUpperByTransitionUpper( final Object geisaSelectedDatabase, final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionUpper) 
     82            throws ServiceException 
     83    { 
     84        try 
     85        { 
     86            if(geisaSelectedDatabase.equals( IsotopeG03.class.toString() )) 
     87                            return _isotopeG03DAO.getTransitionsUpperByTransitionUpper( isotopesSelectedNameList, spectralRangeLower, spectralRangeUpper, transitionUpper ); 
     88                        else if(geisaSelectedDatabase.equals( IsotopeG09.class.toString() )) 
     89                            return _isotopeG09DAO.getTransitionsUpperByTransitionUpper( isotopesSelectedNameList, spectralRangeLower, spectralRangeUpper, transitionUpper ); 
     90                        else if(geisaSelectedDatabase.equals( IsotopeIasiG03.class.toString() )) 
     91                            return _isotopeIasiG03DAO.getTransitionsUpperByTransitionUpper( isotopesSelectedNameList, spectralRangeLower, spectralRangeUpper, transitionUpper ); 
     92                        else 
     93                            return _isotopeIasiG09DAO.getTransitionsUpperByTransitionUpper( isotopesSelectedNameList, spectralRangeLower, spectralRangeUpper, transitionUpper ); 
     94 
     95 
     96        } 
     97        catch( PersistenceException e ) 
     98        { 
     99            throw new ServiceException( ServiceException.ServiceCode.ISOTOPE_NOT_FOUND, e ); 
     100        } 
     101    } 
     102 
     103 
    91104 
    92105    @NotNull 
  • geisa/service/interface/com/ether/GeisaService.java

    r541 r542  
    2121    List<IsotopeG03> getTransitionsByIsotopeG03Name( final List<String> isotopeNameArray, final Float spectralRangeLower, final Float spectralRangeUpper ) throws ServiceException; 
    2222 
    23     @NotNull 
    24     List<Pair> getTransitionsLU( final List<String> isotopeNameArray, final Float spectralRangeLower, final Float spectralRangeUpper ) throws ServiceException; 
    2523 
    2624    @NotNull 
    2725    Set<String> getTransitionsUpperByTransitionLower( final Object geisaSelectedDatabase, final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionLower ) 
    2826              throws ServiceException; 
     27 
     28    @NotNull 
     29    Set<String> getTransitionsUpperByTransitionUpper( final Object geisaSelectedDatabase, final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionUpper ) 
     30              throws ServiceException; 
     31 
    2932    @NotNull 
    3033    Set<String> getTransitionsLower( final Object geisaSelectedDatabase, final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper ) 
Note: See TracChangeset for help on using the changeset viewer.