com.liferay.portal.kernel.service.ThemeLocalServiceUtil.java Source code

Java tutorial

Introduction

Here is the source code for com.liferay.portal.kernel.service.ThemeLocalServiceUtil.java

Source

/**
 * Copyright (c) 2000-present 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.kernel.service;

import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;

/**
 * Provides the local service utility for Theme. This utility wraps
 * <code>com.liferay.portal.service.impl.ThemeLocalServiceImpl</code> and
 * is an access point for service operations in application layer code running
 * on the local server. Methods of this service will not have security checks
 * based on the propagated JAAS credentials because this service can only be
 * accessed from within the same VM.
 *
 * @author Brian Wing Shun Chan
 * @see ThemeLocalService
 * @generated
 */
public class ThemeLocalServiceUtil {

    /**
     * NOTE FOR DEVELOPERS:
     *
     * Never modify this class directly. Add custom service methods to <code>com.liferay.portal.service.impl.ThemeLocalServiceImpl</code> and rerun ServiceBuilder to regenerate this class.
     */

    /**
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this interface directly. Always use {@link ThemeLocalServiceUtil} to access the theme local service. Add custom service methods to <code>com.liferay.portal.service.impl.ThemeLocalServiceImpl</code> and rerun ServiceBuilder to automatically copy the method declarations to this interface.
     */
    public static com.liferay.portal.kernel.model.ColorScheme fetchColorScheme(long companyId, String themeId,
            String colorSchemeId) {

        return getService().fetchColorScheme(companyId, themeId, colorSchemeId);
    }

    public static com.liferay.portal.kernel.model.PortletDecorator fetchPortletDecorator(long companyId,
            String themeId, String colorSchemeId) {

        return getService().fetchPortletDecorator(companyId, themeId, colorSchemeId);
    }

    public static com.liferay.portal.kernel.model.Theme fetchTheme(long companyId, String themeId) {

        return getService().fetchTheme(companyId, themeId);
    }

    public static com.liferay.portal.kernel.model.ColorScheme getColorScheme(long companyId, String themeId,
            String colorSchemeId) {

        return getService().getColorScheme(companyId, themeId, colorSchemeId);
    }

    public static java.util.List<com.liferay.portal.kernel.model.Theme> getControlPanelThemes(long companyId,
            long userId) {

        return getService().getControlPanelThemes(companyId, userId);
    }

    /**
     * Returns the OSGi service identifier.
     *
     * @return the OSGi service identifier
     */
    public static String getOSGiServiceIdentifier() {
        return getService().getOSGiServiceIdentifier();
    }

    public static java.util.List<com.liferay.portal.kernel.model.Theme> getPageThemes(long companyId, long groupId,
            long userId) {

        return getService().getPageThemes(companyId, groupId, userId);
    }

    public static com.liferay.portal.kernel.model.PortletDecorator getPortletDecorator(long companyId,
            String themeId, String portletDecoratorId) {

        return getService().getPortletDecorator(companyId, themeId, portletDecoratorId);
    }

    public static com.liferay.portal.kernel.model.Theme getTheme(long companyId, String themeId) {

        return getService().getTheme(companyId, themeId);
    }

    public static java.util.List<com.liferay.portal.kernel.model.Theme> getThemes(long companyId) {

        return getService().getThemes(companyId);
    }

    public static java.util.List<com.liferay.portal.kernel.model.Theme> getWARThemes() {

        return getService().getWARThemes();
    }

    public static java.util.List<com.liferay.portal.kernel.model.Theme> init(
            javax.servlet.ServletContext servletContext, String themesPath, boolean loadFromServletContext,
            String[] xmls, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {

        return getService().init(servletContext, themesPath, loadFromServletContext, xmls, pluginPackage);
    }

    public static java.util.List<com.liferay.portal.kernel.model.Theme> init(String servletContextName,
            javax.servlet.ServletContext servletContext, String themesPath, boolean loadFromServletContext,
            String[] xmls, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {

        return getService().init(servletContextName, servletContext, themesPath, loadFromServletContext, xmls,
                pluginPackage);
    }

    public static void uninstallThemes(java.util.List<com.liferay.portal.kernel.model.Theme> themes) {

        getService().uninstallThemes(themes);
    }

    public static ThemeLocalService getService() {
        if (_service == null) {
            _service = (ThemeLocalService) PortalBeanLocatorUtil.locate(ThemeLocalService.class.getName());
        }

        return _service;
    }

    private static ThemeLocalService _service;

}