001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    import com.liferay.portal.kernel.plugin.PluginPackage;
018    
019    /**
020     * @author Jorge Ferrer
021     */
022    public interface Plugin {
023    
024            public static final String TYPE_EXT = "ext";
025    
026            public static final String TYPE_HOOK = "hook";
027    
028            public static final String TYPE_LAYOUT_TEMPLATE = "layout-template";
029    
030            public static final String TYPE_PORTLET = "portlet";
031    
032            public static final String TYPE_THEME = "theme";
033    
034            public static final String TYPE_WEB = "web";
035    
036            public PluginPackage getPluginPackage();
037    
038            public void setPluginPackage(PluginPackage pluginPackage);
039    
040            public String getPluginId();
041    
042            public String getPluginType();
043    
044            public PluginSetting getDefaultPluginSetting();
045    
046            public PluginSetting getDefaultPluginSetting(long companyId);
047    
048            public void setDefaultPluginSetting(PluginSetting pluginSetting);
049    
050    }