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
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public com.liferay.portal.model.PersistedModel getPersistedModel(
162 java.io.Serializable primaryKeyObj)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
177 java.lang.String uuid, long groupId)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
195 int start, int end)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public int getWikiNodesCount()
206 throws com.liferay.portal.kernel.exception.SystemException;
207
208
215 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
216 com.liferay.portlet.wiki.model.WikiNode wikiNode)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219
227 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
228 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
229 throws com.liferay.portal.kernel.exception.SystemException;
230
231
236 public java.lang.String getBeanIdentifier();
237
238
243 public void setBeanIdentifier(java.lang.String beanIdentifier);
244
245 public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
246 com.liferay.portal.service.ServiceContext serviceContext)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250 public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
251 java.lang.String name, java.lang.String description,
252 com.liferay.portal.service.ServiceContext serviceContext)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public void addNodeResources(long nodeId, boolean addCommunityPermissions,
257 boolean addGuestPermissions)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
262 boolean addCommunityPermissions, boolean addGuestPermissions)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException;
265
266 public void addNodeResources(long nodeId,
267 java.lang.String[] communityPermissions,
268 java.lang.String[] guestPermissions)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
273 java.lang.String[] communityPermissions,
274 java.lang.String[] guestPermissions)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 public void deleteNode(long nodeId)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException;
281
282 public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 public void deleteNodes(long groupId)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException;
289
290 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
292 long companyId, int start, int end)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public int getCompanyNodesCount(long companyId)
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
306 java.lang.String nodeName)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
312 long groupId)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
318 long groupId, int start, int end)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException;
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public int getNodesCount(long groupId)
324 throws com.liferay.portal.kernel.exception.SystemException;
325
326 public void importPages(long userId, long nodeId,
327 java.lang.String importer, java.io.File[] files,
328 java.util.Map<java.lang.String, java.lang.String[]> options)
329 throws com.liferay.portal.kernel.exception.PortalException,
330 com.liferay.portal.kernel.exception.SystemException;
331
332 public void subscribeNode(long userId, long nodeId)
333 throws com.liferay.portal.kernel.exception.PortalException,
334 com.liferay.portal.kernel.exception.SystemException;
335
336 public void unsubscribeNode(long userId, long nodeId)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339
340 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
341 java.lang.String name, java.lang.String description,
342 com.liferay.portal.service.ServiceContext serviceContext)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException;
345 }