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 addGroupPermissions,
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 addGroupPermissions, 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[] groupPermissions, java.lang.String[] guestPermissions)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
272 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException;
275
276 public void deleteNode(long nodeId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException;
279
280 public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException;
283
284 public void deleteNodes(long groupId)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
290 long companyId, int start, int end)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public int getCompanyNodesCount(long companyId)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
304 java.lang.String nodeName)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
310 long groupId)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
316 long groupId, int start, int end)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public int getNodesCount(long groupId)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324 public void importPages(long userId, long nodeId,
325 java.lang.String importer, java.io.InputStream[] inputStreams,
326 java.util.Map<java.lang.String, java.lang.String[]> options)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException;
329
330 public void subscribeNode(long userId, long nodeId)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException;
333
334 public void unsubscribeNode(long userId, long nodeId)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337
338 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
339 java.lang.String name, java.lang.String description,
340 com.liferay.portal.service.ServiceContext serviceContext)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException;
343 }