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.JournalTemplateLocalServiceFactory
48   * @see com.liferay.portlet.journal.service.JournalTemplateLocalServiceUtil
49   *
50   */
51  public interface JournalTemplateLocalService {
52      public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
53          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteJournalTemplate(long id)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteJournalTemplate(
61          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
73          long id)
74          throws com.liferay.portal.SystemException,
75              com.liferay.portal.PortalException;
76  
77      public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
78          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
82          long userId, java.lang.String templateId, boolean autoTemplateId,
83          long plid, java.lang.String structureId, java.lang.String name,
84          java.lang.String description, java.lang.String xsl, boolean formatXsl,
85          java.lang.String langType, boolean cacheable, boolean smallImage,
86          java.lang.String smallImageURL, java.io.File smallFile,
87          boolean addCommunityPermissions, boolean addGuestPermissions)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
92          java.lang.String uuid, long userId, java.lang.String templateId,
93          boolean autoTemplateId, long plid, java.lang.String structureId,
94          java.lang.String name, java.lang.String description,
95          java.lang.String xsl, boolean formatXsl, java.lang.String langType,
96          boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
97          java.io.File smallFile, boolean addCommunityPermissions,
98          boolean addGuestPermissions)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
103         long userId, java.lang.String templateId, boolean autoTemplateId,
104         long plid, java.lang.String structureId, java.lang.String name,
105         java.lang.String description, java.lang.String xsl, boolean formatXsl,
106         java.lang.String langType, boolean cacheable, boolean smallImage,
107         java.lang.String smallImageURL, java.io.File smallFile,
108         java.lang.String[] communityPermissions,
109         java.lang.String[] guestPermissions)
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, java.lang.Boolean addCommunityPermissions,
120         java.lang.Boolean addGuestPermissions,
121         java.lang.String[] communityPermissions,
122         java.lang.String[] guestPermissions)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public com.liferay.portlet.journal.model.JournalTemplate addTemplateToGroup(
127         java.lang.String uuid, long userId, java.lang.String templateId,
128         boolean autoTemplateId, long groupId, java.lang.String structureId,
129         java.lang.String name, java.lang.String description,
130         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
131         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
132         java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
133         java.lang.Boolean addGuestPermissions,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void addTemplateResources(long groupId, java.lang.String templateId,
140         boolean addCommunityPermissions, boolean addGuestPermissions)
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         boolean addCommunityPermissions, boolean addGuestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void addTemplateResources(long groupId, java.lang.String templateId,
151         java.lang.String[] communityPermissions,
152         java.lang.String[] guestPermissions)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     public void addTemplateResources(
157         com.liferay.portlet.journal.model.JournalTemplate template,
158         java.lang.String[] communityPermissions,
159         java.lang.String[] guestPermissions)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public void checkNewLine(long groupId, java.lang.String templateId)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public void deleteTemplate(long groupId, java.lang.String templateId)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public void deleteTemplate(
172         com.liferay.portlet.journal.model.JournalTemplate template)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException;
175 
176     public void deleteTemplates(long groupId)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
181         long groupId, java.lang.String structureId)
182         throws com.liferay.portal.SystemException;
183 
184     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
185         long groupId, java.lang.String structureId, int start, int end)
186         throws com.liferay.portal.SystemException;
187 
188     public int getStructureTemplatesCount(long groupId,
189         java.lang.String structureId) throws com.liferay.portal.SystemException;
190 
191     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
192         long id)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException;
195 
196     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
197         long groupId, java.lang.String templateId)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException;
200 
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     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
207         throws com.liferay.portal.SystemException;
208 
209     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
210         long groupId) throws com.liferay.portal.SystemException;
211 
212     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
213         long groupId, int start, int end)
214         throws com.liferay.portal.SystemException;
215 
216     public int getTemplatesCount(long groupId)
217         throws com.liferay.portal.SystemException;
218 
219     public boolean hasTemplate(long groupId, java.lang.String templateId)
220         throws com.liferay.portal.SystemException;
221 
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.SystemException;
227 
228     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
229         long companyId, long groupId, java.lang.String templateId,
230         java.lang.String structureId, java.lang.String structureIdComparator,
231         java.lang.String name, java.lang.String description,
232         boolean andOperator, int start, int end,
233         com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.SystemException;
235 
236     public int searchCount(long companyId, long groupId,
237         java.lang.String keywords, java.lang.String structureId,
238         java.lang.String structureIdComparator)
239         throws com.liferay.portal.SystemException;
240 
241     public int searchCount(long companyId, long groupId,
242         java.lang.String templateId, java.lang.String structureId,
243         java.lang.String structureIdComparator, java.lang.String name,
244         java.lang.String description, boolean andOperator)
245         throws com.liferay.portal.SystemException;
246 
247     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
248         long groupId, java.lang.String templateId,
249         java.lang.String structureId, java.lang.String name,
250         java.lang.String description, java.lang.String xsl, boolean formatXsl,
251         java.lang.String langType, boolean cacheable, boolean smallImage,
252         java.lang.String smallImageURL, java.io.File smallFile)
253         throws com.liferay.portal.PortalException,
254             com.liferay.portal.SystemException;
255 }