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.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface WikiNodeLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
054 com.liferay.portlet.wiki.model.WikiNode wikiNode)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
064
065
072 public void deleteWikiNode(long nodeId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076
082 public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
083 throws com.liferay.portal.kernel.exception.SystemException;
084
085
092 @SuppressWarnings("rawtypes")
093 public java.util.List dynamicQuery(
094 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097
110 @SuppressWarnings("rawtypes")
111 public java.util.List dynamicQuery(
112 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113 int end) throws com.liferay.portal.kernel.exception.SystemException;
114
115
129 @SuppressWarnings("rawtypes")
130 public java.util.List dynamicQuery(
131 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132 int end,
133 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134 throws com.liferay.portal.kernel.exception.SystemException;
135
136
143 public long dynamicQueryCount(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public com.liferay.portlet.wiki.model.WikiNode fetchWikiNode(long nodeId)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portal.model.PersistedModel getPersistedModel(
166 java.io.Serializable primaryKeyObj)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException;
169
170
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
181 java.lang.String uuid, long groupId)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException;
184
185
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
199 int start, int end)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int getWikiNodesCount()
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212
219 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
220 com.liferay.portlet.wiki.model.WikiNode wikiNode)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
231 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
232 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235
240 public java.lang.String getBeanIdentifier();
241
242
247 public void setBeanIdentifier(java.lang.String beanIdentifier);
248
249 public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
250 com.liferay.portal.service.ServiceContext serviceContext)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException;
253
254 public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
255 java.lang.String name, java.lang.String description,
256 com.liferay.portal.service.ServiceContext serviceContext)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 public void addNodeResources(long nodeId, boolean addGroupPermissions,
261 boolean addGuestPermissions)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void addNodeResources(long nodeId,
266 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
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 boolean addGroupPermissions, boolean addGuestPermissions)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
276 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException;
279
280 public void deleteNode(long nodeId)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException;
283
284 public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException;
287
288 public void deleteNodes(long groupId)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 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 int getCompanyNodesCount(long companyId)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
308 java.lang.String nodeName)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
314 long groupId)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
320 long groupId, int start, int end)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException;
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public int getNodesCount(long groupId)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328 public void importPages(long userId, long nodeId,
329 java.lang.String importer, java.io.InputStream[] inputStreams,
330 java.util.Map<java.lang.String, java.lang.String[]> options)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException;
333
334 public void subscribeNode(long userId, long nodeId)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337
338 public void unsubscribeNode(long userId, long nodeId)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException;
341
342 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
343 java.lang.String name, java.lang.String description,
344 com.liferay.portal.service.ServiceContext serviceContext)
345 throws com.liferay.portal.kernel.exception.PortalException,
346 com.liferay.portal.kernel.exception.SystemException;
347 }