001    /**
002     * Copyright (c) 2000-2012 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 com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    
024    /**
025     * The interface for the blogs entry remote service.
026     *
027     * <p>
028     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see BlogsEntryServiceUtil
033     * @see com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
034     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface BlogsEntryService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * 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.
045             */
046            public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
047                    java.lang.String title, java.lang.String description,
048                    java.lang.String content, int displayDateMonth, int displayDateDay,
049                    int displayDateYear, int displayDateHour, int displayDateMinute,
050                    boolean allowPingbacks, boolean allowTrackbacks,
051                    java.lang.String[] trackbacks, boolean smallImage,
052                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
053                    java.io.InputStream smallImageInputStream,
054                    com.liferay.portal.service.ServiceContext serviceContext)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException;
057    
058            public void deleteEntry(long entryId)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException;
061    
062            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
064                    long companyId, java.util.Date displayDate, int status, int max)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException;
067    
068            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069            public java.lang.String getCompanyEntriesRSS(long companyId,
070                    java.util.Date displayDate, int status, int max, java.lang.String type,
071                    double version, java.lang.String displayStyle,
072                    java.lang.String feedURL, java.lang.String entryURL,
073                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
084                    java.lang.String urlTitle)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
090                    long groupId, java.util.Date displayDate, int status, int max)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
095                    long groupId, java.util.Date displayDate, int status, int start, int end)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
100                    long groupId, int status, int max)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
105                    long groupId, int status, int start, int end)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
110                    int status) throws com.liferay.portal.kernel.exception.SystemException;
111    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public int getGroupEntriesCount(long groupId, int status)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117            public java.lang.String getGroupEntriesRSS(long groupId,
118                    java.util.Date displayDate, int status, int max, java.lang.String type,
119                    double version, java.lang.String displayStyle,
120                    java.lang.String feedURL, java.lang.String entryURL,
121                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
127                    long companyId, long groupId, java.util.Date displayDate, int status,
128                    int max)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException;
131    
132            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
134                    long organizationId, java.util.Date displayDate, int status, int max)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException;
137    
138            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139            public java.lang.String getOrganizationEntriesRSS(long organizationId,
140                    java.util.Date displayDate, int status, int max, java.lang.String type,
141                    double version, java.lang.String displayStyle,
142                    java.lang.String feedURL, java.lang.String entryURL,
143                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            public void subscribe(long groupId)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException;
150    
151            public void unsubscribe(long groupId)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException;
154    
155            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
156                    long entryId, java.lang.String title, java.lang.String description,
157                    java.lang.String content, int displayDateMonth, int displayDateDay,
158                    int displayDateYear, int displayDateHour, int displayDateMinute,
159                    boolean allowPingbacks, boolean allowTrackbacks,
160                    java.lang.String[] trackbacks, boolean smallImage,
161                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
162                    java.io.InputStream smallImageInputStream,
163                    com.liferay.portal.service.ServiceContext serviceContext)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    }