001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portlet.messageboards.service.impl.MBCategoryLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * 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.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       MBCategoryLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface MBCategoryLocalService {
043            public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
044                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
048                    long categoryId);
049    
050            public void deleteMBCategory(long categoryId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteMBCategory(
055                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            @SuppressWarnings("unchecked")
059            public java.util.List dynamicQuery(
060                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException;
067    
068            @SuppressWarnings("unchecked")
069            public java.util.List dynamicQuery(
070                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071                    int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public long dynamicQueryCount(
076                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
081                    long categoryId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
087                    java.lang.String uuid, long groupId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
093                    int start, int end)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public int getMBCategoriesCount()
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
101                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
105                    com.liferay.portlet.messageboards.model.MBCategory mbCategory,
106                    boolean merge)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
110                    long userId, long parentCategoryId, java.lang.String name,
111                    java.lang.String description, java.lang.String emailAddress,
112                    java.lang.String inProtocol, java.lang.String inServerName,
113                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
114                    java.lang.String inPassword, int inReadInterval,
115                    java.lang.String outEmailAddress, boolean outCustom,
116                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
117                    java.lang.String outUserName, java.lang.String outPassword,
118                    boolean mailingListActive,
119                    com.liferay.portal.service.ServiceContext serviceContext)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException;
122    
123            public void addCategoryResources(long categoryId,
124                    boolean addCommunityPermissions, boolean addGuestPermissions)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            public void addCategoryResources(long categoryId,
129                    java.lang.String[] communityPermissions,
130                    java.lang.String[] guestPermissions)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException;
133    
134            public void addCategoryResources(
135                    com.liferay.portlet.messageboards.model.MBCategory category,
136                    boolean addCommunityPermissions, boolean addGuestPermissions)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            public void addCategoryResources(
141                    com.liferay.portlet.messageboards.model.MBCategory category,
142                    java.lang.String[] communityPermissions,
143                    java.lang.String[] guestPermissions)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            public void deleteCategories(long groupId)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException;
150    
151            public void deleteCategory(long categoryId)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException;
154    
155            public void deleteCategory(
156                    com.liferay.portlet.messageboards.model.MBCategory category)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
162                    long groupId)
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
167                    long groupId, long parentCategoryId, int start, int end)
168                    throws com.liferay.portal.kernel.exception.SystemException;
169    
170            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
172                    long groupId, long[] parentCategoryIds, int start, int end)
173                    throws com.liferay.portal.kernel.exception.SystemException;
174    
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public int getCategoriesCount(long groupId)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180            public int getCategoriesCount(long groupId, long parentCategoryId)
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184            public int getCategoriesCount(long groupId, long[] parentCategoryIds)
185                    throws com.liferay.portal.kernel.exception.SystemException;
186    
187            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
189                    long categoryId)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException;
192    
193            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
195                    long companyId, int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException;
197    
198            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199            public int getCompanyCategoriesCount(long companyId)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203            public java.util.List<java.lang.Long> getSubcategoryIds(
204                    java.util.List<java.lang.Long> categoryIds, long groupId,
205                    long categoryId)
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
210                    long groupId, long userId, int start, int end)
211                    throws com.liferay.portal.kernel.exception.SystemException;
212    
213            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214            public int getSubscribedCategoriesCount(long groupId, long userId)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            public void subscribeCategory(long userId, long groupId, long categoryId)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException;
220    
221            public void unsubscribeCategory(long userId, long groupId, long categoryId)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException;
224    
225            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
226                    long categoryId, long parentCategoryId, java.lang.String name,
227                    java.lang.String description, java.lang.String emailAddress,
228                    java.lang.String inProtocol, java.lang.String inServerName,
229                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
230                    java.lang.String inPassword, int inReadInterval,
231                    java.lang.String outEmailAddress, boolean outCustom,
232                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
233                    java.lang.String outUserName, java.lang.String outPassword,
234                    boolean mailingListActive, boolean mergeWithParentCategory,
235                    com.liferay.portal.service.ServiceContext serviceContext)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException;
238    }