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.messageboards.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="MBCategoryLocalService.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.messageboards.service.impl.MBCategoryLocalServiceImpl}}.
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       MBCategoryLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface MBCategoryLocalService {
50      public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
51          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
55          long categoryId);
56  
57      public void deleteMBCategory(long categoryId)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public void deleteMBCategory(
62          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException;
72  
73      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
75          long categoryId)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException;
78  
79      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
81          int start, int end) throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public int getMBCategoriesCount() throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
87          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
88          throws com.liferay.portal.SystemException;
89  
90      public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
91          com.liferay.portlet.messageboards.model.MBCategory mbCategory,
92          boolean merge) throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.messageboards.model.MBCategory addCategory(
95          long userId, long plid, long parentCategoryId, java.lang.String name,
96          java.lang.String description, boolean addCommunityPermissions,
97          boolean addGuestPermissions)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
102         long userId, long plid, long parentCategoryId, java.lang.String name,
103         java.lang.String description, java.lang.String[] communityPermissions,
104         java.lang.String[] guestPermissions)
105         throws com.liferay.portal.PortalException,
106             com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
109         java.lang.String uuid, long userId, long plid, long parentCategoryId,
110         java.lang.String name, java.lang.String description,
111         boolean addCommunityPermissions, boolean addGuestPermissions)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
116         java.lang.String uuid, long userId, long plid, long parentCategoryId,
117         java.lang.String name, java.lang.String description,
118         java.lang.Boolean addCommunityPermissions,
119         java.lang.Boolean addGuestPermissions,
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 addCategoryResources(long categoryId,
126         boolean addCommunityPermissions, boolean addGuestPermissions)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException;
129 
130     public void addCategoryResources(long categoryId,
131         java.lang.String[] communityPermissions,
132         java.lang.String[] guestPermissions)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException;
135 
136     public void addCategoryResources(
137         com.liferay.portlet.messageboards.model.MBCategory category,
138         boolean addCommunityPermissions, boolean addGuestPermissions)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public void addCategoryResources(
143         com.liferay.portlet.messageboards.model.MBCategory category,
144         java.lang.String[] communityPermissions,
145         java.lang.String[] guestPermissions)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void deleteCategories(long groupId)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public void deleteCategory(long categoryId)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void deleteCategory(
158         com.liferay.portlet.messageboards.model.MBCategory category)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
164         long groupId) throws com.liferay.portal.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
168         long groupId, long parentCategoryId)
169         throws com.liferay.portal.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
173         long groupId, long parentCategoryId, int start, int end)
174         throws com.liferay.portal.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public int getCategoriesCount(long groupId)
178         throws com.liferay.portal.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public int getCategoriesCount(long groupId, long parentCategoryId)
182         throws com.liferay.portal.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public com.liferay.portlet.messageboards.model.MBCategory getCategory(
186         long categoryId)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public void getSubcategoryIds(java.util.List<Long> categoryIds,
192         long groupId, long categoryId)
193         throws com.liferay.portal.SystemException;
194 
195     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
197         long groupId, long userId, int start, int end)
198         throws com.liferay.portal.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public int getSubscribedCategoriesCount(long groupId, long userId)
202         throws com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public void reIndex(java.lang.String[] ids)
210         throws com.liferay.portal.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public com.liferay.portal.kernel.search.Hits search(long companyId,
214         long groupId, long[] categoryIds, long threadId,
215         java.lang.String keywords, int start, int end)
216         throws com.liferay.portal.SystemException;
217 
218     public void subscribeCategory(long userId, long categoryId)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException;
221 
222     public void unsubscribeCategory(long userId, long categoryId)
223         throws com.liferay.portal.PortalException,
224             com.liferay.portal.SystemException;
225 
226     public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
227         long categoryId, long parentCategoryId, java.lang.String name,
228         java.lang.String description, boolean mergeWithParentCategory)
229         throws com.liferay.portal.PortalException,
230             com.liferay.portal.SystemException;
231 }