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.WikiNodeLocalServiceFactory
48   * @see com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil
49   *
50   */
51  public interface WikiNodeLocalService {
52      public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
53          com.liferay.portlet.wiki.model.WikiNode wikiNode)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteWikiNode(long nodeId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException;
70  
71      public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
72          throws com.liferay.portal.SystemException,
73              com.liferay.portal.PortalException;
74  
75      public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
76          com.liferay.portlet.wiki.model.WikiNode wikiNode)
77          throws com.liferay.portal.SystemException;
78  
79      public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
80          long plid, java.lang.String name, java.lang.String description,
81          boolean addCommunityPermissions, boolean addGuestPermissions)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.wiki.model.WikiNode addNode(
86          java.lang.String uuid, long userId, long plid, java.lang.String name,
87          java.lang.String description, boolean addCommunityPermissions,
88          boolean addGuestPermissions)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
93          long plid, java.lang.String name, java.lang.String description,
94          java.lang.String[] communityPermissions,
95          java.lang.String[] guestPermissions)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.wiki.model.WikiNode addNode(
100         java.lang.String uuid, long userId, long plid, java.lang.String name,
101         java.lang.String description,
102         java.lang.Boolean addCommunityPermissions,
103         java.lang.Boolean addGuestPermissions,
104         java.lang.String[] communityPermissions,
105         java.lang.String[] guestPermissions)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException;
108 
109     public void addNodeResources(long nodeId, boolean addCommunityPermissions,
110         boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
115         boolean addCommunityPermissions, boolean addGuestPermissions)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException;
118 
119     public void addNodeResources(long nodeId,
120         java.lang.String[] communityPermissions,
121         java.lang.String[] guestPermissions)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException;
124 
125     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
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 deleteNode(long nodeId)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException;
134 
135     public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void deleteNodes(long groupId)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
148         java.lang.String nodeName)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
153         long groupId) throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
156         long groupId, int start, int end)
157         throws com.liferay.portal.SystemException;
158 
159     public int getNodesCount(long groupId)
160         throws com.liferay.portal.SystemException;
161 
162     public void importPages(long userId, long nodeId,
163         java.lang.String importer, java.io.File[] files,
164         java.util.Map<String, String[]> options)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException;
167 
168     public void reIndex(java.lang.String[] ids)
169         throws com.liferay.portal.SystemException;
170 
171     public com.liferay.portal.kernel.search.Hits search(long companyId,
172         long groupId, long[] nodeIds, java.lang.String keywords, int start,
173         int end) throws com.liferay.portal.SystemException;
174 
175     public void subscribeNode(long userId, long nodeId)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException;
178 
179     public void unsubscribeNode(long userId, long nodeId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
184         java.lang.String name, java.lang.String description)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 }