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      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
85          long categoryId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
91          int start, int end) throws com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public int getMBCategoriesCount() throws com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
97          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
98          throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
101         com.liferay.portlet.messageboards.model.MBCategory mbCategory,
102         boolean merge) throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
105         long userId, long parentCategoryId, java.lang.String name,
106         java.lang.String description, java.lang.String emailAddress,
107         java.lang.String inProtocol, java.lang.String inServerName,
108         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
109         java.lang.String inPassword, int inReadInterval,
110         java.lang.String outEmailAddress, boolean outCustom,
111         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
112         java.lang.String outUserName, java.lang.String outPassword,
113         boolean mailingListActive,
114         com.liferay.portal.service.ServiceContext serviceContext)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException;
117 
118     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
119         java.lang.String uuid, long userId, long parentCategoryId,
120         java.lang.String name, java.lang.String description,
121         java.lang.String emailAddress, java.lang.String inProtocol,
122         java.lang.String inServerName, int inServerPort, boolean inUseSSL,
123         java.lang.String inUserName, java.lang.String inPassword,
124         int inReadInterval, java.lang.String outEmailAddress,
125         boolean outCustom, java.lang.String outServerName, int outServerPort,
126         boolean outUseSSL, java.lang.String outUserName,
127         java.lang.String outPassword, boolean mailingListActive,
128         com.liferay.portal.service.ServiceContext serviceContext)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public void addCategoryResources(long categoryId,
133         boolean addCommunityPermissions, boolean addGuestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException;
136 
137     public void addCategoryResources(long categoryId,
138         java.lang.String[] communityPermissions,
139         java.lang.String[] guestPermissions)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public void addCategoryResources(
144         com.liferay.portlet.messageboards.model.MBCategory category,
145         boolean addCommunityPermissions, boolean addGuestPermissions)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void addCategoryResources(
150         com.liferay.portlet.messageboards.model.MBCategory category,
151         java.lang.String[] communityPermissions,
152         java.lang.String[] guestPermissions)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     public void deleteCategories(long groupId)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public void deleteCategory(long categoryId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public void deleteCategory(
165         com.liferay.portlet.messageboards.model.MBCategory category)
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.messageboards.model.MBCategory> getCategories(
171         long groupId) throws com.liferay.portal.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
175         long groupId, long parentCategoryId)
176         throws com.liferay.portal.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
180         long groupId, long parentCategoryId, int start, int end)
181         throws com.liferay.portal.SystemException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public int getCategoriesCount(long groupId)
185         throws com.liferay.portal.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public int getCategoriesCount(long groupId, long parentCategoryId)
189         throws com.liferay.portal.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public com.liferay.portlet.messageboards.model.MBCategory getCategory(
193         long categoryId)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public void getSubcategoryIds(java.util.List<Long> categoryIds,
199         long groupId, long categoryId)
200         throws com.liferay.portal.SystemException;
201 
202     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
204         long groupId, long userId, int start, int end)
205         throws com.liferay.portal.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public int getSubscribedCategoriesCount(long groupId, long userId)
209         throws com.liferay.portal.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
213         throws com.liferay.portal.SystemException;
214 
215     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216     public void reIndex(java.lang.String[] ids)
217         throws com.liferay.portal.SystemException;
218 
219     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220     public com.liferay.portal.kernel.search.Hits search(long companyId,
221         long groupId, long userId, long[] categoryIds, long threadId,
222         java.lang.String keywords, int start, int end)
223         throws com.liferay.portal.SystemException;
224 
225     public void subscribeCategory(long userId, long categoryId)
226         throws com.liferay.portal.PortalException,
227             com.liferay.portal.SystemException;
228 
229     public void unsubscribeCategory(long userId, long categoryId)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException;
232 
233     public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
234         long categoryId, long parentCategoryId, java.lang.String name,
235         java.lang.String description, java.lang.String emailAddress,
236         java.lang.String inProtocol, java.lang.String inServerName,
237         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
238         java.lang.String inPassword, int inReadInterval,
239         java.lang.String outEmailAddress, boolean outCustom,
240         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
241         java.lang.String outUserName, java.lang.String outPassword,
242         boolean mailingListActive, boolean mergeWithParentCategory)
243         throws com.liferay.portal.PortalException,
244             com.liferay.portal.SystemException;
245 }