001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.kernel.plugin;
022:
023: import java.util.Date;
024: import java.util.List;
025: import java.util.Properties;
026:
027: /**
028: * <a href="PluginPackage.java.html"><b><i>View Source</i></b></a>
029: *
030: * @author Jorge Ferrer
031: * @author Brian Wing Shun Chan
032: *
033: */
034: public interface PluginPackage {
035:
036: public String getModuleId();
037:
038: public String getName();
039:
040: public void setName(String name);
041:
042: public String getRecommendedDeploymentContext();
043:
044: public void setRecommendedDeploymentContext(String deploymentContext);
045:
046: public Date getModifiedDate();
047:
048: public void setModifiedDate(Date modifiedDate);
049:
050: public String getAuthor();
051:
052: public void setAuthor(String author);
053:
054: public List getTypes();
055:
056: public void setTypes(List types);
057:
058: public List getTags();
059:
060: public void setTags(List tags);
061:
062: public List getLicenses();
063:
064: public void setLicenses(List licenses);
065:
066: public List getLiferayVersions();
067:
068: public void setLiferayVersions(List liferayVersions);
069:
070: public String getShortDescription();
071:
072: public void setShortDescription(String shortDescription);
073:
074: public String getLongDescription();
075:
076: public void setLongDescription(String longDescription);
077:
078: public String getChangeLog();
079:
080: public void setChangeLog(String changeLog);
081:
082: public void setScreenshots(List screenshots);
083:
084: public List getScreenshots();
085:
086: public String getPageURL();
087:
088: public void setPageURL(String pageURL);
089:
090: public String getDownloadURL();
091:
092: public void setDownloadURL(String downloadURL);
093:
094: public String getRepositoryURL();
095:
096: public RemotePluginPackageRepository getRepository();
097:
098: public void setRepository(RemotePluginPackageRepository repository);
099:
100: public String getContext();
101:
102: public void setContext(String context);
103:
104: public String getArtifactURL();
105:
106: public String getArtifactId();
107:
108: public String getGroupId();
109:
110: public String getPackageId();
111:
112: public String getVersion();
113:
114: public Properties getDeploymentSettings();
115:
116: public void setDeploymentSettings(Properties properties);
117:
118: public boolean isLaterVersionThan(PluginPackage pluginPackage);
119:
120: public boolean isPreviousVersionThan(PluginPackage pluginPackage);
121:
122: public boolean isSameVersionAs(PluginPackage pluginPackage);
123:
124: }
|