001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.jetspeed.portlets.rpad;
018:
019: import java.sql.Date;
020: import java.util.ArrayList;
021: import java.util.List;
022: import java.util.Locale;
023:
024: public class PortletApplication {
025: private Date created = null;
026:
027: private Date lastModified = null;
028:
029: private String portletSpecVersion = null;
030:
031: private String groupId = null;
032:
033: private String artifactId = null;
034:
035: private String packaging = null;
036:
037: private String version = null;
038:
039: private String name = null;
040:
041: private String description = null;
042:
043: private List tags = new ArrayList();
044:
045: private String publisherName = null;
046:
047: private String publisherUrl = null;
048:
049: private String binaryUrl = null;
050:
051: private String sourceUrl = null;
052:
053: private String imageUrl = null;
054:
055: //TODO
056: // private Map dependencies;
057:
058: private String licenseName = null;
059:
060: private String licenseUrl = null;
061:
062: private String compiledJDKVersion = null;
063:
064: private List supportedLocales = new ArrayList();
065:
066: public PortletApplication() {
067:
068: }
069:
070: public void addTag(String category) {
071: tags.add(category);
072: }
073:
074: public List getTags() {
075: return tags;
076: }
077:
078: public void addSupportedLocale(Locale locale) {
079: supportedLocales.add(locale);
080: }
081:
082: public List getSupportedLocales() {
083: return supportedLocales;
084: }
085:
086: /**
087: * @return the artifactId
088: */
089: public String getArtifactId() {
090: return artifactId;
091: }
092:
093: /**
094: * @param artifactId the artifactId to set
095: */
096: public void setArtifactId(String artifactId) {
097: this .artifactId = artifactId;
098: }
099:
100: /**
101: * @return the binaryUrl
102: */
103: public String getBinaryUrl() {
104: return binaryUrl;
105: }
106:
107: /**
108: * @param binaryUrl the binaryUrl to set
109: */
110: public void setBinaryUrl(String binaryUrl) {
111: this .binaryUrl = binaryUrl;
112: }
113:
114: /**
115: * @return the created
116: */
117: public Date getCreated() {
118: return created;
119: }
120:
121: /**
122: * @param created the created to set
123: */
124: public void setCreated(Date created) {
125: this .created = created;
126: }
127:
128: /**
129: * @return the description
130: */
131: public String getDescription() {
132: return description;
133: }
134:
135: /**
136: * @param description the description to set
137: */
138: public void setDescription(String description) {
139: this .description = description;
140: }
141:
142: /**
143: * @return the groupId
144: */
145: public String getGroupId() {
146: return groupId;
147: }
148:
149: /**
150: * @param groupId the groupId to set
151: */
152: public void setGroupId(String groupId) {
153: this .groupId = groupId;
154: }
155:
156: /**
157: * @return the javaBuildVersion
158: */
159: public String getCompiledJDKVersion() {
160: return compiledJDKVersion;
161: }
162:
163: /**
164: * @param javaBuildVersion the javaBuildVersion to set
165: */
166: public void setCompiledJDKVersion(String javaBuildVersion) {
167: this .compiledJDKVersion = javaBuildVersion;
168: }
169:
170: /**
171: * @return the lastModified
172: */
173: public Date getLastModified() {
174: return lastModified;
175: }
176:
177: /**
178: * @param lastModified the lastModified to set
179: */
180: public void setLastModified(Date lastModified) {
181: this .lastModified = lastModified;
182: }
183:
184: /**
185: * @return the namme
186: */
187: public String getName() {
188: return name;
189: }
190:
191: /**
192: * @param namme the namme to set
193: */
194: public void setName(String namme) {
195: this .name = namme;
196: }
197:
198: /**
199: * @return the packaging
200: */
201: public String getPackaging() {
202: return packaging;
203: }
204:
205: /**
206: * @param packaging the packaging to set
207: */
208: public void setPackaging(String packaging) {
209: this .packaging = packaging;
210: }
211:
212: /**
213: * @return the portletSpecVersion
214: */
215: public String getPortletSpecVersion() {
216: return portletSpecVersion;
217: }
218:
219: /**
220: * @param portletSpecVersion the portletSpecVersion to set
221: */
222: public void setPortletSpecVersion(String portletSpecVersion) {
223: this .portletSpecVersion = portletSpecVersion;
224: }
225:
226: /**
227: * @return the publisherName
228: */
229: public String getPublisherName() {
230: return publisherName;
231: }
232:
233: /**
234: * @param publisherName the publisherName to set
235: */
236: public void setPublisherName(String publisherName) {
237: this .publisherName = publisherName;
238: }
239:
240: /**
241: * @return the publisherUrl
242: */
243: public String getPublisherUrl() {
244: return publisherUrl;
245: }
246:
247: /**
248: * @param publisherUrl the publisherUrl to set
249: */
250: public void setPublisherUrl(String publisherUrl) {
251: this .publisherUrl = publisherUrl;
252: }
253:
254: /**
255: * @return the sourceUrl
256: */
257: public String getSourceUrl() {
258: return sourceUrl;
259: }
260:
261: /**
262: * @param sourceUrl the sourceUrl to set
263: */
264: public void setSourceUrl(String sourceUrl) {
265: this .sourceUrl = sourceUrl;
266: }
267:
268: /**
269: * @return the thumbnailUrl
270: */
271: public String getImageUrl() {
272: return imageUrl;
273: }
274:
275: /**
276: * @param thumbnailUrl the thumbnailUrl to set
277: */
278: public void setImageUrl(String thumbnailUrl) {
279: this .imageUrl = thumbnailUrl;
280: }
281:
282: /**
283: * @return the version
284: */
285: public String getVersion() {
286: return version;
287: }
288:
289: /**
290: * @param version the version to set
291: */
292: public void setVersion(String version) {
293: this .version = version;
294: }
295:
296: /**
297: * @return the licenseName
298: */
299: public String getLicenseName() {
300: return licenseName;
301: }
302:
303: /**
304: * @param licenseName the licenseName to set
305: */
306: public void setLicenseName(String licenseName) {
307: this .licenseName = licenseName;
308: }
309:
310: /**
311: * @return the licenseUrl
312: */
313: public String getLicenseUrl() {
314: return licenseUrl;
315: }
316:
317: /**
318: * @param licenseUrl the licenseUrl to set
319: */
320: public void setLicenseUrl(String licenseUrl) {
321: this.licenseUrl = licenseUrl;
322: }
323:
324: }
|