View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.apache.jetspeed.portlets.rpad;
18  
19  import java.sql.Date;
20  import java.util.ArrayList;
21  import java.util.List;
22  import java.util.Locale;
23  
24  public class PortletApplication
25  {
26      private Date created = null;
27  
28      private Date lastModified = null;
29  
30      private String portletSpecVersion = null;
31  
32      private String groupId = null;
33  
34      private String artifactId = null;
35  
36      private String packaging = null;
37  
38      private String version = null;
39  
40      private String name = null;
41  
42      private String description = null;
43  
44      private List tags = new ArrayList();
45  
46      private String publisherName = null;
47  
48      private String publisherUrl = null;
49  
50      private String binaryUrl = null;
51  
52      private String sourceUrl = null;
53  
54      private String imageUrl = null;
55  
56      //TODO
57      //    private Map dependencies;
58  
59      private String licenseName = null;
60  
61      private String licenseUrl = null;
62  
63      private String compiledJDKVersion = null;
64  
65      private List supportedLocales = new ArrayList();
66  
67      public PortletApplication()
68      {
69  
70      }
71  
72      public void addTag(String category)
73      {
74          tags.add(category);
75      }
76  
77      public List getTags()
78      {
79          return tags;
80      }
81  
82      public void addSupportedLocale(Locale locale)
83      {
84          supportedLocales.add(locale);
85      }
86  
87      public List getSupportedLocales()
88      {
89          return supportedLocales;
90      }
91  
92      /***
93       * @return the artifactId
94       */
95      public String getArtifactId()
96      {
97          return artifactId;
98      }
99  
100     /***
101      * @param artifactId the artifactId to set
102      */
103     public void setArtifactId(String artifactId)
104     {
105         this.artifactId = artifactId;
106     }
107 
108     /***
109      * @return the binaryUrl
110      */
111     public String getBinaryUrl()
112     {
113         return binaryUrl;
114     }
115 
116     /***
117      * @param binaryUrl the binaryUrl to set
118      */
119     public void setBinaryUrl(String binaryUrl)
120     {
121         this.binaryUrl = binaryUrl;
122     }
123 
124     /***
125      * @return the created
126      */
127     public Date getCreated()
128     {
129         return created;
130     }
131 
132     /***
133      * @param created the created to set
134      */
135     public void setCreated(Date created)
136     {
137         this.created = created;
138     }
139 
140     /***
141      * @return the description
142      */
143     public String getDescription()
144     {
145         return description;
146     }
147 
148     /***
149      * @param description the description to set
150      */
151     public void setDescription(String description)
152     {
153         this.description = description;
154     }
155 
156     /***
157      * @return the groupId
158      */
159     public String getGroupId()
160     {
161         return groupId;
162     }
163 
164     /***
165      * @param groupId the groupId to set
166      */
167     public void setGroupId(String groupId)
168     {
169         this.groupId = groupId;
170     }
171 
172     /***
173      * @return the javaBuildVersion
174      */
175     public String getCompiledJDKVersion()
176     {
177         return compiledJDKVersion;
178     }
179 
180     /***
181      * @param javaBuildVersion the javaBuildVersion to set
182      */
183     public void setCompiledJDKVersion(String javaBuildVersion)
184     {
185         this.compiledJDKVersion = javaBuildVersion;
186     }
187 
188     /***
189      * @return the lastModified
190      */
191     public Date getLastModified()
192     {
193         return lastModified;
194     }
195 
196     /***
197      * @param lastModified the lastModified to set
198      */
199     public void setLastModified(Date lastModified)
200     {
201         this.lastModified = lastModified;
202     }
203 
204     /***
205      * @return the namme
206      */
207     public String getName()
208     {
209         return name;
210     }
211 
212     /***
213      * @param namme the namme to set
214      */
215     public void setName(String namme)
216     {
217         this.name = namme;
218     }
219 
220     /***
221      * @return the packaging
222      */
223     public String getPackaging()
224     {
225         return packaging;
226     }
227 
228     /***
229      * @param packaging the packaging to set
230      */
231     public void setPackaging(String packaging)
232     {
233         this.packaging = packaging;
234     }
235 
236     /***
237      * @return the portletSpecVersion
238      */
239     public String getPortletSpecVersion()
240     {
241         return portletSpecVersion;
242     }
243 
244     /***
245      * @param portletSpecVersion the portletSpecVersion to set
246      */
247     public void setPortletSpecVersion(String portletSpecVersion)
248     {
249         this.portletSpecVersion = portletSpecVersion;
250     }
251 
252     /***
253      * @return the publisherName
254      */
255     public String getPublisherName()
256     {
257         return publisherName;
258     }
259 
260     /***
261      * @param publisherName the publisherName to set
262      */
263     public void setPublisherName(String publisherName)
264     {
265         this.publisherName = publisherName;
266     }
267 
268     /***
269      * @return the publisherUrl
270      */
271     public String getPublisherUrl()
272     {
273         return publisherUrl;
274     }
275 
276     /***
277      * @param publisherUrl the publisherUrl to set
278      */
279     public void setPublisherUrl(String publisherUrl)
280     {
281         this.publisherUrl = publisherUrl;
282     }
283 
284     /***
285      * @return the sourceUrl
286      */
287     public String getSourceUrl()
288     {
289         return sourceUrl;
290     }
291 
292     /***
293      * @param sourceUrl the sourceUrl to set
294      */
295     public void setSourceUrl(String sourceUrl)
296     {
297         this.sourceUrl = sourceUrl;
298     }
299 
300     /***
301      * @return the thumbnailUrl
302      */
303     public String getImageUrl()
304     {
305         return imageUrl;
306     }
307 
308     /***
309      * @param thumbnailUrl the thumbnailUrl to set
310      */
311     public void setImageUrl(String thumbnailUrl)
312     {
313         this.imageUrl = thumbnailUrl;
314     }
315 
316     /***
317      * @return the version
318      */
319     public String getVersion()
320     {
321         return version;
322     }
323 
324     /***
325      * @param version the version to set
326      */
327     public void setVersion(String version)
328     {
329         this.version = version;
330     }
331 
332     /***
333      * @return the licenseName
334      */
335     public String getLicenseName()
336     {
337         return licenseName;
338     }
339 
340     /***
341      * @param licenseName the licenseName to set
342      */
343     public void setLicenseName(String licenseName)
344     {
345         this.licenseName = licenseName;
346     }
347 
348     /***
349      * @return the licenseUrl
350      */
351     public String getLicenseUrl()
352     {
353         return licenseUrl;
354     }
355 
356     /***
357      * @param licenseUrl the licenseUrl to set
358      */
359     public void setLicenseUrl(String licenseUrl)
360     {
361         this.licenseUrl = licenseUrl;
362     }
363 
364 }