001
014
015 package com.liferay.portlet.wiki.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PersistedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface WikiNodeLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
059 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060 public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
061 com.liferay.portlet.wiki.model.WikiNode wikiNode)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064
070 public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
071
072
080 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
081 public com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(long nodeId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085
092 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
093 public com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(
094 com.liferay.portlet.wiki.model.WikiNode wikiNode)
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
098
099
106 @SuppressWarnings("rawtypes")
107 public java.util.List dynamicQuery(
108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111
124 @SuppressWarnings("rawtypes")
125 public java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException;
128
129
143 @SuppressWarnings("rawtypes")
144 public java.util.List dynamicQuery(
145 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
146 int end,
147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150
157 public long dynamicQueryCount(
158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161
169 public long dynamicQueryCount(
170 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
171 com.liferay.portal.kernel.dao.orm.Projection projection)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public com.liferay.portlet.wiki.model.WikiNode fetchWikiNode(long nodeId)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.wiki.model.WikiNode fetchWikiNodeByUuidAndCompanyId(
188 java.lang.String uuid, long companyId)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public com.liferay.portlet.wiki.model.WikiNode fetchWikiNodeByUuidAndGroupId(
201 java.lang.String uuid, long groupId)
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
214 throws com.liferay.portal.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.SystemException;
216
217 @Override
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public com.liferay.portal.model.PersistedModel getPersistedModel(
220 java.io.Serializable primaryKeyObj)
221 throws com.liferay.portal.kernel.exception.PortalException,
222 com.liferay.portal.kernel.exception.SystemException;
223
224
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndCompanyId(
235 java.lang.String uuid, long companyId)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException;
238
239
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
250 java.lang.String uuid, long groupId)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException;
253
254
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
268 int start, int end)
269 throws com.liferay.portal.kernel.exception.SystemException;
270
271
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public int getWikiNodesCount()
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281
288 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
289 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
290 com.liferay.portlet.wiki.model.WikiNode wikiNode)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293
298 public java.lang.String getBeanIdentifier();
299
300
305 public void setBeanIdentifier(java.lang.String beanIdentifier);
306
307 public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
308 com.liferay.portal.service.ServiceContext serviceContext)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException;
311
312 public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
313 java.lang.String name, java.lang.String description,
314 com.liferay.portal.service.ServiceContext serviceContext)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException;
317
318 public void addNodeResources(long nodeId, boolean addGroupPermissions,
319 boolean addGuestPermissions)
320 throws com.liferay.portal.kernel.exception.PortalException,
321 com.liferay.portal.kernel.exception.SystemException;
322
323 public void addNodeResources(long nodeId,
324 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException;
327
328 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
329 boolean addGroupPermissions, boolean addGuestPermissions)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException;
332
333 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
334 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337
338 public void deleteNode(long nodeId)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException;
341
342 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
343 public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException;
346
347 public void deleteNodes(long groupId)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException;
350
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public com.liferay.portlet.wiki.model.WikiNode fetchNode(long groupId,
353 java.lang.String name)
354 throws com.liferay.portal.kernel.exception.SystemException;
355
356 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357 public com.liferay.portlet.wiki.model.WikiNode fetchNodeByUuidAndGroupId(
358 java.lang.String uuid, long groupId)
359 throws com.liferay.portal.kernel.exception.SystemException;
360
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
363 long companyId, int start, int end)
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
368 long companyId, int status, int start, int end)
369 throws com.liferay.portal.kernel.exception.SystemException;
370
371 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372 public int getCompanyNodesCount(long companyId)
373 throws com.liferay.portal.kernel.exception.SystemException;
374
375 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376 public int getCompanyNodesCount(long companyId, int status)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
381 throws com.liferay.portal.kernel.exception.PortalException,
382 com.liferay.portal.kernel.exception.SystemException;
383
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
386 java.lang.String nodeName)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException;
389
390 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
392 long groupId)
393 throws com.liferay.portal.kernel.exception.PortalException,
394 com.liferay.portal.kernel.exception.SystemException;
395
396 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
397 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
398 long groupId, int status)
399 throws com.liferay.portal.kernel.exception.PortalException,
400 com.liferay.portal.kernel.exception.SystemException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
404 long groupId, int start, int end)
405 throws com.liferay.portal.kernel.exception.PortalException,
406 com.liferay.portal.kernel.exception.SystemException;
407
408 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
410 long groupId, int status, int start, int end)
411 throws com.liferay.portal.kernel.exception.PortalException,
412 com.liferay.portal.kernel.exception.SystemException;
413
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public int getNodesCount(long groupId)
416 throws com.liferay.portal.kernel.exception.SystemException;
417
418 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419 public int getNodesCount(long groupId, int status)
420 throws com.liferay.portal.kernel.exception.SystemException;
421
422 public void importPages(long userId, long nodeId,
423 java.lang.String importer, java.io.InputStream[] inputStreams,
424 java.util.Map<java.lang.String, java.lang.String[]> options)
425 throws com.liferay.portal.kernel.exception.PortalException,
426 com.liferay.portal.kernel.exception.SystemException;
427
428 public com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
429 long userId, long nodeId)
430 throws com.liferay.portal.kernel.exception.PortalException,
431 com.liferay.portal.kernel.exception.SystemException;
432
433 public com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
434 long userId, com.liferay.portlet.wiki.model.WikiNode node)
435 throws com.liferay.portal.kernel.exception.PortalException,
436 com.liferay.portal.kernel.exception.SystemException;
437
438 public void restoreNodeFromTrash(long userId,
439 com.liferay.portlet.wiki.model.WikiNode node)
440 throws com.liferay.portal.kernel.exception.PortalException,
441 com.liferay.portal.kernel.exception.SystemException;
442
443 public void subscribeNode(long userId, long nodeId)
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException;
446
447 public void unsubscribeNode(long userId, long nodeId)
448 throws com.liferay.portal.kernel.exception.PortalException,
449 com.liferay.portal.kernel.exception.SystemException;
450
451 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
452 java.lang.String name, java.lang.String description,
453 com.liferay.portal.service.ServiceContext serviceContext)
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException;
456
457 public com.liferay.portlet.wiki.model.WikiNode updateStatus(long userId,
458 com.liferay.portlet.wiki.model.WikiNode node, int status,
459 com.liferay.portal.service.ServiceContext serviceContext)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException;
462 }