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.wiki.service;
24  
25  
26  /**
27   * <a href="WikiPageLocalService.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.wiki.service.impl.WikiPageLocalServiceImpl</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.wiki.service.WikiPageLocalServiceFactory
48   * @see com.liferay.portlet.wiki.service.WikiPageLocalServiceUtil
49   *
50   */
51  public interface WikiPageLocalService {
52      public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
53          com.liferay.portlet.wiki.model.WikiPage 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.wiki.model.WikiPage updateWikiPage(
65          com.liferay.portlet.wiki.model.WikiPage model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.wiki.service.persistence.WikiNodePersistence getWikiNodePersistence();
69  
70      public void setWikiNodePersistence(
71          com.liferay.portlet.wiki.service.persistence.WikiNodePersistence wikiNodePersistence);
72  
73      public com.liferay.portlet.wiki.service.persistence.WikiPagePersistence getWikiPagePersistence();
74  
75      public void setWikiPagePersistence(
76          com.liferay.portlet.wiki.service.persistence.WikiPagePersistence wikiPagePersistence);
77  
78      public com.liferay.portlet.wiki.service.persistence.WikiPageFinder getWikiPageFinder();
79  
80      public void setWikiPageFinder(
81          com.liferay.portlet.wiki.service.persistence.WikiPageFinder wikiPageFinder);
82  
83      public com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence getWikiPageResourcePersistence();
84  
85      public void setWikiPageResourcePersistence(
86          com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence wikiPageResourcePersistence);
87  
88      public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
89  
90      public void setResourcePersistence(
91          com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
92  
93      public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
94  
95      public void setResourceFinder(
96          com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
97  
98      public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
99  
100     public void setUserPersistence(
101         com.liferay.portal.service.persistence.UserPersistence userPersistence);
102 
103     public com.liferay.portal.service.persistence.UserFinder getUserFinder();
104 
105     public void setUserFinder(
106         com.liferay.portal.service.persistence.UserFinder userFinder);
107 
108     public com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence();
109 
110     public void setMBMessagePersistence(
111         com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence);
112 
113     public com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder();
114 
115     public void setMBMessageFinder(
116         com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder);
117 
118     public com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence();
119 
120     public void setTagsAssetPersistence(
121         com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence);
122 
123     public com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder();
124 
125     public void setTagsAssetFinder(
126         com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder);
127 
128     public void afterPropertiesSet();
129 
130     public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
131         long nodeId, java.lang.String title)
132         throws com.liferay.portal.SystemException, 
133             com.liferay.portal.PortalException;
134 
135     public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
136         long nodeId, java.lang.String title, double version,
137         java.lang.String content, java.lang.String format, boolean head,
138         java.lang.String[] tagsEntries)
139         throws com.liferay.portal.SystemException, 
140             com.liferay.portal.PortalException;
141 
142     public com.liferay.portlet.wiki.model.WikiPage addPage(
143         java.lang.String uuid, long userId, long nodeId,
144         java.lang.String title, double version, java.lang.String content,
145         java.lang.String format, boolean head, java.lang.String[] tagsEntries)
146         throws com.liferay.portal.SystemException, 
147             com.liferay.portal.PortalException;
148 
149     public void addPageResources(long nodeId, java.lang.String title,
150         boolean addCommunityPermissions, boolean addGuestPermissions)
151         throws com.liferay.portal.SystemException, 
152             com.liferay.portal.PortalException;
153 
154     public void addPageResources(com.liferay.portlet.wiki.model.WikiNode node,
155         com.liferay.portlet.wiki.model.WikiPage page,
156         boolean addCommunityPermissions, boolean addGuestPermissions)
157         throws com.liferay.portal.SystemException, 
158             com.liferay.portal.PortalException;
159 
160     public void addPageResources(long nodeId, java.lang.String title,
161         java.lang.String[] communityPermissions,
162         java.lang.String[] guestPermissions)
163         throws com.liferay.portal.SystemException, 
164             com.liferay.portal.PortalException;
165 
166     public void addPageResources(com.liferay.portlet.wiki.model.WikiNode node,
167         com.liferay.portlet.wiki.model.WikiPage page,
168         java.lang.String[] communityPermissions,
169         java.lang.String[] guestPermissions)
170         throws com.liferay.portal.SystemException, 
171             com.liferay.portal.PortalException;
172 
173     public void deletePage(long nodeId, java.lang.String title)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portal.PortalException;
176 
177     public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
178         throws com.liferay.portal.SystemException, 
179             com.liferay.portal.PortalException;
180 
181     public void deletePages(long nodeId)
182         throws com.liferay.portal.SystemException, 
183             com.liferay.portal.PortalException;
184 
185     public java.util.List getNoAssetPages()
186         throws com.liferay.portal.SystemException;
187 
188     public java.util.List getLinks(long nodeId, java.lang.String title)
189         throws com.liferay.portal.SystemException;
190 
191     public java.util.List getOrphans(long nodeId)
192         throws com.liferay.portal.SystemException;
193 
194     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
195         java.lang.String title)
196         throws com.liferay.portal.SystemException, 
197             com.liferay.portal.PortalException;
198 
199     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
200         java.lang.String title, double version)
201         throws com.liferay.portal.SystemException, 
202             com.liferay.portal.PortalException;
203 
204     public java.util.List getPages(long nodeId, int begin, int end)
205         throws com.liferay.portal.SystemException;
206 
207     public java.util.List getPages(long nodeId, java.lang.String title,
208         int begin, int end) throws com.liferay.portal.SystemException;
209 
210     public java.util.List getPages(long nodeId, boolean head, int begin, int end)
211         throws com.liferay.portal.SystemException;
212 
213     public java.util.List getPages(long nodeId, java.lang.String title,
214         boolean head, int begin, int end)
215         throws com.liferay.portal.SystemException;
216 
217     public int getPagesCount(long nodeId)
218         throws com.liferay.portal.SystemException;
219 
220     public int getPagesCount(long nodeId, java.lang.String title)
221         throws com.liferay.portal.SystemException;
222 
223     public int getPagesCount(long nodeId, boolean head)
224         throws com.liferay.portal.SystemException;
225 
226     public int getPagesCount(long nodeId, java.lang.String title, boolean head)
227         throws com.liferay.portal.SystemException;
228 
229     public java.util.List getRecentChanges(long nodeId, int begin, int end)
230         throws com.liferay.portal.SystemException;
231 
232     public int getRecentChangesCount(long nodeId)
233         throws com.liferay.portal.SystemException;
234 
235     public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
236         long nodeId, java.lang.String title, double version)
237         throws com.liferay.portal.SystemException, 
238             com.liferay.portal.PortalException;
239 
240     public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
241         long nodeId, java.lang.String title, java.lang.String content,
242         java.lang.String format, java.lang.String[] tagsEntries)
243         throws com.liferay.portal.SystemException, 
244             com.liferay.portal.PortalException;
245 
246     public void updateTagsAsset(long userId,
247         com.liferay.portlet.wiki.model.WikiPage page,
248         java.lang.String[] tagsEntries)
249         throws com.liferay.portal.SystemException, 
250             com.liferay.portal.PortalException;
251 }