com.liferay.portal.model.Theme Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.model;
import com.liferay.portal.theme.ThemeCompanyLimit;
import com.liferay.portal.theme.ThemeGroupLimit;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import javax.servlet.ServletContext;
/**
* @author Brian Wing Shun Chan
* @author Raymond Augé
*/
public interface Theme extends Comparable, Plugin, Serializable {
public void addSetting(
String key, String value, boolean configurable, String type,
String[] options, String script);
public List getColorSchemes();
public Map getColorSchemesMap();
public Map getConfigurableSettings();
public String getContextPath();
public String getCssPath();
public String getDevice();
public String getFreeMarkerTemplateLoader();
public String getImagesPath();
public String getJavaScriptPath();
public boolean getLoadFromServletContext();
public String getName();
public String getResourcePath(
ServletContext servletContext, String portletId, String path);
public String getRootPath();
public String getServletContextName();
public String getSetting(String key);
public String[] getSettingOptions(String key);
public Map getSettings();
public Properties getSettingsProperties();
public SpriteImage getSpriteImage(String fileName);
public String getStaticResourcePath();
public String getTemplateExtension();
public String getTemplatesPath();
public ThemeCompanyLimit getThemeCompanyLimit();
public ThemeGroupLimit getThemeGroupLimit();
public String getThemeId();
public long getTimestamp();
public String getVelocityResourceListener();
public String getVirtualPath();
public boolean getWapTheme();
public boolean getWARFile();
public boolean hasColorSchemes();
public boolean isCompanyAvailable(long companyId);
public boolean isGroupAvailable(long groupId);
public boolean isLoadFromServletContext();
public boolean isWapTheme();
public boolean isWARFile();
public boolean resourceExists(
ServletContext servletContext, String portletId, String path)
throws Exception;
public void setCssPath(String cssPath);
public void setImagesPath(String imagesPath);
public void setJavaScriptPath(String javaScriptPath);
public void setLoadFromServletContext(boolean loadFromServletContext);
public void setName(String name);
public void setRootPath(String rootPath);
public void setServletContextName(String servletContextName);
public void setSetting(String key, String value);
public void setSpriteImages(
String spriteFileName, Properties spriteProperties);
public void setTemplateExtension(String templateExtension);
public void setTemplatesPath(String templatesPath);
public void setThemeCompanyLimit(ThemeCompanyLimit themeCompanyLimit);
public void setThemeGroupLimit(ThemeGroupLimit themeGroupLimit);
public void setTimestamp(long timestamp);
public void setVirtualPath(String virtualPath);
public void setWapTheme(boolean wapTheme);
}