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 getModuleId();
38  
39      public String getName();
40  
41      public void setName(String name);
42  
43      public String getRecommendedDeploymentContext();
44  
45      public void setRecommendedDeploymentContext(String deploymentContext);
46  
47      public Date getModifiedDate();
48  
49      public void setModifiedDate(Date modifiedDate);
50  
51      public String getAuthor();
52  
53      public void setAuthor(String author);
54  
55      public List<String> getTypes();
56  
57      public void setTypes(List<String> types);
58  
59      public List<String> getTags();
60  
61      public void setTags(List<String> tags);
62  
63      public List getLicenses();
64  
65      public void setLicenses(List licenses);
66  
67      public List getLiferayVersions();
68  
69      public void setLiferayVersions(List liferayVersions);
70  
71      public String getShortDescription();
72  
73      public void setShortDescription(String shortDescription);
74  
75      public String getLongDescription();
76  
77      public void setLongDescription(String longDescription);
78  
79      public String getChangeLog();
80  
81      public void setChangeLog(String changeLog);
82  
83      public void setScreenshots(List screenshots);
84  
85      public List getScreenshots();
86  
87      public String getPageURL();
88  
89      public void setPageURL(String pageURL);
90  
91      public String getDownloadURL();
92  
93      public void setDownloadURL(String downloadURL);
94  
95      public String getRepositoryURL();
96  
97      public RemotePluginPackageRepository getRepository();
98  
99      public void setRepository(RemotePluginPackageRepository repository);
100 
101     public String getContext();
102 
103     public void setContext(String context);
104 
105     public String getArtifactURL();
106 
107     public String getArtifactId();
108 
109     public String getGroupId();
110 
111     public String getPackageId();
112 
113     public String getVersion();
114 
115     public Properties getDeploymentSettings();
116 
117     public void setDeploymentSettings(Properties properties);
118 
119     public boolean isLaterVersionThan(PluginPackage pluginPackage);
120 
121     public boolean isPreviousVersionThan(PluginPackage pluginPackage);
122 
123     public boolean isSameVersionAs(PluginPackage pluginPackage);
124 
125 }