1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="JournalTemplateLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       JournalTemplateLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface JournalTemplateLocalService {
50      public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
51          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
55          long id);
56  
57      public void deleteJournalTemplate(long id)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteJournalTemplate(
62          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      @SuppressWarnings("unchecked")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      @SuppressWarnings("unchecked")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException;
74  
75      @SuppressWarnings("unchecked")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public long dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.kernel.exception.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
88          long id)
89          throws com.liferay.portal.kernel.exception.PortalException,
90              com.liferay.portal.kernel.exception.SystemException;
91  
92      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93      public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplateByUuidAndGroupId(
94          java.lang.String uuid, long groupId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException;
97  
98      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
100         int start, int end)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104     public int getJournalTemplatesCount()
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
108         com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
112         com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
113         boolean merge)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
117         long userId, long groupId, java.lang.String templateId,
118         boolean autoTemplateId, java.lang.String structureId,
119         java.lang.String name, java.lang.String description,
120         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
121         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
122         java.io.File smallFile,
123         com.liferay.portal.service.ServiceContext serviceContext)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException;
126 
127     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
128         java.lang.String uuid, long userId, long groupId,
129         java.lang.String templateId, boolean autoTemplateId,
130         java.lang.String structureId, java.lang.String name,
131         java.lang.String description, java.lang.String xsl, boolean formatXsl,
132         java.lang.String langType, boolean cacheable, boolean smallImage,
133         java.lang.String smallImageURL, java.io.File smallFile,
134         com.liferay.portal.service.ServiceContext serviceContext)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException;
137 
138     public void addTemplateResources(long groupId, java.lang.String templateId,
139         boolean addCommunityPermissions, boolean addGuestPermissions)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException;
142 
143     public void addTemplateResources(
144         com.liferay.portlet.journal.model.JournalTemplate template,
145         boolean addCommunityPermissions, boolean addGuestPermissions)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException;
148 
149     public void addTemplateResources(long groupId, java.lang.String templateId,
150         java.lang.String[] communityPermissions,
151         java.lang.String[] guestPermissions)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException;
154 
155     public void addTemplateResources(
156         com.liferay.portlet.journal.model.JournalTemplate template,
157         java.lang.String[] communityPermissions,
158         java.lang.String[] guestPermissions)
159         throws com.liferay.portal.kernel.exception.PortalException,
160             com.liferay.portal.kernel.exception.SystemException;
161 
162     public void checkNewLine(long groupId, java.lang.String templateId)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException;
165 
166     public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
167         long userId, long groupId, java.lang.String oldTemplateId,
168         java.lang.String newTemplateId, boolean autoTemplateId)
169         throws com.liferay.portal.kernel.exception.PortalException,
170             com.liferay.portal.kernel.exception.SystemException;
171 
172     public void deleteTemplate(long groupId, java.lang.String templateId)
173         throws com.liferay.portal.kernel.exception.PortalException,
174             com.liferay.portal.kernel.exception.SystemException;
175 
176     public void deleteTemplate(
177         com.liferay.portlet.journal.model.JournalTemplate template)
178         throws com.liferay.portal.kernel.exception.PortalException,
179             com.liferay.portal.kernel.exception.SystemException;
180 
181     public void deleteTemplates(long groupId)
182         throws com.liferay.portal.kernel.exception.PortalException,
183             com.liferay.portal.kernel.exception.SystemException;
184 
185     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
187         long groupId, java.lang.String structureId)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
192         long groupId, java.lang.String structureId, int start, int end)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196     public int getStructureTemplatesCount(long groupId,
197         java.lang.String structureId)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
202         long id)
203         throws com.liferay.portal.kernel.exception.PortalException,
204             com.liferay.portal.kernel.exception.SystemException;
205 
206     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
208         long groupId, java.lang.String templateId)
209         throws com.liferay.portal.kernel.exception.PortalException,
210             com.liferay.portal.kernel.exception.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
214         long smallImageId)
215         throws com.liferay.portal.kernel.exception.PortalException,
216             com.liferay.portal.kernel.exception.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
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> getTemplates(
224         long groupId)
225         throws com.liferay.portal.kernel.exception.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
229         long groupId, int start, int end)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public int getTemplatesCount(long groupId)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public boolean hasTemplate(long groupId, java.lang.String templateId)
238         throws com.liferay.portal.kernel.exception.SystemException;
239 
240     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
242         long companyId, long groupId, java.lang.String keywords,
243         java.lang.String structureId, java.lang.String structureIdComparator,
244         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.kernel.exception.SystemException;
246 
247     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
249         long companyId, long groupId, java.lang.String templateId,
250         java.lang.String structureId, java.lang.String structureIdComparator,
251         java.lang.String name, java.lang.String description,
252         boolean andOperator, int start, int end,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.kernel.exception.SystemException;
255 
256     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257     public int searchCount(long companyId, long groupId,
258         java.lang.String keywords, java.lang.String structureId,
259         java.lang.String structureIdComparator)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263     public int searchCount(long companyId, long groupId,
264         java.lang.String templateId, java.lang.String structureId,
265         java.lang.String structureIdComparator, java.lang.String name,
266         java.lang.String description, boolean andOperator)
267         throws com.liferay.portal.kernel.exception.SystemException;
268 
269     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
270         long groupId, java.lang.String templateId,
271         java.lang.String structureId, java.lang.String name,
272         java.lang.String description, java.lang.String xsl, boolean formatXsl,
273         java.lang.String langType, boolean cacheable, boolean smallImage,
274         java.lang.String smallImageURL, java.io.File smallFile,
275         com.liferay.portal.service.ServiceContext serviceContext)
276         throws com.liferay.portal.kernel.exception.PortalException,
277             com.liferay.portal.kernel.exception.SystemException;
278 }