001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the journal template remote service. This utility wraps {@link com.liferay.portlet.journal.service.impl.JournalTemplateServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalTemplateServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see JournalTemplateService
032     * @see com.liferay.portlet.journal.service.base.JournalTemplateServiceBaseImpl
033     * @see com.liferay.portlet.journal.service.impl.JournalTemplateServiceImpl
034     * @generated
035     */
036    public class JournalTemplateServiceUtil {
037            public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
038                    long groupId, java.lang.String templateId, boolean autoTemplateId,
039                    java.lang.String structureId, java.lang.String name,
040                    java.lang.String description, java.lang.String xsl, boolean formatXsl,
041                    java.lang.String langType, boolean cacheable,
042                    com.liferay.portal.service.ServiceContext serviceContext)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    return getService()
046                                       .addTemplate(groupId, templateId, autoTemplateId,
047                            structureId, name, description, xsl, formatXsl, langType,
048                            cacheable, serviceContext);
049            }
050    
051            public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
052                    long groupId, java.lang.String templateId, boolean autoTemplateId,
053                    java.lang.String structureId, java.lang.String name,
054                    java.lang.String description, java.lang.String xsl, boolean formatXsl,
055                    java.lang.String langType, boolean cacheable, boolean smallImage,
056                    java.lang.String smallImageURL, java.io.File smallFile,
057                    com.liferay.portal.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return getService()
061                                       .addTemplate(groupId, templateId, autoTemplateId,
062                            structureId, name, description, xsl, formatXsl, langType,
063                            cacheable, smallImage, smallImageURL, smallFile, serviceContext);
064            }
065    
066            public static com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
067                    long groupId, java.lang.String oldTemplateId,
068                    java.lang.String newTemplateId, boolean autoTemplateId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return getService()
072                                       .copyTemplate(groupId, oldTemplateId, newTemplateId,
073                            autoTemplateId);
074            }
075    
076            public static void deleteTemplate(long groupId, java.lang.String templateId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    getService().deleteTemplate(groupId, templateId);
080            }
081    
082            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
083                    long groupId, java.lang.String structureId)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return getService().getStructureTemplates(groupId, structureId);
087            }
088    
089            public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
090                    long groupId, java.lang.String templateId)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return getService().getTemplate(groupId, templateId);
094            }
095    
096            public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
097                    long groupId, java.lang.String templateId,
098                    java.lang.String structureId, java.lang.String name,
099                    java.lang.String description, java.lang.String xsl, boolean formatXsl,
100                    java.lang.String langType, boolean cacheable,
101                    com.liferay.portal.service.ServiceContext serviceContext)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    return getService()
105                                       .updateTemplate(groupId, templateId, structureId, name,
106                            description, xsl, formatXsl, langType, cacheable, serviceContext);
107            }
108    
109            public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
110                    long groupId, java.lang.String templateId,
111                    java.lang.String structureId, java.lang.String name,
112                    java.lang.String description, java.lang.String xsl, boolean formatXsl,
113                    java.lang.String langType, boolean cacheable, boolean smallImage,
114                    java.lang.String smallImageURL, java.io.File smallFile,
115                    com.liferay.portal.service.ServiceContext serviceContext)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException {
118                    return getService()
119                                       .updateTemplate(groupId, templateId, structureId, name,
120                            description, xsl, formatXsl, langType, cacheable, smallImage,
121                            smallImageURL, smallFile, serviceContext);
122            }
123    
124            public static JournalTemplateService getService() {
125                    if (_service == null) {
126                            _service = (JournalTemplateService)PortalBeanLocatorUtil.locate(JournalTemplateService.class.getName());
127                    }
128    
129                    return _service;
130            }
131    
132            public void setService(JournalTemplateService service) {
133                    _service = service;
134            }
135    
136            private static JournalTemplateService _service;
137    }