001    /**
002     * Copyright (c) 2000-2013 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    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * 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.
022     *
023     * <p>
024     * 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.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see JournalTemplateService
029     * @see com.liferay.portlet.journal.service.base.JournalTemplateServiceBaseImpl
030     * @see com.liferay.portlet.journal.service.impl.JournalTemplateServiceImpl
031     * @generated
032     */
033    public class JournalTemplateServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
054            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055                    getService().setBeanIdentifier(beanIdentifier);
056            }
057    
058            public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
059                    long groupId, java.lang.String templateId, boolean autoTemplateId,
060                    java.lang.String structureId,
061                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
062                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
064                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
065                    java.io.File smallFile,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return getService()
070                                       .addTemplate(groupId, templateId, autoTemplateId,
071                            structureId, nameMap, descriptionMap, xsl, formatXsl, langType,
072                            cacheable, smallImage, smallImageURL, smallFile, serviceContext);
073            }
074    
075            public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
076                    long groupId, java.lang.String templateId, boolean autoTemplateId,
077                    java.lang.String structureId,
078                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
079                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
080                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
081                    boolean cacheable,
082                    com.liferay.portal.service.ServiceContext serviceContext)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return getService()
086                                       .addTemplate(groupId, templateId, autoTemplateId,
087                            structureId, nameMap, descriptionMap, xsl, formatXsl, langType,
088                            cacheable, serviceContext);
089            }
090    
091            public static com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
092                    long groupId, java.lang.String oldTemplateId,
093                    java.lang.String newTemplateId, boolean autoTemplateId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService()
097                                       .copyTemplate(groupId, oldTemplateId, newTemplateId,
098                            autoTemplateId);
099            }
100    
101            public static void deleteTemplate(long groupId, java.lang.String templateId)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    getService().deleteTemplate(groupId, templateId);
105            }
106    
107            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
108                    long groupId, java.lang.String structureId)
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return getService().getStructureTemplates(groupId, structureId);
111            }
112    
113            public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
114                    long groupId, java.lang.String templateId)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException {
117                    return getService().getTemplate(groupId, templateId);
118            }
119    
120            public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
121                    long groupId, java.lang.String templateId,
122                    boolean includeGlobalTemplates)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    return getService()
126                                       .getTemplate(groupId, templateId, includeGlobalTemplates);
127            }
128    
129            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
130                    long companyId, long[] groupIds, java.lang.String keywords,
131                    java.lang.String structureId, java.lang.String structureIdComparator,
132                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getService()
135                                       .search(companyId, groupIds, keywords, structureId,
136                            structureIdComparator, start, end, obc);
137            }
138    
139            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
140                    long companyId, long[] groupIds, java.lang.String templateId,
141                    java.lang.String structureId, java.lang.String structureIdComparator,
142                    java.lang.String name, java.lang.String description,
143                    boolean andOperator, int start, int end,
144                    com.liferay.portal.kernel.util.OrderByComparator obc)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return getService()
147                                       .search(companyId, groupIds, templateId, structureId,
148                            structureIdComparator, name, description, andOperator, start, end,
149                            obc);
150            }
151    
152            public static int searchCount(long companyId, long[] groupIds,
153                    java.lang.String keywords, java.lang.String structureId,
154                    java.lang.String structureIdComparator)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return getService()
157                                       .searchCount(companyId, groupIds, keywords, structureId,
158                            structureIdComparator);
159            }
160    
161            public static int searchCount(long companyId, long[] groupIds,
162                    java.lang.String templateId, java.lang.String structureId,
163                    java.lang.String structureIdComparator, java.lang.String name,
164                    java.lang.String description, boolean andOperator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getService()
167                                       .searchCount(companyId, groupIds, templateId, structureId,
168                            structureIdComparator, name, description, andOperator);
169            }
170    
171            public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
172                    long groupId, java.lang.String templateId,
173                    java.lang.String structureId,
174                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
175                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
176                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
177                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
178                    java.io.File smallFile,
179                    com.liferay.portal.service.ServiceContext serviceContext)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return getService()
183                                       .updateTemplate(groupId, templateId, structureId, nameMap,
184                            descriptionMap, xsl, formatXsl, langType, cacheable, smallImage,
185                            smallImageURL, smallFile, serviceContext);
186            }
187    
188            public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
189                    long groupId, java.lang.String templateId,
190                    java.lang.String structureId,
191                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
192                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
193                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
194                    boolean cacheable,
195                    com.liferay.portal.service.ServiceContext serviceContext)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    return getService()
199                                       .updateTemplate(groupId, templateId, structureId, nameMap,
200                            descriptionMap, xsl, formatXsl, langType, cacheable, serviceContext);
201            }
202    
203            public static JournalTemplateService getService() {
204                    if (_service == null) {
205                            _service = (JournalTemplateService)PortalBeanLocatorUtil.locate(JournalTemplateService.class.getName());
206    
207                            ReferenceRegistry.registerReference(JournalTemplateServiceUtil.class,
208                                    "_service");
209                    }
210    
211                    return _service;
212            }
213    
214            /**
215             * @deprecated
216             */
217            public void setService(JournalTemplateService service) {
218            }
219    
220            private static JournalTemplateService _service;
221    }