SearchResult.java

  1. /*
  2.  * Copyright (c) 2002-2022, City of 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.portal.service.search;

  35. import java.util.Date;
  36. import java.util.List;

  37. /**
  38.  * SearchResult
  39.  */
  40. public class SearchResult
  41. {
  42.     // Variables declarations
  43.     private String _strId;
  44.     private Date _date;
  45.     private String _strUrl;
  46.     private String _strTitle;
  47.     private String _strSummary;
  48.     private String _strType;
  49.     private List<String> _listRoles;

  50.     /**
  51.      * Returns the Id
  52.      *
  53.      * @return The Id
  54.      */
  55.     public String getId( )
  56.     {
  57.         return _strId;
  58.     }

  59.     /**
  60.      * Sets the Id
  61.      *
  62.      * @param strId
  63.      *            The Id
  64.      */
  65.     public void setId( String strId )
  66.     {
  67.         _strId = strId;
  68.     }

  69.     /**
  70.      * Returns the Date
  71.      *
  72.      * @return The Date
  73.      */
  74.     public Date getDate( )
  75.     {
  76.         return _date;
  77.     }

  78.     /**
  79.      * Sets the Date
  80.      *
  81.      * @param date
  82.      *            The Date
  83.      */
  84.     public void setDate( Date date )
  85.     {
  86.         _date = date;
  87.     }

  88.     /**
  89.      * Returns the Url
  90.      *
  91.      * @return The Url
  92.      */
  93.     public String getUrl( )
  94.     {
  95.         return _strUrl;
  96.     }

  97.     /**
  98.      * Sets the Url
  99.      *
  100.      * @param strUrl
  101.      *            The Url
  102.      */
  103.     public void setUrl( String strUrl )
  104.     {
  105.         _strUrl = strUrl;
  106.     }

  107.     /**
  108.      * Returns the Title
  109.      *
  110.      * @return The Title
  111.      */
  112.     public String getTitle( )
  113.     {
  114.         return _strTitle;
  115.     }

  116.     /**
  117.      * Sets the Title
  118.      *
  119.      * @param strTitle
  120.      *            The Title
  121.      */
  122.     public void setTitle( String strTitle )
  123.     {
  124.         _strTitle = strTitle;
  125.     }

  126.     /**
  127.      * Returns the Summary
  128.      *
  129.      * @return The Summary
  130.      */
  131.     public String getSummary( )
  132.     {
  133.         return _strSummary;
  134.     }

  135.     /**
  136.      * Sets the Summary
  137.      *
  138.      * @param strSummary
  139.      *            The Summary
  140.      */
  141.     public void setSummary( String strSummary )
  142.     {
  143.         _strSummary = strSummary;
  144.     }

  145.     /**
  146.      * Returns the Type
  147.      *
  148.      * @return The Type
  149.      */
  150.     public String getType( )
  151.     {
  152.         return _strType;
  153.     }

  154.     /**
  155.      * Sets the Type
  156.      *
  157.      * @param strType
  158.      *            The Type
  159.      */
  160.     public void setType( String strType )
  161.     {
  162.         _strType = strType;
  163.     }

  164.     /**
  165.      * Return the list of roles
  166.      *
  167.      * @return the list of roles
  168.      */
  169.     public List<String> getRoles( )
  170.     {
  171.         return _listRoles;
  172.     }

  173.     /**
  174.      * Sets the list of roles
  175.      *
  176.      * @param listRoles
  177.      *            the list of roles
  178.      */
  179.     public void setRole( List<String> listRoles )
  180.     {
  181.         _listRoles = listRoles;
  182.     }
  183. }