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.MBMailingListLocalServiceImpl}.
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       MBMailingListLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface MBMailingListLocalService {
043            public com.liferay.portlet.messageboards.model.MBMailingList addMBMailingList(
044                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.messageboards.model.MBMailingList createMBMailingList(
048                    long mailingListId);
049    
050            public void deleteMBMailingList(long mailingListId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteMBMailingList(
055                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
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.MBMailingList getMBMailingList(
081                    long mailingListId)
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.MBMailingList getMBMailingListByUuidAndGroupId(
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.MBMailingList> getMBMailingLists(
093                    int start, int end)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public int getMBMailingListsCount()
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
101                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
105                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
106                    boolean merge)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portlet.messageboards.model.MBMailingList addMailingList(
110                    long userId, long groupId, long categoryId,
111                    java.lang.String emailAddress, java.lang.String inProtocol,
112                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
113                    java.lang.String inUserName, java.lang.String inPassword,
114                    int inReadInterval, java.lang.String outEmailAddress,
115                    boolean outCustom, java.lang.String outServerName, int outServerPort,
116                    boolean outUseSSL, java.lang.String outUserName,
117                    java.lang.String outPassword, boolean active,
118                    com.liferay.portal.service.ServiceContext serviceContext)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            public void deleteCategoryMailingList(long groupId, long categoryId)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            public void deleteMailingList(long mailingListId)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            public void deleteMailingList(
131                    com.liferay.portlet.messageboards.model.MBMailingList mailingList)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException;
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public com.liferay.portlet.messageboards.model.MBMailingList getCategoryMailingList(
137                    long groupId, long categoryId)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException;
140    
141            public com.liferay.portlet.messageboards.model.MBMailingList updateMailingList(
142                    long mailingListId, java.lang.String emailAddress,
143                    java.lang.String inProtocol, java.lang.String inServerName,
144                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
145                    java.lang.String inPassword, int inReadInterval,
146                    java.lang.String outEmailAddress, boolean outCustom,
147                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
148                    java.lang.String outUserName, java.lang.String outPassword,
149                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException;
152    }