001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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, 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, int status,
070                    int max, java.lang.String type, double version,
071                    java.lang.String displayStyle, java.lang.String feedURL,
072                    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, 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, int status, int start, int end)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099            public int getGroupEntriesCount(long groupId, int status)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public java.lang.String getGroupEntriesRSS(long groupId, int status,
104                    int max, java.lang.String type, double version,
105                    java.lang.String displayStyle, java.lang.String feedURL,
106                    java.lang.String entryURL,
107                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException;
110    
111            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
113                    long companyId, long groupId, int status, int max)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            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> getOrganizationEntries(
119                    long organizationId, int status, int max)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException;
122    
123            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124            public java.lang.String getOrganizationEntriesRSS(long organizationId,
125                    int status, int max, java.lang.String type, double version,
126                    java.lang.String displayStyle, java.lang.String feedURL,
127                    java.lang.String entryURL,
128                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException;
131    
132            public void subscribe(long groupId)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException;
135    
136            public void unsubscribe(long groupId)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
141                    long entryId, java.lang.String title, java.lang.String description,
142                    java.lang.String content, int displayDateMonth, int displayDateDay,
143                    int displayDateYear, int displayDateHour, int displayDateMinute,
144                    boolean allowPingbacks, boolean allowTrackbacks,
145                    java.lang.String[] trackbacks, boolean smallImage,
146                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
147                    java.io.InputStream smallImageInputStream,
148                    com.liferay.portal.service.ServiceContext serviceContext)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException;
151    }