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
238 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
239 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
240 throws com.liferay.portal.kernel.exception.SystemException;
241
242
247 public java.lang.String getBeanIdentifier();
248
249
254 public void setBeanIdentifier(java.lang.String beanIdentifier);
255
256 public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
257 com.liferay.portal.service.ServiceContext serviceContext)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
262 java.lang.String name, java.lang.String description,
263 com.liferay.portal.service.ServiceContext serviceContext)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 public void addNodeResources(long nodeId, boolean addGroupPermissions,
268 boolean addGuestPermissions)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public void addNodeResources(long nodeId,
273 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException;
276
277 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
278 boolean addGroupPermissions, boolean addGuestPermissions)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException;
281
282 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
283 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException;
286
287 public void deleteNode(long nodeId)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290
291 public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException;
294
295 public void deleteNodes(long groupId)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
301 long companyId, int start, int end)
302 throws com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public int getCompanyNodesCount(long companyId)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
315 java.lang.String nodeName)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
321 long groupId)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
327 long groupId, int start, int end)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException;
330
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public int getNodesCount(long groupId)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335 public void importPages(long userId, long nodeId,
336 java.lang.String importer, java.io.InputStream[] inputStreams,
337 java.util.Map<java.lang.String, java.lang.String[]> options)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException;
340
341 public void subscribeNode(long userId, long nodeId)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException;
344
345 public void unsubscribeNode(long userId, long nodeId)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
350 java.lang.String name, java.lang.String description,
351 com.liferay.portal.service.ServiceContext serviceContext)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException;
354 }