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 com.liferay.portal.service.ServiceContext serviceContext)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.wiki.model.WikiPage addPage(
107 java.lang.String uuid, long userId, long nodeId,
108 java.lang.String title, double version, java.lang.String content,
109 java.lang.String summary, boolean minorEdit, java.lang.String format,
110 boolean head, java.lang.String parentTitle,
111 java.lang.String redirectTitle,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 public void addPageAttachments(long nodeId, java.lang.String title,
117 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException;
120
121 public void addPageResources(long nodeId, java.lang.String title,
122 boolean addCommunityPermissions, boolean addGuestPermissions)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException;
125
126 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
127 boolean addCommunityPermissions, boolean addGuestPermissions)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException;
130
131 public void addPageResources(long nodeId, java.lang.String title,
132 java.lang.String[] communityPermissions,
133 java.lang.String[] guestPermissions)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException;
136
137 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
138 java.lang.String[] communityPermissions,
139 java.lang.String[] guestPermissions)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 public void changeParent(long userId, long nodeId, java.lang.String title,
144 java.lang.String newParentTitle,
145 com.liferay.portal.service.ServiceContext serviceContext)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public void deletePage(long nodeId, java.lang.String title)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException;
152
153 public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException;
156
157 public void deletePageAttachment(long nodeId, java.lang.String title,
158 java.lang.String fileName)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException;
161
162 public void deletePages(long nodeId)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
168 long nodeId, boolean head, java.lang.String parentTitle)
169 throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
173 long nodeId, java.lang.String title)
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> getNoAssetPages()
179 throws com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
183 long nodeId)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
189 long nodeId, java.lang.String title)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException;
192
193 public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException;
196
197 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
198 java.lang.String title)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException;
201
202 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
203 java.lang.String title, double version)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
209 long nodeId, java.lang.String title,
210 javax.portlet.PortletURL viewPageURL,
211 javax.portlet.PortletURL editPageURL,
212 java.lang.String attachmentURLPrefix)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException;
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
218 long nodeId, int start, int end)
219 throws com.liferay.portal.SystemException;
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
223 java.lang.String format) throws com.liferay.portal.SystemException;
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
227 long nodeId, java.lang.String title, int start, int end)
228 throws com.liferay.portal.SystemException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
232 long nodeId, java.lang.String title, int start, int end,
233 com.liferay.portal.kernel.util.OrderByComparator obc)
234 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, boolean head, 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, boolean head, int start, int end)
244 throws com.liferay.portal.SystemException;
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public int getPagesCount(long nodeId)
248 throws com.liferay.portal.SystemException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public int getPagesCount(long nodeId, java.lang.String title)
252 throws com.liferay.portal.SystemException;
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public int getPagesCount(long nodeId, boolean head)
256 throws com.liferay.portal.SystemException;
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public int getPagesCount(long nodeId, java.lang.String title, boolean head)
260 throws com.liferay.portal.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public int getPagesCount(java.lang.String format)
264 throws com.liferay.portal.SystemException;
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
268 long nodeId, int start, int end)
269 throws com.liferay.portal.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public int getRecentChangesCount(long nodeId)
273 throws com.liferay.portal.SystemException;
274
275 public void movePage(long userId, long nodeId, java.lang.String title,
276 java.lang.String newTitle,
277 com.liferay.portal.service.ServiceContext serviceContext)
278 throws com.liferay.portal.PortalException,
279 com.liferay.portal.SystemException;
280
281 public void movePage(long userId, long nodeId, java.lang.String title,
282 java.lang.String newTitle, boolean strict,
283 com.liferay.portal.service.ServiceContext serviceContext)
284 throws com.liferay.portal.PortalException,
285 com.liferay.portal.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public void reIndex(long resourcePrimKey)
289 throws com.liferay.portal.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public void reIndex(com.liferay.portlet.wiki.model.WikiPage page)
293 throws com.liferay.portal.SystemException;
294
295 public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
296 long nodeId, java.lang.String title, double version,
297 com.liferay.portal.service.ServiceContext serviceContext)
298 throws com.liferay.portal.PortalException,
299 com.liferay.portal.SystemException;
300
301 public void subscribePage(long userId, long nodeId, java.lang.String title)
302 throws com.liferay.portal.PortalException,
303 com.liferay.portal.SystemException;
304
305 public void unsubscribePage(long userId, long nodeId, java.lang.String title)
306 throws com.liferay.portal.PortalException,
307 com.liferay.portal.SystemException;
308
309 public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
310 long nodeId, java.lang.String title, double version,
311 java.lang.String content, java.lang.String summary, boolean minorEdit,
312 java.lang.String format, java.lang.String parentTitle,
313 java.lang.String redirectTitle,
314 com.liferay.portal.service.ServiceContext serviceContext)
315 throws com.liferay.portal.PortalException,
316 com.liferay.portal.SystemException;
317
318 public void updateTagsAsset(long userId,
319 com.liferay.portlet.wiki.model.WikiPage page,
320 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
321 throws com.liferay.portal.PortalException,
322 com.liferay.portal.SystemException;
323
324 public void validateTitle(java.lang.String title)
325 throws com.liferay.portal.PortalException;
326 }