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