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