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