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.updatercatalog.business;
35
36 import java.util.ArrayList;
37 import java.util.List;
38
39
40 /**
41 *
42 */
43 public class CatalogPluginEntry
44 {
45 // Variables declarations
46 private int _nReleaseId;
47 private String _strPluginName;
48 private String _strPluginLocale;
49 private String _strPluginDescription;
50 private String _strPluginAuthor;
51 private String _strUrlHomepage;
52 private String _strPluginVersion;
53 private String _strUrlDownload;
54 private String _strCoreVersionMin;
55 private String _strCoreVersionMax;
56 private List<ReleaseUpgrade> _listUpgrades = new ArrayList<ReleaseUpgrade>( );
57
58 /**
59 * Returns the ReleaseId
60 * @return The ReleaseId
61 */
62 public int getReleaseId( )
63 {
64 return _nReleaseId;
65 }
66
67 /**
68 * Sets the ReleaseId
69 * @param nReleaseId The ReleaseId
70 */
71 public void setReleaseId( int nReleaseId )
72 {
73 _nReleaseId = nReleaseId;
74 }
75
76 /**
77 * Returns the PluginName
78 * @return The PluginName
79 */
80 public String getPluginName( )
81 {
82 return _strPluginName;
83 }
84
85 /**
86 * Sets the PluginName
87 * @param strPluginName The PluginName
88 */
89 public void setPluginName( String strPluginName )
90 {
91 _strPluginName = strPluginName;
92 }
93
94 /**
95 * Returns the PluginLocale
96 * @return The PluginLocale
97 */
98 public String getPluginLocale( )
99 {
100 return _strPluginLocale;
101 }
102
103 /**
104 * Sets the PluginLocale
105 * @param strPluginLocale The PluginLocale
106 */
107 public void setPluginLocale( String strPluginLocale )
108 {
109 _strPluginLocale = strPluginLocale;
110 }
111
112 /**
113 * Returns the PluginDescription
114 * @return The PluginDescription
115 */
116 public String getPluginDescription( )
117 {
118 return _strPluginDescription;
119 }
120
121 /**
122 * Sets the PluginDescription
123 * @param strPluginDescription The PluginDescription
124 */
125 public void setPluginDescription( String strPluginDescription )
126 {
127 _strPluginDescription = strPluginDescription;
128 }
129
130 /**
131 * Returns the PluginAuthor
132 * @return The PluginAuthor
133 */
134 public String getPluginAuthor( )
135 {
136 return _strPluginAuthor;
137 }
138
139 /**
140 * Sets the PluginAuthor
141 * @param strPluginAuthor The PluginAuthor
142 */
143 public void setPluginAuthor( String strPluginAuthor )
144 {
145 _strPluginAuthor = strPluginAuthor;
146 }
147
148 /**
149 * Returns the UrlHomepage
150 * @return The UrlHomepage
151 */
152 public String getUrlHomepage( )
153 {
154 return _strUrlHomepage;
155 }
156
157 /**
158 * Sets the UrlHomepage
159 * @param strUrlHomepage The UrlHomepage
160 */
161 public void setUrlHomepage( String strUrlHomepage )
162 {
163 _strUrlHomepage = strUrlHomepage;
164 }
165
166 /**
167 * Returns the PluginVersion
168 * @return The PluginVersion
169 */
170 public String getPluginVersion( )
171 {
172 return _strPluginVersion;
173 }
174
175 /**
176 * Sets the PluginVersion
177 * @param strPluginVersion The PluginVersion
178 */
179 public void setPluginVersion( String strPluginVersion )
180 {
181 _strPluginVersion = strPluginVersion;
182 }
183
184 /**
185 * Returns the UrlDownload
186 * @return The UrlDownload
187 */
188 public String getUrlDownload( )
189 {
190 return _strUrlDownload;
191 }
192
193 /**
194 * Sets the UrlDownload
195 * @param strUrlDownload The UrlDownload
196 */
197 public void setUrlDownload( String strUrlDownload )
198 {
199 _strUrlDownload = strUrlDownload;
200 }
201
202 /**
203 * Returns the CoreVersionMin
204 * @return The CoreVersionMin
205 */
206 public String getCoreVersionMin( )
207 {
208 return _strCoreVersionMin;
209 }
210
211 /**
212 * Sets the CoreVersionMin
213 * @param strCoreVersionMin The CoreVersionMin
214 */
215 public void setCoreVersionMin( String strCoreVersionMin )
216 {
217 _strCoreVersionMin = strCoreVersionMin;
218 }
219
220 /**
221 * Returns the CoreVersionMax
222 * @return The CoreVersionMax
223 */
224 public String getCoreVersionMax( )
225 {
226 return _strCoreVersionMax;
227 }
228
229 /**
230 * Sets the CoreVersionMax
231 * @param strCoreVersionMax The CoreVersionMax
232 */
233 public void setCoreVersionMax( String strCoreVersionMax )
234 {
235 _strCoreVersionMax = strCoreVersionMax;
236 }
237
238 /**
239 * Returns a list of all upgrades
240 * @return A list of upgrades
241 */
242 public List<ReleaseUpgrade> getUpgrades( )
243 {
244 return _listUpgrades;
245 }
246
247 /**
248 * Add an upgrade
249 * @param upgrade The upgrade
250 */
251 void addUpgrade( ReleaseUpgrade upgrade )
252 {
253 _listUpgrades.add( upgrade );
254 }
255 }