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