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