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      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.kernel.exception.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
85          long id)
86          throws com.liferay.portal.kernel.exception.PortalException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
91          int start, int end)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public int getJournalTemplatesCount()
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
99          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
103         com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
104         boolean merge)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
108         long userId, long groupId, java.lang.String templateId,
109         boolean autoTemplateId, java.lang.String structureId,
110         java.lang.String name, java.lang.String description,
111         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
112         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
113         java.io.File smallFile,
114         com.liferay.portal.service.ServiceContext serviceContext)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException;
117 
118     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
119         java.lang.String uuid, long userId, long groupId,
120         java.lang.String templateId, boolean autoTemplateId,
121         java.lang.String structureId, java.lang.String name,
122         java.lang.String description, java.lang.String xsl, boolean formatXsl,
123         java.lang.String langType, boolean cacheable, boolean smallImage,
124         java.lang.String smallImageURL, java.io.File smallFile,
125         com.liferay.portal.service.ServiceContext serviceContext)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException;
128 
129     public void addTemplateResources(long groupId, java.lang.String templateId,
130         boolean addCommunityPermissions, boolean addGuestPermissions)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException;
133 
134     public void addTemplateResources(
135         com.liferay.portlet.journal.model.JournalTemplate template,
136         boolean addCommunityPermissions, boolean addGuestPermissions)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException;
139 
140     public void addTemplateResources(long groupId, java.lang.String templateId,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException;
145 
146     public void addTemplateResources(
147         com.liferay.portlet.journal.model.JournalTemplate template,
148         java.lang.String[] communityPermissions,
149         java.lang.String[] guestPermissions)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException;
152 
153     public void checkNewLine(long groupId, java.lang.String templateId)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException;
156 
157     public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
158         long userId, long groupId, java.lang.String oldTemplateId,
159         java.lang.String newTemplateId, boolean autoTemplateId)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException;
162 
163     public void deleteTemplate(long groupId, java.lang.String templateId)
164         throws com.liferay.portal.kernel.exception.PortalException,
165             com.liferay.portal.kernel.exception.SystemException;
166 
167     public void deleteTemplate(
168         com.liferay.portlet.journal.model.JournalTemplate template)
169         throws com.liferay.portal.kernel.exception.PortalException,
170             com.liferay.portal.kernel.exception.SystemException;
171 
172     public void deleteTemplates(long groupId)
173         throws com.liferay.portal.kernel.exception.PortalException,
174             com.liferay.portal.kernel.exception.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
178         long groupId, java.lang.String structureId)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
183         long groupId, java.lang.String structureId, int start, int end)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public int getStructureTemplatesCount(long groupId,
188         java.lang.String structureId)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
193         long id)
194         throws com.liferay.portal.kernel.exception.PortalException,
195             com.liferay.portal.kernel.exception.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
199         long groupId, java.lang.String templateId)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
205         long smallImageId)
206         throws com.liferay.portal.kernel.exception.PortalException,
207             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         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
215         long groupId)
216         throws 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         long groupId, int start, int end)
221         throws com.liferay.portal.kernel.exception.SystemException;
222 
223     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public int getTemplatesCount(long groupId)
225         throws com.liferay.portal.kernel.exception.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public boolean hasTemplate(long groupId, java.lang.String templateId)
229         throws com.liferay.portal.kernel.exception.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
233         long companyId, long groupId, java.lang.String keywords,
234         java.lang.String structureId, java.lang.String structureIdComparator,
235         int start, int end, 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 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
240         long companyId, long groupId, java.lang.String templateId,
241         java.lang.String structureId, java.lang.String structureIdComparator,
242         java.lang.String name, java.lang.String description,
243         boolean andOperator, int start, int end,
244         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 int searchCount(long companyId, long groupId,
249         java.lang.String keywords, java.lang.String structureId,
250         java.lang.String structureIdComparator)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 
253     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254     public int searchCount(long companyId, long groupId,
255         java.lang.String templateId, java.lang.String structureId,
256         java.lang.String structureIdComparator, java.lang.String name,
257         java.lang.String description, boolean andOperator)
258         throws com.liferay.portal.kernel.exception.SystemException;
259 
260     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
261         long groupId, java.lang.String templateId,
262         java.lang.String structureId, java.lang.String name,
263         java.lang.String description, java.lang.String xsl, boolean formatXsl,
264         java.lang.String langType, boolean cacheable, boolean smallImage,
265         java.lang.String smallImageURL, java.io.File smallFile,
266         com.liferay.portal.service.ServiceContext serviceContext)
267         throws com.liferay.portal.kernel.exception.PortalException,
268             com.liferay.portal.kernel.exception.SystemException;
269 }