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  
26  /**
27   * <a href="WikiNodeLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil
48   *
49   */
50  public interface WikiNodeLocalService {
51      public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
52          com.liferay.portlet.wiki.model.WikiNode wikiNode)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
56  
57      public void deleteWikiNode(long nodeId)
58          throws com.liferay.portal.SystemException,
59              com.liferay.portal.PortalException;
60  
61      public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
73          throws com.liferay.portal.SystemException,
74              com.liferay.portal.PortalException;
75  
76      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
77          int start, int end) throws com.liferay.portal.SystemException;
78  
79      public int getWikiNodesCount() throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
82          com.liferay.portlet.wiki.model.WikiNode wikiNode)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
86          long plid, java.lang.String name, java.lang.String description,
87          boolean addCommunityPermissions, boolean addGuestPermissions)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.wiki.model.WikiNode addNode(
92          java.lang.String uuid, long userId, long plid, java.lang.String name,
93          java.lang.String description, boolean addCommunityPermissions,
94          boolean addGuestPermissions)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
99          long plid, java.lang.String name, java.lang.String description,
100         java.lang.String[] communityPermissions,
101         java.lang.String[] guestPermissions)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.wiki.model.WikiNode addNode(
106         java.lang.String uuid, long userId, long plid, java.lang.String name,
107         java.lang.String description,
108         java.lang.Boolean addCommunityPermissions,
109         java.lang.Boolean addGuestPermissions,
110         java.lang.String[] communityPermissions,
111         java.lang.String[] guestPermissions)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException;
114 
115     public void addNodeResources(long nodeId, boolean addCommunityPermissions,
116         boolean addGuestPermissions)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
121         boolean addCommunityPermissions, boolean addGuestPermissions)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException;
124 
125     public void addNodeResources(long nodeId,
126         java.lang.String[] communityPermissions,
127         java.lang.String[] guestPermissions)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException;
130 
131     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
132         java.lang.String[] communityPermissions,
133         java.lang.String[] guestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException;
136 
137     public void deleteNode(long nodeId)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException;
144 
145     public void deleteNodes(long groupId)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
154         java.lang.String nodeName)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
159         long groupId) throws com.liferay.portal.SystemException;
160 
161     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
162         long groupId, int start, int end)
163         throws com.liferay.portal.SystemException;
164 
165     public int getNodesCount(long groupId)
166         throws com.liferay.portal.SystemException;
167 
168     public void importPages(long userId, long nodeId,
169         java.lang.String importer, java.io.File[] files,
170         java.util.Map<String, String[]> options)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     public void reIndex(java.lang.String[] ids)
175         throws com.liferay.portal.SystemException;
176 
177     public com.liferay.portal.kernel.search.Hits search(long companyId,
178         long groupId, long[] nodeIds, java.lang.String keywords, int start,
179         int end) throws com.liferay.portal.SystemException;
180 
181     public void subscribeNode(long userId, long nodeId)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException;
184 
185     public void unsubscribeNode(long userId, long nodeId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException;
188 
189     public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
190         java.lang.String name, java.lang.String description)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 }