1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.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.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteMBCategory(
62          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      @SuppressWarnings("unchecked")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      @SuppressWarnings("unchecked")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException;
74  
75      @SuppressWarnings("unchecked")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public long dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.kernel.exception.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
88          long categoryId)
89          throws com.liferay.portal.kernel.exception.PortalException,
90              com.liferay.portal.kernel.exception.SystemException;
91  
92      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93      public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
94          java.lang.String uuid, long groupId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException;
97  
98      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
100         int start, int end)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104     public int getMBCategoriesCount()
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
108         com.liferay.portlet.messageboards.model.MBCategory mbCategory)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
112         com.liferay.portlet.messageboards.model.MBCategory mbCategory,
113         boolean merge)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
117         long userId, long parentCategoryId, java.lang.String name,
118         java.lang.String description, java.lang.String emailAddress,
119         java.lang.String inProtocol, java.lang.String inServerName,
120         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
121         java.lang.String inPassword, int inReadInterval,
122         java.lang.String outEmailAddress, boolean outCustom,
123         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
124         java.lang.String outUserName, java.lang.String outPassword,
125         boolean mailingListActive,
126         com.liferay.portal.service.ServiceContext serviceContext)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
131         java.lang.String uuid, long userId, long parentCategoryId,
132         java.lang.String name, java.lang.String description,
133         java.lang.String emailAddress, java.lang.String inProtocol,
134         java.lang.String inServerName, int inServerPort, boolean inUseSSL,
135         java.lang.String inUserName, java.lang.String inPassword,
136         int inReadInterval, java.lang.String outEmailAddress,
137         boolean outCustom, java.lang.String outServerName, int outServerPort,
138         boolean outUseSSL, java.lang.String outUserName,
139         java.lang.String outPassword, boolean mailingListActive,
140         com.liferay.portal.service.ServiceContext serviceContext)
141         throws com.liferay.portal.kernel.exception.PortalException,
142             com.liferay.portal.kernel.exception.SystemException;
143 
144     public void addCategoryResources(long categoryId,
145         boolean addCommunityPermissions, boolean addGuestPermissions)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException;
148 
149     public void addCategoryResources(long categoryId,
150         java.lang.String[] communityPermissions,
151         java.lang.String[] guestPermissions)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException;
154 
155     public void addCategoryResources(
156         com.liferay.portlet.messageboards.model.MBCategory category,
157         boolean addCommunityPermissions, boolean addGuestPermissions)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException;
160 
161     public void addCategoryResources(
162         com.liferay.portlet.messageboards.model.MBCategory category,
163         java.lang.String[] communityPermissions,
164         java.lang.String[] guestPermissions)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException;
167 
168     public void deleteCategories(long groupId)
169         throws com.liferay.portal.kernel.exception.PortalException,
170             com.liferay.portal.kernel.exception.SystemException;
171 
172     public void deleteCategory(long categoryId)
173         throws com.liferay.portal.kernel.exception.PortalException,
174             com.liferay.portal.kernel.exception.SystemException;
175 
176     public void deleteCategory(
177         com.liferay.portlet.messageboards.model.MBCategory category)
178         throws com.liferay.portal.kernel.exception.PortalException,
179             com.liferay.portal.kernel.exception.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
183         long groupId)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
188         long groupId, long parentCategoryId)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
193         long groupId, long parentCategoryId, int start, int end)
194         throws com.liferay.portal.kernel.exception.SystemException;
195 
196     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197     public int getCategoriesCount(long groupId)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public int getCategoriesCount(long groupId, long parentCategoryId)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public com.liferay.portlet.messageboards.model.MBCategory getCategory(
206         long categoryId)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException;
209 
210     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
212         long companyId, int start, int end)
213         throws com.liferay.portal.kernel.exception.SystemException;
214 
215     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216     public int getCompanyCategoriesCount(long companyId)
217         throws com.liferay.portal.kernel.exception.SystemException;
218 
219     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220     public java.util.List<java.lang.Long> getSubcategoryIds(
221         java.util.List<java.lang.Long> categoryIds, long groupId,
222         long categoryId)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
227         long groupId, long userId, int start, int end)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231     public int getSubscribedCategoriesCount(long groupId, long userId)
232         throws com.liferay.portal.kernel.exception.SystemException;
233 
234     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235     public com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
236         throws com.liferay.portal.kernel.exception.SystemException;
237 
238     public void subscribeCategory(long userId, long groupId, long categoryId)
239         throws com.liferay.portal.kernel.exception.PortalException,
240             com.liferay.portal.kernel.exception.SystemException;
241 
242     public void unsubscribeCategory(long userId, long groupId, long categoryId)
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException;
245 
246     public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
247         long categoryId, long parentCategoryId, java.lang.String name,
248         java.lang.String description, java.lang.String emailAddress,
249         java.lang.String inProtocol, java.lang.String inServerName,
250         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
251         java.lang.String inPassword, int inReadInterval,
252         java.lang.String outEmailAddress, boolean outCustom,
253         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
254         java.lang.String outUserName, java.lang.String outPassword,
255         boolean mailingListActive, boolean mergeWithParentCategory,
256         com.liferay.portal.service.ServiceContext serviceContext)
257         throws com.liferay.portal.kernel.exception.PortalException,
258             com.liferay.portal.kernel.exception.SystemException;
259 }