001    /**
002     * Copyright (c) 2000-2013 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.blogs.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.security.ac.AccessControlled;
026    import com.liferay.portal.service.BaseService;
027    
028    /**
029     * Provides the remote service interface for BlogsEntry. Methods of this
030     * service are expected to have security checks based on the propagated JAAS
031     * credentials because this service can be accessed remotely.
032     *
033     * @author Brian Wing Shun Chan
034     * @see BlogsEntryServiceUtil
035     * @see com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
036     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl
037     * @generated
038     */
039    @ProviderType
040    @AccessControlled
041    @JSONWebService
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface BlogsEntryService extends BaseService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. Always use {@link BlogsEntryServiceUtil} to access the blogs entry remote service. Add custom service methods to {@link com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
049             */
050    
051            /**
052            * Returns the Spring bean ID for this bean.
053            *
054            * @return the Spring bean ID for this bean
055            */
056            public java.lang.String getBeanIdentifier();
057    
058            /**
059            * Sets the Spring bean ID for this bean.
060            *
061            * @param beanIdentifier the Spring bean ID for this bean
062            */
063            public void setBeanIdentifier(java.lang.String beanIdentifier);
064    
065            public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
066                    java.lang.String title, java.lang.String description,
067                    java.lang.String content, int displayDateMonth, int displayDateDay,
068                    int displayDateYear, int displayDateHour, int displayDateMinute,
069                    boolean allowPingbacks, boolean allowTrackbacks,
070                    java.lang.String[] trackbacks, boolean smallImage,
071                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
072                    java.io.InputStream smallImageInputStream,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public void deleteEntry(long entryId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
083                    long companyId, java.util.Date displayDate, int status, int max)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088            public java.lang.String getCompanyEntriesRSS(long companyId,
089                    java.util.Date displayDate, int status, int max, java.lang.String type,
090                    double version, java.lang.String displayStyle,
091                    java.lang.String feedURL, java.lang.String entryURL,
092                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException;
100    
101            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
103                    java.lang.String urlTitle)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException;
106    
107            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
109                    long groupId, java.util.Date displayDate, int status, int max)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
114                    long groupId, java.util.Date displayDate, int status, int start, int end)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
119                    long groupId, int status, int max)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
124                    long groupId, int status, int start, int end)
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    
127            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
129                    int status) throws com.liferay.portal.kernel.exception.SystemException;
130    
131            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132            public int getGroupEntriesCount(long groupId, int status)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public java.lang.String getGroupEntriesRSS(long groupId,
137                    java.util.Date displayDate, int status, int max, java.lang.String type,
138                    double version, java.lang.String displayStyle,
139                    java.lang.String feedURL, java.lang.String entryURL,
140                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
146                    long companyId, long groupId, java.util.Date displayDate, int status,
147                    int max)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException;
150    
151            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
153                    long organizationId, java.util.Date displayDate, int status, int max)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158            public java.lang.String getOrganizationEntriesRSS(long organizationId,
159                    java.util.Date displayDate, int status, int max, java.lang.String type,
160                    double version, java.lang.String displayStyle,
161                    java.lang.String feedURL, java.lang.String entryURL,
162                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
167                    long entryId)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException;
170    
171            public void restoreEntryFromTrash(long entryId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            public void subscribe(long groupId)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException;
178    
179            public void unsubscribe(long groupId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException;
182    
183            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
184                    long entryId, java.lang.String title, java.lang.String description,
185                    java.lang.String content, int displayDateMonth, int displayDateDay,
186                    int displayDateYear, int displayDateHour, int displayDateMinute,
187                    boolean allowPingbacks, boolean allowTrackbacks,
188                    java.lang.String[] trackbacks, boolean smallImage,
189                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
190                    java.io.InputStream smallImageInputStream,
191                    com.liferay.portal.service.ServiceContext serviceContext)
192                    throws com.liferay.portal.kernel.exception.PortalException,
193                            com.liferay.portal.kernel.exception.SystemException;
194    }