001
014
015 package com.liferay.portlet.wiki.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface WikiNodeLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
056 com.liferay.portlet.wiki.model.WikiNode wikiNode)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
066
067
075 public com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(long nodeId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079
086 public com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(
087 com.liferay.portlet.wiki.model.WikiNode wikiNode)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
091
092
099 @SuppressWarnings("rawtypes")
100 public java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104
117 @SuppressWarnings("rawtypes")
118 public java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException;
121
122
136 @SuppressWarnings("rawtypes")
137 public java.util.List dynamicQuery(
138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139 int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143
150 public long dynamicQueryCount(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.wiki.model.WikiNode fetchWikiNode(long nodeId)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portal.model.PersistedModel getPersistedModel(
173 java.io.Serializable primaryKeyObj)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
188 java.lang.String uuid, long groupId)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException;
191
192
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
206 int start, int end)
207 throws com.liferay.portal.kernel.exception.SystemException;
208
209
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public int getWikiNodesCount()
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219
226 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
227 com.liferay.portlet.wiki.model.WikiNode wikiNode)
228 throws com.liferay.portal.kernel.exception.SystemException;
229
230
235 public java.lang.String getBeanIdentifier();
236
237
242 public void setBeanIdentifier(java.lang.String beanIdentifier);
243
244 public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
245 com.liferay.portal.service.ServiceContext serviceContext)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException;
248
249 public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
250 java.lang.String name, java.lang.String description,
251 com.liferay.portal.service.ServiceContext serviceContext)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 public void addNodeResources(long nodeId, boolean addGroupPermissions,
256 boolean addGuestPermissions)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 public void addNodeResources(long nodeId,
261 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
266 boolean addGroupPermissions, boolean addGuestPermissions)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
271 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 public void deleteNode(long nodeId)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException;
282
283 public void deleteNodes(long groupId)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public com.liferay.portlet.wiki.model.WikiNode fetchWikiNode(long groupId,
289 java.lang.String name)
290 throws com.liferay.portal.kernel.exception.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
294 long companyId, int start, int end)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
299 long companyId, int status, int start, int end)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public int getCompanyNodesCount(long companyId)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public int getCompanyNodesCount(long companyId, int status)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
317 java.lang.String nodeName)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
323 long groupId)
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException;
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
329 long groupId, int status)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException;
332
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
335 long groupId, int start, int end)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException;
338
339 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
341 long groupId, int status, int start, int end)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException;
344
345 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346 public int getNodesCount(long groupId)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public int getNodesCount(long groupId, int status)
351 throws com.liferay.portal.kernel.exception.SystemException;
352
353 public void importPages(long userId, long nodeId,
354 java.lang.String importer, java.io.InputStream[] inputStreams,
355 java.util.Map<java.lang.String, java.lang.String[]> options)
356 throws com.liferay.portal.kernel.exception.PortalException,
357 com.liferay.portal.kernel.exception.SystemException;
358
359 public com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
360 long userId, long nodeId)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException;
363
364 public com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
365 long userId, com.liferay.portlet.wiki.model.WikiNode node)
366 throws com.liferay.portal.kernel.exception.PortalException,
367 com.liferay.portal.kernel.exception.SystemException;
368
369 public void restoreNodeFromTrash(long userId,
370 com.liferay.portlet.wiki.model.WikiNode node)
371 throws com.liferay.portal.kernel.exception.PortalException,
372 com.liferay.portal.kernel.exception.SystemException;
373
374 public void subscribeNode(long userId, long nodeId)
375 throws com.liferay.portal.kernel.exception.PortalException,
376 com.liferay.portal.kernel.exception.SystemException;
377
378 public void unsubscribeNode(long userId, long nodeId)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException;
381
382 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
383 java.lang.String name, java.lang.String description,
384 com.liferay.portal.service.ServiceContext serviceContext)
385 throws com.liferay.portal.kernel.exception.PortalException,
386 com.liferay.portal.kernel.exception.SystemException;
387
388 public com.liferay.portlet.wiki.model.WikiNode updateStatus(long userId,
389 com.liferay.portlet.wiki.model.WikiNode node, int status,
390 com.liferay.portal.service.ServiceContext serviceContext)
391 throws com.liferay.portal.kernel.exception.PortalException,
392 com.liferay.portal.kernel.exception.SystemException;
393 }