1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.kernel.plugin;
24  
25  import java.util.Date;
26  import java.util.List;
27  import java.util.Properties;
28  
29  /**
30   * <a href="PluginPackage.java.html"><b><i>View Source</i></b></a>
31   *
32   * @author Jorge Ferrer
33   * @author Brian Wing Shun Chan
34   */
35  public interface PluginPackage {
36  
37      public String getArtifactId();
38  
39      public String getArtifactURL();
40  
41      public String getAuthor();
42  
43      public String getChangeLog();
44  
45      public String getContext();
46  
47      public Properties getDeploymentSettings();
48  
49      public String getDownloadURL();
50  
51      public String getGroupId();
52  
53      public List<License> getLicenses();
54  
55      public List<String> getLiferayVersions();
56  
57      public String getLongDescription();
58  
59      public Date getModifiedDate();
60  
61      public String getModuleId();
62  
63      public String getName();
64  
65      public String getPackageId();
66  
67      public String getPageURL();
68  
69      public String getRecommendedDeploymentContext();
70  
71      public RemotePluginPackageRepository getRepository();
72  
73      public String getRepositoryURL();
74  
75      public List<Screenshot> getScreenshots();
76  
77      public String getShortDescription();
78  
79      public List<String> getTags();
80  
81      public List<String> getTypes();
82  
83      public String getVersion();
84  
85      public boolean isLaterVersionThan(PluginPackage pluginPackage);
86  
87      public boolean isPreviousVersionThan(PluginPackage pluginPackage);
88  
89      public boolean isSameVersionAs(PluginPackage pluginPackage);
90  
91      public void setAuthor(String author);
92  
93      public void setChangeLog(String changeLog);
94  
95      public void setContext(String context);
96  
97      public void setDeploymentSettings(Properties properties);
98  
99      public void setDownloadURL(String downloadURL);
100 
101     public void setLicenses(List<License> licenses);
102 
103     public void setLiferayVersions(List<String> liferayVersions);
104 
105     public void setLongDescription(String longDescription);
106 
107     public void setModifiedDate(Date modifiedDate);
108 
109     public void setName(String name);
110 
111     public void setPageURL(String pageURL);
112 
113     public void setRecommendedDeploymentContext(String deploymentContext);
114 
115     public void setRepository(RemotePluginPackageRepository repository);
116 
117     public void setScreenshots(List<Screenshot> screenshots);
118 
119     public void setShortDescription(String shortDescription);
120 
121     public void setTags(List<String> tags);
122 
123     public void setTypes(List<String> types);
124 
125 }