1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.kernel.plugin;
16  
17  import java.util.Date;
18  import java.util.List;
19  import java.util.Properties;
20  
21  /**
22   * <a href="PluginPackage.java.html"><b><i>View Source</i></b></a>
23   *
24   * @author Jorge Ferrer
25   * @author Brian Wing Shun Chan
26   */
27  public interface PluginPackage {
28  
29      public String getArtifactId();
30  
31      public String getArtifactURL();
32  
33      public String getAuthor();
34  
35      public String getChangeLog();
36  
37      public String getContext();
38  
39      public Properties getDeploymentSettings();
40  
41      public String getDownloadURL();
42  
43      public String getGroupId();
44  
45      public List<License> getLicenses();
46  
47      public List<String> getLiferayVersions();
48  
49      public String getLongDescription();
50  
51      public Date getModifiedDate();
52  
53      public String getModuleId();
54  
55      public String getName();
56  
57      public String getPackageId();
58  
59      public String getPageURL();
60  
61      public String getRecommendedDeploymentContext();
62  
63      public RemotePluginPackageRepository getRepository();
64  
65      public String getRepositoryURL();
66  
67      public List<Screenshot> getScreenshots();
68  
69      public String getShortDescription();
70  
71      public List<String> getTags();
72  
73      public List<String> getTypes();
74  
75      public String getVersion();
76  
77      public boolean isLaterVersionThan(PluginPackage pluginPackage);
78  
79      public boolean isPreviousVersionThan(PluginPackage pluginPackage);
80  
81      public boolean isSameVersionAs(PluginPackage pluginPackage);
82  
83      public void setAuthor(String author);
84  
85      public void setChangeLog(String changeLog);
86  
87      public void setContext(String context);
88  
89      public void setDeploymentSettings(Properties properties);
90  
91      public void setDownloadURL(String downloadURL);
92  
93      public void setLicenses(List<License> licenses);
94  
95      public void setLiferayVersions(List<String> liferayVersions);
96  
97      public void setLongDescription(String longDescription);
98  
99      public void setModifiedDate(Date modifiedDate);
100 
101     public void setName(String name);
102 
103     public void setPageURL(String pageURL);
104 
105     public void setRecommendedDeploymentContext(String deploymentContext);
106 
107     public void setRepository(RemotePluginPackageRepository repository);
108 
109     public void setScreenshots(List<Screenshot> screenshots);
110 
111     public void setShortDescription(String shortDescription);
112 
113     public void setTags(List<String> tags);
114 
115     public void setTypes(List<String> types);
116 
117 }