1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
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.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.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public void deleteJournalTemplate(
62          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.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.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.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.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.PortalException,
87              com.liferay.portal.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) throws com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public int getJournalTemplatesCount()
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
98          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
99          throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
102         com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
103         boolean merge) throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
106         long userId, long groupId, java.lang.String templateId,
107         boolean autoTemplateId, java.lang.String structureId,
108         java.lang.String name, java.lang.String description,
109         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
110         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
111         java.io.File smallFile,
112         com.liferay.portal.service.ServiceContext serviceContext)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
117         java.lang.String uuid, long userId, long groupId,
118         java.lang.String templateId, boolean autoTemplateId,
119         java.lang.String structureId, java.lang.String name,
120         java.lang.String description, java.lang.String xsl, boolean formatXsl,
121         java.lang.String langType, boolean cacheable, boolean smallImage,
122         java.lang.String smallImageURL, java.io.File smallFile,
123         com.liferay.portal.service.ServiceContext serviceContext)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     public void addTemplateResources(long groupId, java.lang.String templateId,
128         boolean addCommunityPermissions, boolean addGuestPermissions)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public void addTemplateResources(
133         com.liferay.portlet.journal.model.JournalTemplate template,
134         boolean addCommunityPermissions, boolean addGuestPermissions)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public void addTemplateResources(long groupId, java.lang.String templateId,
139         java.lang.String[] communityPermissions,
140         java.lang.String[] guestPermissions)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void addTemplateResources(
145         com.liferay.portlet.journal.model.JournalTemplate template,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public void checkNewLine(long groupId, java.lang.String templateId)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
156         long userId, long groupId, java.lang.String oldTemplateId,
157         java.lang.String newTemplateId, boolean autoTemplateId)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     public void deleteTemplate(long groupId, java.lang.String templateId)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException;
164 
165     public void deleteTemplate(
166         com.liferay.portlet.journal.model.JournalTemplate template)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException;
169 
170     public void deleteTemplates(long groupId)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
176         long groupId, java.lang.String structureId)
177         throws com.liferay.portal.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
181         long groupId, java.lang.String structureId, int start, int end)
182         throws com.liferay.portal.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public int getStructureTemplatesCount(long groupId,
186         java.lang.String structureId) throws com.liferay.portal.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
190         long id)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
196         long groupId, java.lang.String templateId)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
202         long smallImageId)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException;
205 
206     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
208         throws com.liferay.portal.SystemException;
209 
210     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
212         long groupId) throws com.liferay.portal.SystemException;
213 
214     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
216         long groupId, int start, int end)
217         throws com.liferay.portal.SystemException;
218 
219     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220     public int getTemplatesCount(long groupId)
221         throws com.liferay.portal.SystemException;
222 
223     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public boolean hasTemplate(long groupId, java.lang.String templateId)
225         throws com.liferay.portal.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
229         long companyId, long groupId, java.lang.String keywords,
230         java.lang.String structureId, java.lang.String structureIdComparator,
231         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException;
233 
234     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
236         long companyId, long groupId, java.lang.String templateId,
237         java.lang.String structureId, java.lang.String structureIdComparator,
238         java.lang.String name, java.lang.String description,
239         boolean andOperator, int start, int end,
240         com.liferay.portal.kernel.util.OrderByComparator obc)
241         throws com.liferay.portal.SystemException;
242 
243     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244     public int searchCount(long companyId, long groupId,
245         java.lang.String keywords, java.lang.String structureId,
246         java.lang.String structureIdComparator)
247         throws com.liferay.portal.SystemException;
248 
249     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250     public int searchCount(long companyId, long groupId,
251         java.lang.String templateId, java.lang.String structureId,
252         java.lang.String structureIdComparator, java.lang.String name,
253         java.lang.String description, boolean andOperator)
254         throws com.liferay.portal.SystemException;
255 
256     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
257         long groupId, java.lang.String templateId,
258         java.lang.String structureId, java.lang.String name,
259         java.lang.String description, java.lang.String xsl, boolean formatXsl,
260         java.lang.String langType, boolean cacheable, boolean smallImage,
261         java.lang.String smallImageURL, java.io.File smallFile,
262         com.liferay.portal.service.ServiceContext serviceContext)
263         throws com.liferay.portal.PortalException,
264             com.liferay.portal.SystemException;
265 }