Coverage Report - fr.paris.lutece.plugins.address.service.IAddressService
 
Classes in this File Line Coverage Branch Coverage Complexity
IAddressService
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) 2002-2017, Mairie de Paris
 3  
  * All rights reserved.
 4  
  *
 5  
  * Redistribution and use in source and binary forms, with or without
 6  
  * modification, are permitted provided that the following conditions
 7  
  * are met:
 8  
  *
 9  
  *  1. Redistributions of source code must retain the above copyright notice
 10  
  *     and the following disclaimer.
 11  
  *
 12  
  *  2. Redistributions in binary form must reproduce the above copyright notice
 13  
  *     and the following disclaimer in the documentation and/or other materials
 14  
  *     provided with the distribution.
 15  
  *
 16  
  *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
 17  
  *     contributors may be used to endorse or promote products derived from
 18  
  *     this software without specific prior written permission.
 19  
  *
 20  
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 21  
  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 22  
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 23  
  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
 24  
  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 25  
  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 26  
  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 27  
  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 28  
  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 29  
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 30  
  * POSSIBILITY OF SUCH DAMAGE.
 31  
  *
 32  
  * License 1.0
 33  
  */
 34  
 package fr.paris.lutece.plugins.address.service;
 35  
 
 36  
 import fr.paris.lutece.plugins.address.business.jaxb.Adresse;
 37  
 import fr.paris.lutece.util.ReferenceList;
 38  
 
 39  
 import java.rmi.RemoteException;
 40  
 
 41  
 import javax.servlet.http.HttpServletRequest;
 42  
 
 43  
 
 44  
 /**
 45  
  *
 46  
  */
 47  
 public interface IAddressService
 48  
 {
 49  
     /**
 50  
     * @throws RemoteException the RemoteExecption
 51  
     * @param request Request
 52  
     * @param labeladresse the  label adress
 53  
     * @return the XML flux of all adress corresponding
 54  
     *
 55  
     */
 56  
     ReferenceList searchAddress( HttpServletRequest request, String labeladresse )
 57  
         throws RemoteException;
 58  
 
 59  
     /**
 60  
      * @throws RemoteException the RemoteExecption
 61  
      * @param request Request
 62  
      * @param labeladresse the  label adress
 63  
      * @param strArrondissement Arrondissement
 64  
      * @return the XML flux of all adress corresponding
 65  
      *
 66  
      */
 67  
     ReferenceList searchAddress( HttpServletRequest request, String labeladresse, String strArrondissement )
 68  
         throws RemoteException;
 69  
 
 70  
     /**
 71  
      * @throws RemoteException the RemoteExecption
 72  
      * @param strSRID the srsid
 73  
      * @param request Request
 74  
      * @param labeladresse the  label adress
 75  
      * @param strArrondissement Arrondissement
 76  
      * @return the XML flux of all adress corresponding
 77  
      *
 78  
      */
 79  
     ReferenceList searchAddress( HttpServletRequest request, String labeladresse, String strSRID,
 80  
         String strArrondissement ) throws RemoteException;
 81  
 
 82  
     /**
 83  
     * @throws RemoteException the RemoteExecption
 84  
     * @param request Request
 85  
     * @param id the adress id
 86  
     * @param bIsTest if true test connect at web service, if false search an adress
 87  
     * @return the XML flux of an adress
 88  
     *
 89  
     */
 90  
     Adresse getAdresseInfo( HttpServletRequest request, long id, boolean bIsTest )
 91  
         throws RemoteException;
 92  
 
 93  
     /**
 94  
      * Finds the geolocalsation. Uses a default RSID.
 95  
      * @throws RemoteException the RemoteExecption
 96  
      * @param request Request
 97  
      * @param bIsTest if true test connect at web service, if false search an adress
 98  
      * @return the XML flux of an adress
 99  
      * @see WebServiceAddressService#getGeolocalisation(HttpServletRequest, String, String, boolean)
 100  
      *
 101  
      */
 102  
     public Adresse getGeolocalisation( HttpServletRequest request, String addresse, String date, boolean bIsTest )
 103  
         throws RemoteException;
 104  
 
 105  
     /**
 106  
      * @throws RemoteException the RemoteExecption
 107  
      * @param request Request
 108  
      * @param id the adress id
 109  
      * @param bIsTest if true test connect at web service, if false search an adress
 110  
      * @return the XML flux of an adress
 111  
      *
 112  
      */
 113  
     Adresse getGeolocalisation( HttpServletRequest request, long id, String strAddress, String strDate, boolean bIsTest )
 114  
         throws RemoteException;
 115  
 }