1
14
15 package com.liferay.portlet.wiki.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface WikiPageLocalService {
50 public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
51 com.liferay.portlet.wiki.model.WikiPage wikiPage)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
55
56 public void deleteWikiPage(long pageId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException;
59
60 public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
61 throws com.liferay.portal.SystemException;
62
63 @SuppressWarnings("rawtypes")
64 public java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.SystemException;
67
68 @SuppressWarnings("rawtypes")
69 public java.util.List dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException;
72
73 @SuppressWarnings("rawtypes")
74 public java.util.List dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.SystemException;
79
80 public int dynamicQueryCount(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82 throws com.liferay.portal.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
91 java.lang.String uuid, long groupId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
97 int start, int end) throws com.liferay.portal.SystemException;
98
99 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public int getWikiPagesCount() throws com.liferay.portal.SystemException;
101
102 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
103 com.liferay.portlet.wiki.model.WikiPage wikiPage)
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
107 com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
108 throws com.liferay.portal.SystemException;
109
110 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
111 long nodeId, java.lang.String title, java.lang.String content,
112 java.lang.String summary, boolean minorEdit,
113 com.liferay.portal.service.ServiceContext serviceContext)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException;
116
117 public com.liferay.portlet.wiki.model.WikiPage addPage(
118 java.lang.String uuid, long userId, long nodeId,
119 java.lang.String title, double version, java.lang.String content,
120 java.lang.String summary, boolean minorEdit, java.lang.String format,
121 boolean head, java.lang.String parentTitle,
122 java.lang.String redirectTitle,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException;
126
127 public void addPageAttachments(long nodeId, java.lang.String title,
128 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException;
131
132 public void addPageResources(long nodeId, java.lang.String title,
133 boolean addCommunityPermissions, boolean addGuestPermissions)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException;
136
137 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
138 boolean addCommunityPermissions, boolean addGuestPermissions)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException;
141
142 public void addPageResources(long nodeId, java.lang.String title,
143 java.lang.String[] communityPermissions,
144 java.lang.String[] guestPermissions)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException;
147
148 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException;
153
154 public void changeParent(long userId, long nodeId, java.lang.String title,
155 java.lang.String newParentTitle,
156 com.liferay.portal.service.ServiceContext serviceContext)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public void deletePage(long nodeId, java.lang.String title)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 public void deletePageAttachment(long nodeId, java.lang.String title,
169 java.lang.String fileName)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException;
172
173 public void deletePages(long nodeId)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
179 long nodeId, boolean head, java.lang.String parentTitle)
180 throws com.liferay.portal.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
184 long nodeId, java.lang.String title)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
190 throws com.liferay.portal.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
194 long nodeId)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
200 long nodeId, java.lang.String title)
201 throws com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException;
203
204 public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
205 throws com.liferay.portal.PortalException,
206 com.liferay.portal.SystemException;
207
208 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
209 java.lang.String title)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException;
212
213 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
214 java.lang.String title, double version)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
220 long nodeId, java.lang.String title,
221 javax.portlet.PortletURL viewPageURL,
222 javax.portlet.PortletURL editPageURL,
223 java.lang.String attachmentURLPrefix)
224 throws com.liferay.portal.PortalException,
225 com.liferay.portal.SystemException;
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
229 long nodeId, int start, int end)
230 throws com.liferay.portal.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
234 java.lang.String format) throws com.liferay.portal.SystemException;
235
236 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
238 long nodeId, java.lang.String title, int start, int end)
239 throws com.liferay.portal.SystemException;
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
243 long nodeId, java.lang.String title, int start, int end,
244 com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
249 long nodeId, boolean head, int start, int end)
250 throws com.liferay.portal.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
254 long nodeId, java.lang.String title, boolean head, int start, int end)
255 throws com.liferay.portal.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public int getPagesCount(long nodeId)
259 throws com.liferay.portal.SystemException;
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public int getPagesCount(long nodeId, java.lang.String title)
263 throws com.liferay.portal.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public int getPagesCount(long nodeId, boolean head)
267 throws com.liferay.portal.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public int getPagesCount(long nodeId, java.lang.String title, boolean head)
271 throws com.liferay.portal.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public int getPagesCount(java.lang.String format)
275 throws com.liferay.portal.SystemException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
279 long nodeId, int start, int end)
280 throws com.liferay.portal.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public int getRecentChangesCount(long nodeId)
284 throws com.liferay.portal.SystemException;
285
286 public void movePage(long userId, long nodeId, java.lang.String title,
287 java.lang.String newTitle,
288 com.liferay.portal.service.ServiceContext serviceContext)
289 throws com.liferay.portal.PortalException,
290 com.liferay.portal.SystemException;
291
292 public void movePage(long userId, long nodeId, java.lang.String title,
293 java.lang.String newTitle, boolean strict,
294 com.liferay.portal.service.ServiceContext serviceContext)
295 throws com.liferay.portal.PortalException,
296 com.liferay.portal.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public void reIndex(long resourcePrimKey)
300 throws com.liferay.portal.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public void reIndex(com.liferay.portlet.wiki.model.WikiPage page)
304 throws com.liferay.portal.SystemException;
305
306 public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
307 long nodeId, java.lang.String title, double version,
308 com.liferay.portal.service.ServiceContext serviceContext)
309 throws com.liferay.portal.PortalException,
310 com.liferay.portal.SystemException;
311
312 public void subscribePage(long userId, long nodeId, java.lang.String title)
313 throws com.liferay.portal.PortalException,
314 com.liferay.portal.SystemException;
315
316 public void unsubscribePage(long userId, long nodeId, java.lang.String title)
317 throws com.liferay.portal.PortalException,
318 com.liferay.portal.SystemException;
319
320 public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
321 long nodeId, java.lang.String title, double version,
322 java.lang.String content, java.lang.String summary, boolean minorEdit,
323 java.lang.String format, java.lang.String parentTitle,
324 java.lang.String redirectTitle,
325 com.liferay.portal.service.ServiceContext serviceContext)
326 throws com.liferay.portal.PortalException,
327 com.liferay.portal.SystemException;
328
329 public void updateTagsAsset(long userId,
330 com.liferay.portlet.wiki.model.WikiPage page,
331 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
332 throws com.liferay.portal.PortalException,
333 com.liferay.portal.SystemException;
334
335 public void validateTitle(java.lang.String title)
336 throws com.liferay.portal.PortalException;
337 }