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="JournalStructureLocalService.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.JournalStructureLocalServiceImpl</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.JournalStructureLocalServiceFactory
48   * @see com.liferay.portlet.journal.service.JournalStructureLocalServiceUtil
49   *
50   */
51  public interface JournalStructureLocalService {
52      public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
53          com.liferay.portlet.journal.model.JournalStructure 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.JournalStructure updateJournalStructure(
65          com.liferay.portlet.journal.model.JournalStructure model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.journal.service.persistence.JournalArticlePersistence getJournalArticlePersistence();
69  
70      public void setJournalArticlePersistence(
71          com.liferay.portlet.journal.service.persistence.JournalArticlePersistence journalArticlePersistence);
72  
73      public com.liferay.portlet.journal.service.persistence.JournalArticleFinder getJournalArticleFinder();
74  
75      public void setJournalArticleFinder(
76          com.liferay.portlet.journal.service.persistence.JournalArticleFinder journalArticleFinder);
77  
78      public com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence getJournalArticleImagePersistence();
79  
80      public void setJournalArticleImagePersistence(
81          com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence journalArticleImagePersistence);
82  
83      public com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence getJournalArticleResourcePersistence();
84  
85      public void setJournalArticleResourcePersistence(
86          com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence journalArticleResourcePersistence);
87  
88      public com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence getJournalContentSearchPersistence();
89  
90      public void setJournalContentSearchPersistence(
91          com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence journalContentSearchPersistence);
92  
93      public com.liferay.portlet.journal.service.persistence.JournalFeedPersistence getJournalFeedPersistence();
94  
95      public void setJournalFeedPersistence(
96          com.liferay.portlet.journal.service.persistence.JournalFeedPersistence journalFeedPersistence);
97  
98      public com.liferay.portlet.journal.service.persistence.JournalFeedFinder getJournalFeedFinder();
99  
100     public void setJournalFeedFinder(
101         com.liferay.portlet.journal.service.persistence.JournalFeedFinder journalFeedFinder);
102 
103     public com.liferay.portlet.journal.service.persistence.JournalStructurePersistence getJournalStructurePersistence();
104 
105     public void setJournalStructurePersistence(
106         com.liferay.portlet.journal.service.persistence.JournalStructurePersistence journalStructurePersistence);
107 
108     public com.liferay.portlet.journal.service.persistence.JournalStructureFinder getJournalStructureFinder();
109 
110     public void setJournalStructureFinder(
111         com.liferay.portlet.journal.service.persistence.JournalStructureFinder journalStructureFinder);
112 
113     public com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence getJournalTemplatePersistence();
114 
115     public void setJournalTemplatePersistence(
116         com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence journalTemplatePersistence);
117 
118     public com.liferay.portlet.journal.service.persistence.JournalTemplateFinder getJournalTemplateFinder();
119 
120     public void setJournalTemplateFinder(
121         com.liferay.portlet.journal.service.persistence.JournalTemplateFinder journalTemplateFinder);
122 
123     public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
124 
125     public void setResourcePersistence(
126         com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
127 
128     public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
129 
130     public void setResourceFinder(
131         com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
132 
133     public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
134 
135     public void setUserPersistence(
136         com.liferay.portal.service.persistence.UserPersistence userPersistence);
137 
138     public com.liferay.portal.service.persistence.UserFinder getUserFinder();
139 
140     public void setUserFinder(
141         com.liferay.portal.service.persistence.UserFinder userFinder);
142 
143     public com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence();
144 
145     public void setWebDAVPropsPersistence(
146         com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence);
147 
148     public void afterPropertiesSet();
149 
150     public com.liferay.portlet.journal.model.JournalStructure addStructure(
151         long userId, java.lang.String structureId, boolean autoStructureId,
152         long plid, java.lang.String name, java.lang.String description,
153         java.lang.String xsd, boolean addCommunityPermissions,
154         boolean addGuestPermissions)
155         throws com.liferay.portal.SystemException, 
156             com.liferay.portal.PortalException;
157 
158     public com.liferay.portlet.journal.model.JournalStructure addStructure(
159         java.lang.String uuid, long userId, java.lang.String structureId,
160         boolean autoStructureId, long plid, java.lang.String name,
161         java.lang.String description, java.lang.String xsd,
162         boolean addCommunityPermissions, boolean addGuestPermissions)
163         throws com.liferay.portal.SystemException, 
164             com.liferay.portal.PortalException;
165 
166     public com.liferay.portlet.journal.model.JournalStructure addStructure(
167         long userId, java.lang.String structureId, boolean autoStructureId,
168         long plid, java.lang.String name, java.lang.String description,
169         java.lang.String xsd, java.lang.String[] communityPermissions,
170         java.lang.String[] guestPermissions)
171         throws com.liferay.portal.SystemException, 
172             com.liferay.portal.PortalException;
173 
174     public com.liferay.portlet.journal.model.JournalStructure addStructure(
175         java.lang.String uuid, long userId, java.lang.String structureId,
176         boolean autoStructureId, long plid, java.lang.String name,
177         java.lang.String description, java.lang.String xsd,
178         java.lang.Boolean addCommunityPermissions,
179         java.lang.Boolean addGuestPermissions,
180         java.lang.String[] communityPermissions,
181         java.lang.String[] guestPermissions)
182         throws com.liferay.portal.SystemException, 
183             com.liferay.portal.PortalException;
184 
185     public com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
186         java.lang.String uuid, long userId, java.lang.String structureId,
187         boolean autoStructureId, long groupId, java.lang.String name,
188         java.lang.String description, java.lang.String xsd,
189         java.lang.Boolean addCommunityPermissions,
190         java.lang.Boolean addGuestPermissions,
191         java.lang.String[] communityPermissions,
192         java.lang.String[] guestPermissions)
193         throws com.liferay.portal.SystemException, 
194             com.liferay.portal.PortalException;
195 
196     public void addStructureResources(long groupId,
197         java.lang.String structureId, boolean addCommunityPermissions,
198         boolean addGuestPermissions)
199         throws com.liferay.portal.SystemException, 
200             com.liferay.portal.PortalException;
201 
202     public void addStructureResources(
203         com.liferay.portlet.journal.model.JournalStructure structure,
204         boolean addCommunityPermissions, boolean addGuestPermissions)
205         throws com.liferay.portal.SystemException, 
206             com.liferay.portal.PortalException;
207 
208     public void addStructureResources(long groupId,
209         java.lang.String structureId, java.lang.String[] communityPermissions,
210         java.lang.String[] guestPermissions)
211         throws com.liferay.portal.SystemException, 
212             com.liferay.portal.PortalException;
213 
214     public void addStructureResources(
215         com.liferay.portlet.journal.model.JournalStructure structure,
216         java.lang.String[] communityPermissions,
217         java.lang.String[] guestPermissions)
218         throws com.liferay.portal.SystemException, 
219             com.liferay.portal.PortalException;
220 
221     public void checkNewLine(long groupId, java.lang.String structureId)
222         throws com.liferay.portal.SystemException, 
223             com.liferay.portal.PortalException;
224 
225     public void deleteStructure(long groupId, java.lang.String structureId)
226         throws com.liferay.portal.SystemException, 
227             com.liferay.portal.PortalException;
228 
229     public void deleteStructure(
230         com.liferay.portlet.journal.model.JournalStructure structure)
231         throws com.liferay.portal.SystemException, 
232             com.liferay.portal.PortalException;
233 
234     public void deleteStructures(long groupId)
235         throws com.liferay.portal.SystemException, 
236             com.liferay.portal.PortalException;
237 
238     public com.liferay.portlet.journal.model.JournalStructure getStructure(
239         long id)
240         throws com.liferay.portal.SystemException, 
241             com.liferay.portal.PortalException;
242 
243     public com.liferay.portlet.journal.model.JournalStructure getStructure(
244         long groupId, java.lang.String structureId)
245         throws com.liferay.portal.SystemException, 
246             com.liferay.portal.PortalException;
247 
248     public java.util.List getStructures()
249         throws com.liferay.portal.SystemException;
250 
251     public java.util.List getStructures(long groupId)
252         throws com.liferay.portal.SystemException;
253 
254     public java.util.List getStructures(long groupId, int begin, int end)
255         throws com.liferay.portal.SystemException;
256 
257     public int getStructuresCount(long groupId)
258         throws com.liferay.portal.SystemException;
259 
260     public java.util.List search(long companyId, long groupId,
261         java.lang.String keywords, int begin, int end,
262         com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.SystemException;
264 
265     public java.util.List search(long companyId, long groupId,
266         java.lang.String structureId, java.lang.String name,
267         java.lang.String description, boolean andOperator, int begin, int end,
268         com.liferay.portal.kernel.util.OrderByComparator obc)
269         throws com.liferay.portal.SystemException;
270 
271     public int searchCount(long companyId, long groupId,
272         java.lang.String keywords) throws com.liferay.portal.SystemException;
273 
274     public int searchCount(long companyId, long groupId,
275         java.lang.String structureId, java.lang.String name,
276         java.lang.String description, boolean andOperator)
277         throws com.liferay.portal.SystemException;
278 
279     public com.liferay.portlet.journal.model.JournalStructure updateStructure(
280         long groupId, java.lang.String structureId, java.lang.String name,
281         java.lang.String description, java.lang.String xsd)
282         throws com.liferay.portal.SystemException, 
283             com.liferay.portal.PortalException;
284 }