1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  
26  /**
27   * <a href="JournalTemplateLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.journal.service.JournalTemplateLocalServiceUtil
48   *
49   */
50  public interface JournalTemplateLocalService {
51      public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
52          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
56          long id);
57  
58      public void deleteJournalTemplate(long id)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portal.PortalException;
61  
62      public void deleteJournalTemplate(
63          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
75          long id)
76          throws com.liferay.portal.SystemException,
77              com.liferay.portal.PortalException;
78  
79      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
80          int start, int end) throws com.liferay.portal.SystemException;
81  
82      public int getJournalTemplatesCount()
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
86          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
87          throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
90          long userId, java.lang.String templateId, boolean autoTemplateId,
91          long plid, java.lang.String structureId, java.lang.String name,
92          java.lang.String description, java.lang.String xsl, boolean formatXsl,
93          java.lang.String langType, boolean cacheable, boolean smallImage,
94          java.lang.String smallImageURL, java.io.File smallFile,
95          boolean addCommunityPermissions, boolean addGuestPermissions)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
100         java.lang.String uuid, long userId, java.lang.String templateId,
101         boolean autoTemplateId, long plid, java.lang.String structureId,
102         java.lang.String name, java.lang.String description,
103         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
104         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
105         java.io.File smallFile, boolean addCommunityPermissions,
106         boolean addGuestPermissions)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
111         long userId, java.lang.String templateId, boolean autoTemplateId,
112         long plid, java.lang.String structureId, java.lang.String name,
113         java.lang.String description, java.lang.String xsl, boolean formatXsl,
114         java.lang.String langType, boolean cacheable, boolean smallImage,
115         java.lang.String smallImageURL, java.io.File smallFile,
116         java.lang.String[] communityPermissions,
117         java.lang.String[] guestPermissions)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
122         java.lang.String uuid, long userId, java.lang.String templateId,
123         boolean autoTemplateId, long plid, java.lang.String structureId,
124         java.lang.String name, java.lang.String description,
125         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
126         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
127         java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
128         java.lang.Boolean addGuestPermissions,
129         java.lang.String[] communityPermissions,
130         java.lang.String[] guestPermissions)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.journal.model.JournalTemplate addTemplateToGroup(
135         java.lang.String uuid, long userId, java.lang.String templateId,
136         boolean autoTemplateId, long groupId, java.lang.String structureId,
137         java.lang.String name, java.lang.String description,
138         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
139         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
140         java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
141         java.lang.Boolean addGuestPermissions,
142         java.lang.String[] communityPermissions,
143         java.lang.String[] guestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public void addTemplateResources(long groupId, java.lang.String templateId,
148         boolean addCommunityPermissions, boolean addGuestPermissions)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public void addTemplateResources(
153         com.liferay.portlet.journal.model.JournalTemplate template,
154         boolean addCommunityPermissions, boolean addGuestPermissions)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     public void addTemplateResources(long groupId, java.lang.String templateId,
159         java.lang.String[] communityPermissions,
160         java.lang.String[] guestPermissions)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public void addTemplateResources(
165         com.liferay.portlet.journal.model.JournalTemplate template,
166         java.lang.String[] communityPermissions,
167         java.lang.String[] guestPermissions)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public void checkNewLine(long groupId, java.lang.String templateId)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException;
174 
175     public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
176         long userId, long groupId, java.lang.String oldTemplateId,
177         java.lang.String newTemplateId, boolean autoTemplateId)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException;
180 
181     public void deleteTemplate(long groupId, java.lang.String templateId)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException;
184 
185     public void deleteTemplate(
186         com.liferay.portlet.journal.model.JournalTemplate template)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException;
189 
190     public void deleteTemplates(long groupId)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 
194     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
195         long groupId, java.lang.String structureId)
196         throws com.liferay.portal.SystemException;
197 
198     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
199         long groupId, java.lang.String structureId, int start, int end)
200         throws com.liferay.portal.SystemException;
201 
202     public int getStructureTemplatesCount(long groupId,
203         java.lang.String structureId) throws com.liferay.portal.SystemException;
204 
205     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
206         long id)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException;
209 
210     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
211         long groupId, java.lang.String templateId)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException;
214 
215     public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
216         long smallImageId)
217         throws com.liferay.portal.PortalException,
218             com.liferay.portal.SystemException;
219 
220     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
221         throws com.liferay.portal.SystemException;
222 
223     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
224         long groupId) throws com.liferay.portal.SystemException;
225 
226     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
227         long groupId, int start, int end)
228         throws com.liferay.portal.SystemException;
229 
230     public int getTemplatesCount(long groupId)
231         throws com.liferay.portal.SystemException;
232 
233     public boolean hasTemplate(long groupId, java.lang.String templateId)
234         throws com.liferay.portal.SystemException;
235 
236     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
237         long companyId, long groupId, java.lang.String keywords,
238         java.lang.String structureId, java.lang.String structureIdComparator,
239         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException;
241 
242     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
243         long companyId, long groupId, java.lang.String templateId,
244         java.lang.String structureId, java.lang.String structureIdComparator,
245         java.lang.String name, java.lang.String description,
246         boolean andOperator, int start, int end,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException;
249 
250     public int searchCount(long companyId, long groupId,
251         java.lang.String keywords, java.lang.String structureId,
252         java.lang.String structureIdComparator)
253         throws com.liferay.portal.SystemException;
254 
255     public int searchCount(long companyId, long groupId,
256         java.lang.String templateId, java.lang.String structureId,
257         java.lang.String structureIdComparator, java.lang.String name,
258         java.lang.String description, boolean andOperator)
259         throws com.liferay.portal.SystemException;
260 
261     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
262         long groupId, java.lang.String templateId,
263         java.lang.String structureId, java.lang.String name,
264         java.lang.String description, java.lang.String xsl, boolean formatXsl,
265         java.lang.String langType, boolean cacheable, boolean smallImage,
266         java.lang.String smallImageURL, java.io.File smallFile)
267         throws com.liferay.portal.PortalException,
268             com.liferay.portal.SystemException;
269 }