1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.wiki.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="WikiNodeLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       WikiNodeLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface WikiNodeLocalService {
50      public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
51          com.liferay.portlet.wiki.model.WikiNode wikiNode)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
55  
56      public void deleteWikiNode(long nodeId)
57          throws com.liferay.portal.kernel.exception.PortalException,
58              com.liferay.portal.kernel.exception.SystemException;
59  
60      public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      @SuppressWarnings("unchecked")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      @SuppressWarnings("unchecked")
69      public java.util.List dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      @SuppressWarnings("unchecked")
74      public java.util.List dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.kernel.exception.SystemException;
79  
80      public long dynamicQueryCount(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82          throws com.liferay.portal.kernel.exception.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
86          throws com.liferay.portal.kernel.exception.PortalException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
91          java.lang.String uuid, long groupId)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException;
94  
95      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
97          int start, int end)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101     public int getWikiNodesCount()
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
105         com.liferay.portlet.wiki.model.WikiNode wikiNode)
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
109         com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
113         java.lang.String name, java.lang.String description,
114         com.liferay.portal.service.ServiceContext serviceContext)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException;
117 
118     public com.liferay.portlet.wiki.model.WikiNode addNode(
119         java.lang.String uuid, long userId, java.lang.String name,
120         java.lang.String description,
121         com.liferay.portal.service.ServiceContext serviceContext)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException;
124 
125     public void addNodeResources(long nodeId, boolean addCommunityPermissions,
126         boolean addGuestPermissions)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
131         boolean addCommunityPermissions, boolean addGuestPermissions)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException;
134 
135     public void addNodeResources(long nodeId,
136         java.lang.String[] communityPermissions,
137         java.lang.String[] guestPermissions)
138         throws com.liferay.portal.kernel.exception.PortalException,
139             com.liferay.portal.kernel.exception.SystemException;
140 
141     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
142         java.lang.String[] communityPermissions,
143         java.lang.String[] guestPermissions)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException;
146 
147     public void deleteNode(long nodeId)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException;
150 
151     public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException;
154 
155     public void deleteNodes(long groupId)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException;
158 
159     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
161         long companyId, int start, int end)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165     public int getCompanyNodesCount(long companyId)
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
175         java.lang.String nodeName)
176         throws com.liferay.portal.kernel.exception.PortalException,
177             com.liferay.portal.kernel.exception.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
181         long groupId)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
186         long groupId, int start, int end)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public int getNodesCount(long groupId)
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     public void importPages(long userId, long nodeId,
194         java.lang.String importer, java.io.File[] files,
195         java.util.Map<java.lang.String, java.lang.String[]> options)
196         throws com.liferay.portal.kernel.exception.PortalException,
197             com.liferay.portal.kernel.exception.SystemException;
198 
199     public void subscribeNode(long userId, long nodeId)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException;
202 
203     public void unsubscribeNode(long userId, long nodeId)
204         throws com.liferay.portal.kernel.exception.PortalException,
205             com.liferay.portal.kernel.exception.SystemException;
206 
207     public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
208         java.lang.String name, java.lang.String description,
209         com.liferay.portal.service.ServiceContext serviceContext)
210         throws com.liferay.portal.kernel.exception.PortalException,
211             com.liferay.portal.kernel.exception.SystemException;
212 }