View Javadoc
1   /*
2    * Copyright (c) 2002-2014, 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.calendar.business;
35  
36  import fr.paris.lutece.portal.service.image.ImageResource;
37  
38  import java.io.Serializable;
39  import java.util.Date;
40  
41  
42  /**
43   * This interface describes the minimum implementation for events
44   */
45  public interface Event extends Serializable
46  {
47      /**
48       * Returns a date as an object java.util.Date
49       * @return The date code
50       */
51      Date getDate( );
52  
53      /**
54       * Returns the id of the event
55       * 
56       * @return The id
57       */
58      int getId( );
59  
60      /**
61       * Returns the Title
62       * 
63       * @return The Title
64       */
65      String getTitle( );
66  
67      /**
68       * Returns the Location
69       * 
70       * @return The Location
71       */
72      String getLocation( );
73  
74      /**
75       * Returns the EventClass
76       * 
77       * @return The EventClass
78       */
79      String getEventClass( );
80  
81      /**
82       * Returns the Description
83       * 
84       * @return The Description
85       */
86      String getDescription( );
87  
88      /**
89       * Returns the DateTimeStart
90       * 
91       * @return The DateTimeStart
92       */
93      String getDateTimeStart( );
94  
95      /**
96       * Returns the DateEnd
97       * 
98       * @return The DateEnd
99       */
100     String getDateTimeEnd( );
101 
102     /**
103      * Returns the Status
104      * 
105      * @return The Status
106      */
107     String getStatus( );
108 
109     /**
110      * Returns the Priority
111      * 
112      * @return The Priority
113      */
114     int getPriority( );
115 
116     /**
117      * Returns the Url
118      * 
119      * @return The Url
120      */
121     String getUrl( );
122 
123     /**
124      * Returns the periodicity
125      * 
126      * @return The periodicity
127      */
128     int getPeriodicity( );
129 
130     /**
131      * Returns the occurrence
132      * 
133      * @return The occurrence
134      */
135     int getOccurrence( );
136 
137     /**
138      * Returns the date end
139      * 
140      * @return The date end
141      */
142     Date getDateEnd( );
143 
144     /**
145      * Returns the location Town
146      * 
147      * @return The location Town
148      */
149     String getLocationTown( );
150 
151     /**
152      * Returns the location Zip
153      * 
154      * @return The location Zip
155      */
156     String getLocationZip( );
157 
158     /**
159      * Returns the location Address
160      * 
161      * @return The location Address
162      */
163     String getLocationAddress( );
164 
165     /**
166      * Returns the date end
167      * 
168      * @return The date end
169      */
170     String getMapUrl( );
171 
172     /**
173      * Returns the link Url
174      * 
175      * @return The link Url
176      */
177     String getLinkUrl( );
178 
179     /**
180      * Returns the document id
181      * 
182      * @return The document id
183      */
184     int getDocumentId( );
185 
186     /**
187      * Returns the page Url
188      * 
189      * @return The page Url
190      */
191     String getPageUrl( );
192 
193     /**
194      * Returns the top Event
195      * 
196      * @return The top Event
197      */
198     int getTopEvent( );
199 
200     /**
201      * Returns the ImageResource
202      * 
203      * @return the ImageResource
204      */
205     ImageResource getImageResource( );
206 
207     /**
208      * Returns search type
209      * 
210      * @return The search type
211      */
212     String getType( );
213 
214     /**
215      * Get the creation date
216      * @return the creation date
217      */
218     Date getDateCreation( );
219 
220     /**
221      * Get the id of calendar
222      * @return the id of calendar
223      */
224     int getIdCalendar( );
225 }