1   /**
2    * Copyright (c) 2000-2007 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   * <a href="JournalTemplateLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl</code>.
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
41   * based on the propagated JAAS credentials because this service can only be accessed
42   * from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.journal.service.JournalTemplateServiceFactory
48   * @see com.liferay.portlet.journal.service.JournalTemplateServiceUtil
49   *
50   */
51  public interface JournalTemplateLocalService {
52      public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
53          com.liferay.portlet.journal.model.JournalTemplate model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
65          com.liferay.portlet.journal.model.JournalTemplate model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
69          long userId, java.lang.String templateId, boolean autoTemplateId,
70          long plid, java.lang.String structureId, java.lang.String name,
71          java.lang.String description, java.lang.String xsl, boolean formatXsl,
72          java.lang.String langType, boolean smallImage,
73          java.lang.String smallImageURL, java.io.File smallFile,
74          boolean addCommunityPermissions, boolean addGuestPermissions)
75          throws com.liferay.portal.SystemException, 
76              com.liferay.portal.PortalException;
77  
78      public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
79          long userId, java.lang.String templateId, boolean autoTemplateId,
80          long plid, java.lang.String structureId, java.lang.String name,
81          java.lang.String description, java.lang.String xsl, boolean formatXsl,
82          java.lang.String langType, boolean smallImage,
83          java.lang.String smallImageURL, java.io.File smallFile,
84          java.lang.String[] communityPermissions,
85          java.lang.String[] guestPermissions)
86          throws com.liferay.portal.SystemException, 
87              com.liferay.portal.PortalException;
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 smallImage,
94          java.lang.String smallImageURL, java.io.File smallFile,
95          java.lang.Boolean addCommunityPermissions,
96          java.lang.Boolean addGuestPermissions,
97          java.lang.String[] communityPermissions,
98          java.lang.String[] guestPermissions)
99          throws com.liferay.portal.SystemException, 
100             com.liferay.portal.PortalException;
101 
102     public com.liferay.portlet.journal.model.JournalTemplate addTemplateToGroup(
103         long userId, java.lang.String templateId, boolean autoTemplateId,
104         long groupId, 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 smallImage,
107         java.lang.String smallImageURL, java.io.File smallFile,
108         java.lang.Boolean addCommunityPermissions,
109         java.lang.Boolean addGuestPermissions,
110         java.lang.String[] communityPermissions,
111         java.lang.String[] guestPermissions)
112         throws com.liferay.portal.SystemException, 
113             com.liferay.portal.PortalException;
114 
115     public void addTemplateResources(long groupId, java.lang.String templateId,
116         boolean addCommunityPermissions, boolean addGuestPermissions)
117         throws com.liferay.portal.SystemException, 
118             com.liferay.portal.PortalException;
119 
120     public void addTemplateResources(
121         com.liferay.portlet.journal.model.JournalTemplate template,
122         boolean addCommunityPermissions, boolean addGuestPermissions)
123         throws com.liferay.portal.SystemException, 
124             com.liferay.portal.PortalException;
125 
126     public void addTemplateResources(long groupId, java.lang.String templateId,
127         java.lang.String[] communityPermissions,
128         java.lang.String[] guestPermissions)
129         throws com.liferay.portal.SystemException, 
130             com.liferay.portal.PortalException;
131 
132     public void addTemplateResources(
133         com.liferay.portlet.journal.model.JournalTemplate template,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.SystemException, 
137             com.liferay.portal.PortalException;
138 
139     public void checkNewLine(long groupId, java.lang.String templateId)
140         throws com.liferay.portal.SystemException, 
141             com.liferay.portal.PortalException;
142 
143     public void deleteTemplate(long groupId, java.lang.String templateId)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portal.PortalException;
146 
147     public void deleteTemplate(
148         com.liferay.portlet.journal.model.JournalTemplate template)
149         throws com.liferay.portal.SystemException, 
150             com.liferay.portal.PortalException;
151 
152     public java.util.List getStructureTemplates(long groupId,
153         java.lang.String structureId) throws com.liferay.portal.SystemException;
154 
155     public java.util.List getStructureTemplates(long groupId,
156         java.lang.String structureId, int begin, int end)
157         throws com.liferay.portal.SystemException;
158 
159     public int getStructureTemplatesCount(long groupId,
160         java.lang.String structureId) throws com.liferay.portal.SystemException;
161 
162     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
163         long id)
164         throws com.liferay.portal.SystemException, 
165             com.liferay.portal.PortalException;
166 
167     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
168         long groupId, java.lang.String templateId)
169         throws com.liferay.portal.SystemException, 
170             com.liferay.portal.PortalException;
171 
172     public java.util.List getTemplates()
173         throws com.liferay.portal.SystemException;
174 
175     public java.util.List getTemplates(long groupId)
176         throws com.liferay.portal.SystemException;
177 
178     public java.util.List getTemplates(long groupId, int begin, int end)
179         throws com.liferay.portal.SystemException;
180 
181     public int getTemplatesCount(long groupId)
182         throws com.liferay.portal.SystemException;
183 
184     public boolean hasTemplate(long groupId, java.lang.String templateId)
185         throws com.liferay.portal.SystemException;
186 
187     public java.util.List search(long companyId, long groupId,
188         java.lang.String keywords, java.lang.String structureId,
189         java.lang.String structureIdComparator, int begin, int end,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException;
192 
193     public java.util.List search(long companyId, long groupId,
194         java.lang.String templateId, java.lang.String structureId,
195         java.lang.String structureIdComparator, java.lang.String name,
196         java.lang.String description, boolean andOperator, int begin, int end,
197         com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException;
199 
200     public int searchCount(long companyId, long groupId,
201         java.lang.String keywords, java.lang.String structureId,
202         java.lang.String structureIdComparator)
203         throws com.liferay.portal.SystemException;
204 
205     public int searchCount(long companyId, long groupId,
206         java.lang.String templateId, java.lang.String structureId,
207         java.lang.String structureIdComparator, java.lang.String name,
208         java.lang.String description, boolean andOperator)
209         throws com.liferay.portal.SystemException;
210 
211     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
212         long groupId, java.lang.String templateId,
213         java.lang.String structureId, java.lang.String name,
214         java.lang.String description, java.lang.String xsl, boolean formatXsl,
215         java.lang.String langType, boolean smallImage,
216         java.lang.String smallImageURL, java.io.File smallFile)
217         throws com.liferay.portal.SystemException, 
218             com.liferay.portal.PortalException;
219 }