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.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024 import com.liferay.portal.service.BaseLocalService;
025 import com.liferay.portal.service.PersistedModelLocalService;
026
027
039 @ProviderType
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface WikiNodeLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
057 public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
058 com.liferay.portlet.wiki.model.WikiNode wikiNode)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
068
069
077 public com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(long nodeId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(
089 com.liferay.portlet.wiki.model.WikiNode wikiNode)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156
164 public long dynamicQueryCount(
165 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
166 com.liferay.portal.kernel.dao.orm.Projection projection)
167 throws com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.wiki.model.WikiNode fetchWikiNode(long nodeId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.wiki.model.WikiNode fetchWikiNodeByUuidAndCompanyId(
183 java.lang.String uuid, long companyId)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public com.liferay.portlet.wiki.model.WikiNode fetchWikiNodeByUuidAndGroupId(
196 java.lang.String uuid, long groupId)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException;
211
212 @Override
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public com.liferay.portal.model.PersistedModel getPersistedModel(
215 java.io.Serializable primaryKeyObj)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException;
218
219
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndCompanyId(
230 java.lang.String uuid, long companyId)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException;
233
234
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
245 java.lang.String uuid, long groupId)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException;
248
249
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
263 int start, int end)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public int getWikiNodesCount()
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276
283 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
284 com.liferay.portlet.wiki.model.WikiNode wikiNode)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287
292 public java.lang.String getBeanIdentifier();
293
294
299 public void setBeanIdentifier(java.lang.String beanIdentifier);
300
301 public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
302 com.liferay.portal.service.ServiceContext serviceContext)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException;
305
306 public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
307 java.lang.String name, java.lang.String description,
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 void addNodeResources(long nodeId, boolean addGroupPermissions,
313 boolean addGuestPermissions)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException;
316
317 public void addNodeResources(long nodeId,
318 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException;
321
322 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
323 boolean addGroupPermissions, boolean addGuestPermissions)
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException;
326
327 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
328 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
329 throws com.liferay.portal.kernel.exception.PortalException,
330 com.liferay.portal.kernel.exception.SystemException;
331
332 public void deleteNode(long nodeId)
333 throws com.liferay.portal.kernel.exception.PortalException,
334 com.liferay.portal.kernel.exception.SystemException;
335
336 public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339
340 public void deleteNodes(long groupId)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException;
343
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public com.liferay.portlet.wiki.model.WikiNode fetchNode(long groupId,
346 java.lang.String name)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public com.liferay.portlet.wiki.model.WikiNode fetchNodeByUuidAndGroupId(
351 java.lang.String uuid, long groupId)
352 throws com.liferay.portal.kernel.exception.SystemException;
353
354 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
356 long companyId, int start, int end)
357 throws com.liferay.portal.kernel.exception.SystemException;
358
359 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
361 long companyId, int status, int start, int end)
362 throws com.liferay.portal.kernel.exception.SystemException;
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public int getCompanyNodesCount(long companyId)
366 throws com.liferay.portal.kernel.exception.SystemException;
367
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public int getCompanyNodesCount(long companyId, int status)
370 throws com.liferay.portal.kernel.exception.SystemException;
371
372 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException;
376
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
379 java.lang.String nodeName)
380 throws com.liferay.portal.kernel.exception.PortalException,
381 com.liferay.portal.kernel.exception.SystemException;
382
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
385 long groupId)
386 throws com.liferay.portal.kernel.exception.PortalException,
387 com.liferay.portal.kernel.exception.SystemException;
388
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
391 long groupId, int status)
392 throws com.liferay.portal.kernel.exception.PortalException,
393 com.liferay.portal.kernel.exception.SystemException;
394
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
397 long groupId, int start, int end)
398 throws com.liferay.portal.kernel.exception.PortalException,
399 com.liferay.portal.kernel.exception.SystemException;
400
401 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
403 long groupId, int status, int start, int end)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException;
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public int getNodesCount(long groupId)
409 throws com.liferay.portal.kernel.exception.SystemException;
410
411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412 public int getNodesCount(long groupId, int status)
413 throws com.liferay.portal.kernel.exception.SystemException;
414
415 public void importPages(long userId, long nodeId,
416 java.lang.String importer, java.io.InputStream[] inputStreams,
417 java.util.Map<java.lang.String, java.lang.String[]> options)
418 throws com.liferay.portal.kernel.exception.PortalException,
419 com.liferay.portal.kernel.exception.SystemException;
420
421 public com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
422 long userId, long nodeId)
423 throws com.liferay.portal.kernel.exception.PortalException,
424 com.liferay.portal.kernel.exception.SystemException;
425
426 public com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
427 long userId, com.liferay.portlet.wiki.model.WikiNode node)
428 throws com.liferay.portal.kernel.exception.PortalException,
429 com.liferay.portal.kernel.exception.SystemException;
430
431 public void restoreNodeFromTrash(long userId,
432 com.liferay.portlet.wiki.model.WikiNode node)
433 throws com.liferay.portal.kernel.exception.PortalException,
434 com.liferay.portal.kernel.exception.SystemException;
435
436 public void subscribeNode(long userId, long nodeId)
437 throws com.liferay.portal.kernel.exception.PortalException,
438 com.liferay.portal.kernel.exception.SystemException;
439
440 public void unsubscribeNode(long userId, long nodeId)
441 throws com.liferay.portal.kernel.exception.PortalException,
442 com.liferay.portal.kernel.exception.SystemException;
443
444 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
445 java.lang.String name, java.lang.String description,
446 com.liferay.portal.service.ServiceContext serviceContext)
447 throws com.liferay.portal.kernel.exception.PortalException,
448 com.liferay.portal.kernel.exception.SystemException;
449
450 public com.liferay.portlet.wiki.model.WikiNode updateStatus(long userId,
451 com.liferay.portlet.wiki.model.WikiNode node, int status,
452 com.liferay.portal.service.ServiceContext serviceContext)
453 throws com.liferay.portal.kernel.exception.PortalException,
454 com.liferay.portal.kernel.exception.SystemException;
455 }