001
014
015 package com.liferay.portlet.wiki.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface WikiNodeLocalService {
043
050 public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
051 com.liferay.portlet.wiki.model.WikiNode wikiNode)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
061
062
069 public void deleteWikiNode(long nodeId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073
079 public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
080 throws com.liferay.portal.kernel.exception.SystemException;
081
082
089 @SuppressWarnings("rawtypes")
090 public java.util.List dynamicQuery(
091 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094
107 @SuppressWarnings("rawtypes")
108 public java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110 int end) throws com.liferay.portal.kernel.exception.SystemException;
111
112
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133
140 public long dynamicQueryCount(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
168 java.lang.String uuid, long groupId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
186 int start, int end)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public int getWikiNodesCount()
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199
206 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
207 com.liferay.portlet.wiki.model.WikiNode wikiNode)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210
218 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
219 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222 public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
223 com.liferay.portal.service.ServiceContext serviceContext)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException;
226
227 public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
228 java.lang.String name, java.lang.String description,
229 com.liferay.portal.service.ServiceContext serviceContext)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException;
232
233 public void addNodeResources(long nodeId, boolean addCommunityPermissions,
234 boolean addGuestPermissions)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
239 boolean addCommunityPermissions, boolean addGuestPermissions)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException;
242
243 public void addNodeResources(long nodeId,
244 java.lang.String[] communityPermissions,
245 java.lang.String[] guestPermissions)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException;
248
249 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
250 java.lang.String[] communityPermissions,
251 java.lang.String[] guestPermissions)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 public void deleteNode(long nodeId)
256 throws com.liferay.portal.kernel.exception.PortalException,
257 com.liferay.portal.kernel.exception.SystemException;
258
259 public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 public void deleteNodes(long groupId)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
269 long companyId, int start, int end)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public int getCompanyNodesCount(long companyId)
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
283 java.lang.String nodeName)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
289 long groupId)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
295 long groupId, int start, int end)
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 int getNodesCount(long groupId)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 public void importPages(long userId, long nodeId,
304 java.lang.String importer, java.io.File[] files,
305 java.util.Map<java.lang.String, java.lang.String[]> options)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308
309 public void subscribeNode(long userId, long nodeId)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException;
312
313 public void unsubscribeNode(long userId, long nodeId)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException;
316
317 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
318 java.lang.String name, java.lang.String description,
319 com.liferay.portal.service.ServiceContext serviceContext)
320 throws com.liferay.portal.kernel.exception.PortalException,
321 com.liferay.portal.kernel.exception.SystemException;
322 }