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 content, int displayDateMonth,
048                    int displayDateDay, int displayDateYear, int displayDateHour,
049                    int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
050                    java.lang.String[] trackbacks,
051                    com.liferay.portal.service.ServiceContext serviceContext)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException;
054    
055            public void deleteEntry(long entryId)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException;
058    
059            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
060            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
061                    long companyId, int status, int max)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException;
064    
065            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066            public java.lang.String getCompanyEntriesRSS(long companyId, int status,
067                    int max, java.lang.String type, double version,
068                    java.lang.String displayStyle, java.lang.String feedURL,
069                    java.lang.String entryURL,
070                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
081                    java.lang.String urlTitle)
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 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
087                    long groupId, int status, int max)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
092                    long groupId, int status, int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096            public int getGroupEntriesCount(long groupId, int status)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100            public java.lang.String getGroupEntriesRSS(long groupId, int status,
101                    int max, java.lang.String type, double version,
102                    java.lang.String displayStyle, java.lang.String feedURL,
103                    java.lang.String entryURL,
104                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
110                    long companyId, long groupId, int status, int max)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
116                    long organizationId, int status, int max)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121            public java.lang.String getOrganizationEntriesRSS(long organizationId,
122                    int status, int max, java.lang.String type, double version,
123                    java.lang.String displayStyle, java.lang.String feedURL,
124                    java.lang.String entryURL,
125                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException;
128    
129            public void subscribe(long groupId)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException;
132    
133            public void unsubscribe(long groupId)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException;
136    
137            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
138                    long entryId, java.lang.String title, java.lang.String content,
139                    int displayDateMonth, int displayDateDay, int displayDateYear,
140                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
141                    boolean allowTrackbacks, java.lang.String[] trackbacks,
142                    com.liferay.portal.service.ServiceContext serviceContext)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException;
145    }