1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.wiki.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
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.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.PortalException,
58              com.liferay.portal.SystemException;
59  
60      public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
61          throws com.liferay.portal.SystemException;
62  
63      @SuppressWarnings("rawtypes")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      @SuppressWarnings("rawtypes")
69      public java.util.List dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException;
72  
73      @SuppressWarnings("rawtypes")
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.SystemException;
79  
80      public int dynamicQueryCount(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82          throws com.liferay.portal.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.PortalException,
87              com.liferay.portal.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.PortalException,
93              com.liferay.portal.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) throws com.liferay.portal.SystemException;
98  
99      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100     public int getWikiNodesCount() throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
103         com.liferay.portlet.wiki.model.WikiNode wikiNode)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
107         com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
108         throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
111         java.lang.String name, java.lang.String description,
112         com.liferay.portal.service.ServiceContext serviceContext)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.wiki.model.WikiNode addNode(
117         java.lang.String uuid, long userId, java.lang.String name,
118         java.lang.String description,
119         com.liferay.portal.service.ServiceContext serviceContext)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 
123     public void addNodeResources(long nodeId, boolean addCommunityPermissions,
124         boolean addGuestPermissions)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
129         boolean addCommunityPermissions, boolean addGuestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public void addNodeResources(long nodeId,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
140         java.lang.String[] communityPermissions,
141         java.lang.String[] guestPermissions)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException;
144 
145     public void deleteNode(long nodeId)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public void deleteNodes(long groupId)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
164         java.lang.String nodeName)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
170         long groupId) throws com.liferay.portal.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
174         long groupId, int start, int end)
175         throws com.liferay.portal.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public int getNodesCount(long groupId)
179         throws com.liferay.portal.SystemException;
180 
181     public void importPages(long userId, long nodeId,
182         java.lang.String importer, java.io.File[] files,
183         java.util.Map<java.lang.String, java.lang.String[]> options)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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 userId, long[] nodeIds, java.lang.String keywords,
194         int start, 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     /**
205     * @deprecated
206     */
207     public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
208         java.lang.String name, java.lang.String description)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException;
211 
212     public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
213         java.lang.String name, java.lang.String description,
214         com.liferay.portal.service.ServiceContext serviceContext)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException;
217 }