1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Isolation;
28  import com.liferay.portal.kernel.annotation.Propagation;
29  import com.liferay.portal.kernel.annotation.Transactional;
30  
31  /**
32   * <a href="JournalTemplateLocalService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * {@link
42   * com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl}}.
43   * Modify methods in that class and rerun ServiceBuilder to populate this class
44   * and all other generated classes.
45   * </p>
46   *
47   * <p>
48   * 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.
49   * </p>
50   *
51   * @author    Brian Wing Shun Chan
52   * @see       JournalTemplateLocalServiceUtil
53   * @generated
54   */
55  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
56      PortalException.class, SystemException.class})
57  public interface JournalTemplateLocalService {
58      public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
59          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
63          long id);
64  
65      public void deleteJournalTemplate(long id)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException;
68  
69      public void deleteJournalTemplate(
70          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75          throws com.liferay.portal.SystemException;
76  
77      public java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
83          long id)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
89          int start, int end) throws com.liferay.portal.SystemException;
90  
91      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92      public int getJournalTemplatesCount()
93          throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
96          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
100         com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
101         boolean merge) throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
104         long userId, java.lang.String templateId, boolean autoTemplateId,
105         long plid, java.lang.String structureId, java.lang.String name,
106         java.lang.String description, java.lang.String xsl, boolean formatXsl,
107         java.lang.String langType, boolean cacheable, boolean smallImage,
108         java.lang.String smallImageURL, java.io.File smallFile,
109         boolean addCommunityPermissions, boolean addGuestPermissions)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException;
112 
113     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
114         java.lang.String uuid, long userId, java.lang.String templateId,
115         boolean autoTemplateId, long plid, java.lang.String structureId,
116         java.lang.String name, java.lang.String description,
117         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
118         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
119         java.io.File smallFile, boolean addCommunityPermissions,
120         boolean addGuestPermissions)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
125         long userId, java.lang.String templateId, boolean autoTemplateId,
126         long plid, java.lang.String structureId, java.lang.String name,
127         java.lang.String description, java.lang.String xsl, boolean formatXsl,
128         java.lang.String langType, boolean cacheable, boolean smallImage,
129         java.lang.String smallImageURL, java.io.File smallFile,
130         java.lang.String[] communityPermissions,
131         java.lang.String[] guestPermissions)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException;
134 
135     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
136         java.lang.String uuid, long userId, java.lang.String templateId,
137         boolean autoTemplateId, long plid, java.lang.String structureId,
138         java.lang.String name, java.lang.String description,
139         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
140         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
141         java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
142         java.lang.Boolean addGuestPermissions,
143         java.lang.String[] communityPermissions,
144         java.lang.String[] guestPermissions)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException;
147 
148     public com.liferay.portlet.journal.model.JournalTemplate addTemplateToGroup(
149         java.lang.String uuid, long userId, java.lang.String templateId,
150         boolean autoTemplateId, long groupId, java.lang.String structureId,
151         java.lang.String name, java.lang.String description,
152         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
153         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
154         java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
155         java.lang.Boolean addGuestPermissions,
156         java.lang.String[] communityPermissions,
157         java.lang.String[] guestPermissions)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     public void addTemplateResources(long groupId, java.lang.String templateId,
162         boolean addCommunityPermissions, boolean addGuestPermissions)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     public void addTemplateResources(
167         com.liferay.portlet.journal.model.JournalTemplate template,
168         boolean addCommunityPermissions, boolean addGuestPermissions)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException;
171 
172     public void addTemplateResources(long groupId, java.lang.String templateId,
173         java.lang.String[] communityPermissions,
174         java.lang.String[] guestPermissions)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     public void addTemplateResources(
179         com.liferay.portlet.journal.model.JournalTemplate template,
180         java.lang.String[] communityPermissions,
181         java.lang.String[] guestPermissions)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException;
184 
185     public void checkNewLine(long groupId, java.lang.String templateId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException;
188 
189     public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
190         long userId, long groupId, java.lang.String oldTemplateId,
191         java.lang.String newTemplateId, boolean autoTemplateId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException;
194 
195     public void deleteTemplate(long groupId, java.lang.String templateId)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException;
198 
199     public void deleteTemplate(
200         com.liferay.portlet.journal.model.JournalTemplate template)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException;
203 
204     public void deleteTemplates(long groupId)
205         throws com.liferay.portal.PortalException,
206             com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
210         long groupId, java.lang.String structureId)
211         throws com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
215         long groupId, java.lang.String structureId, int start, int end)
216         throws com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public int getStructureTemplatesCount(long groupId,
220         java.lang.String structureId) throws com.liferay.portal.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
224         long id)
225         throws com.liferay.portal.PortalException,
226             com.liferay.portal.SystemException;
227 
228     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
230         long groupId, java.lang.String templateId)
231         throws com.liferay.portal.PortalException,
232             com.liferay.portal.SystemException;
233 
234     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235     public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
236         long smallImageId)
237         throws com.liferay.portal.PortalException,
238             com.liferay.portal.SystemException;
239 
240     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
242         throws com.liferay.portal.SystemException;
243 
244     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
246         long groupId) throws com.liferay.portal.SystemException;
247 
248     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
250         long groupId, int start, int end)
251         throws com.liferay.portal.SystemException;
252 
253     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254     public int getTemplatesCount(long groupId)
255         throws com.liferay.portal.SystemException;
256 
257     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258     public boolean hasTemplate(long groupId, java.lang.String templateId)
259         throws com.liferay.portal.SystemException;
260 
261     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
263         long companyId, long groupId, java.lang.String keywords,
264         java.lang.String structureId, java.lang.String structureIdComparator,
265         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException;
267 
268     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
270         long companyId, long groupId, java.lang.String templateId,
271         java.lang.String structureId, java.lang.String structureIdComparator,
272         java.lang.String name, java.lang.String description,
273         boolean andOperator, int start, int end,
274         com.liferay.portal.kernel.util.OrderByComparator obc)
275         throws com.liferay.portal.SystemException;
276 
277     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278     public int searchCount(long companyId, long groupId,
279         java.lang.String keywords, java.lang.String structureId,
280         java.lang.String structureIdComparator)
281         throws com.liferay.portal.SystemException;
282 
283     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284     public int searchCount(long companyId, long groupId,
285         java.lang.String templateId, java.lang.String structureId,
286         java.lang.String structureIdComparator, java.lang.String name,
287         java.lang.String description, boolean andOperator)
288         throws com.liferay.portal.SystemException;
289 
290     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
291         long groupId, java.lang.String templateId,
292         java.lang.String structureId, java.lang.String name,
293         java.lang.String description, java.lang.String xsl, boolean formatXsl,
294         java.lang.String langType, boolean cacheable, boolean smallImage,
295         java.lang.String smallImageURL, java.io.File smallFile)
296         throws com.liferay.portal.PortalException,
297             com.liferay.portal.SystemException;
298 }