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.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * This is a local service. 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.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       JournalTemplateLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface JournalTemplateLocalService {
043            public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
044                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
048                    long id);
049    
050            public void deleteJournalTemplate(long id)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteJournalTemplate(
055                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            @SuppressWarnings("unchecked")
059            public java.util.List dynamicQuery(
060                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException;
067    
068            @SuppressWarnings("unchecked")
069            public java.util.List dynamicQuery(
070                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071                    int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public long dynamicQueryCount(
076                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
081                    long id)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplateByUuidAndGroupId(
087                    java.lang.String uuid, long groupId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
093                    int start, int end)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public int getJournalTemplatesCount()
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
101                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
105                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
106                    boolean merge)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
110                    long userId, long groupId, java.lang.String templateId,
111                    boolean autoTemplateId, java.lang.String structureId,
112                    java.lang.String name, java.lang.String description,
113                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
114                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
115                    java.io.File smallFile,
116                    com.liferay.portal.service.ServiceContext serviceContext)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            public void addTemplateResources(long groupId, java.lang.String templateId,
121                    boolean addCommunityPermissions, boolean addGuestPermissions)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            public void addTemplateResources(
126                    com.liferay.portlet.journal.model.JournalTemplate template,
127                    boolean addCommunityPermissions, boolean addGuestPermissions)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            public void addTemplateResources(long groupId, java.lang.String templateId,
132                    java.lang.String[] communityPermissions,
133                    java.lang.String[] guestPermissions)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException;
136    
137            public void addTemplateResources(
138                    com.liferay.portlet.journal.model.JournalTemplate template,
139                    java.lang.String[] communityPermissions,
140                    java.lang.String[] guestPermissions)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            public void checkNewLine(long groupId, java.lang.String templateId)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException;
147    
148            public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
149                    long userId, long groupId, java.lang.String oldTemplateId,
150                    java.lang.String newTemplateId, boolean autoTemplateId)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException;
153    
154            public void deleteTemplate(long groupId, java.lang.String templateId)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException;
157    
158            public void deleteTemplate(
159                    com.liferay.portlet.journal.model.JournalTemplate template)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException;
162    
163            public void deleteTemplates(long groupId)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    
167            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
169                    long groupId, java.lang.String structureId)
170                    throws com.liferay.portal.kernel.exception.SystemException;
171    
172            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
174                    long groupId, java.lang.String structureId, int start, int end)
175                    throws com.liferay.portal.kernel.exception.SystemException;
176    
177            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178            public int getStructureTemplatesCount(long groupId,
179                    java.lang.String structureId)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
184                    long id)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
190                    long groupId, java.lang.String templateId)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195            public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
196                    long smallImageId)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException;
199    
200            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
206                    long groupId)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
211                    long groupId, int start, int end)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215            public int getTemplatesCount(long groupId)
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219            public boolean hasTemplate(long groupId, java.lang.String templateId)
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
224                    long companyId, long groupId, java.lang.String keywords,
225                    java.lang.String structureId, java.lang.String structureIdComparator,
226                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
231                    long companyId, long groupId, java.lang.String templateId,
232                    java.lang.String structureId, java.lang.String structureIdComparator,
233                    java.lang.String name, java.lang.String description,
234                    boolean andOperator, int start, int end,
235                    com.liferay.portal.kernel.util.OrderByComparator obc)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239            public int searchCount(long companyId, long groupId,
240                    java.lang.String keywords, java.lang.String structureId,
241                    java.lang.String structureIdComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245            public int searchCount(long companyId, long groupId,
246                    java.lang.String templateId, java.lang.String structureId,
247                    java.lang.String structureIdComparator, java.lang.String name,
248                    java.lang.String description, boolean andOperator)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
252                    long groupId, java.lang.String templateId,
253                    java.lang.String structureId, java.lang.String name,
254                    java.lang.String description, java.lang.String xsl, boolean formatXsl,
255                    java.lang.String langType, boolean cacheable, boolean smallImage,
256                    java.lang.String smallImageURL, java.io.File smallFile,
257                    com.liferay.portal.service.ServiceContext serviceContext)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException;
260    }