1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.wiki.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="WikiNodeLocalService.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface defines the service. The default implementation is
40   * <code>com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl</code>.
41   * Modify methods in that class and rerun ServiceBuilder to populate this class
42   * and all other generated classes.
43   * </p>
44   *
45   * <p>
46   * 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.
47   * </p>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   * @see com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil
52   *
53   */
54  @Transactional(rollbackFor =  {
55      PortalException.class, SystemException.class})
56  public interface WikiNodeLocalService {
57      public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
58          com.liferay.portlet.wiki.model.WikiNode wikiNode)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
62  
63      public void deleteWikiNode(long nodeId)
64          throws com.liferay.portal.SystemException,
65              com.liferay.portal.PortalException;
66  
67      public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<Object> dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end) throws com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portal.PortalException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
85          int start, int end) throws com.liferay.portal.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public int getWikiNodesCount() throws com.liferay.portal.SystemException;
89  
90      public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
91          com.liferay.portlet.wiki.model.WikiNode wikiNode)
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
95          long plid, java.lang.String name, java.lang.String description,
96          boolean addCommunityPermissions, boolean addGuestPermissions)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.wiki.model.WikiNode addNode(
101         java.lang.String uuid, long userId, long plid, java.lang.String name,
102         java.lang.String description, boolean addCommunityPermissions,
103         boolean addGuestPermissions)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException;
106 
107     public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
108         long plid, java.lang.String name, java.lang.String description,
109         java.lang.String[] communityPermissions,
110         java.lang.String[] guestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.wiki.model.WikiNode addNode(
115         java.lang.String uuid, long userId, long plid, java.lang.String name,
116         java.lang.String description,
117         java.lang.Boolean addCommunityPermissions,
118         java.lang.Boolean addGuestPermissions,
119         java.lang.String[] communityPermissions,
120         java.lang.String[] guestPermissions)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     public void addNodeResources(long nodeId, boolean addCommunityPermissions,
125         boolean addGuestPermissions)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException;
128 
129     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
130         boolean addCommunityPermissions, boolean addGuestPermissions)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public void addNodeResources(long nodeId,
135         java.lang.String[] communityPermissions,
136         java.lang.String[] guestPermissions)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public void deleteNode(long nodeId)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException;
153 
154     public void deleteNodes(long groupId)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159     public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
165         java.lang.String nodeName)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException;
168 
169     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
171         long groupId) throws com.liferay.portal.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
175         long groupId, int start, int end)
176         throws com.liferay.portal.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public int getNodesCount(long groupId)
180         throws com.liferay.portal.SystemException;
181 
182     public void importPages(long userId, long nodeId,
183         java.lang.String importer, java.io.File[] files,
184         java.util.Map<String, String[]> options)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public void reIndex(java.lang.String[] ids)
189         throws com.liferay.portal.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public com.liferay.portal.kernel.search.Hits search(long companyId,
193         long groupId, long[] nodeIds, java.lang.String keywords, int start,
194         int end) throws com.liferay.portal.SystemException;
195 
196     public void subscribeNode(long userId, long nodeId)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException;
199 
200     public void unsubscribeNode(long userId, long nodeId)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException;
203 
204     public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
205         java.lang.String name, java.lang.String description)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException;
208 }