001    /**
002     * Copyright (c) 2000-2010 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.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     * The interface for the blogs entry remote service.
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * <p>
031     * 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.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see BlogsEntryServiceUtil
036     * @see com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
037     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface BlogsEntryService {
043            public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
044                    java.lang.String title, java.lang.String content, int displayDateMonth,
045                    int displayDateDay, int displayDateYear, int displayDateHour,
046                    int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
047                    java.lang.String[] trackbacks,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException;
051    
052            public void deleteEntry(long entryId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException;
055    
056            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
058                    long companyId, int status, int max)
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.lang.String getCompanyEntriesRSS(long companyId, int status,
064                    int max, java.lang.String type, double version,
065                    java.lang.String displayStyle, java.lang.String feedURL,
066                    java.lang.String entryURL,
067                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
078                    java.lang.String urlTitle)
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 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
084                    long groupId, int status, int max)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
089                    long groupId, int status, int start, int end)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093            public int getGroupEntriesCount(long groupId, int status)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public java.lang.String getGroupEntriesRSS(long groupId, int status,
098                    int max, java.lang.String type, double version,
099                    java.lang.String displayStyle, java.lang.String feedURL,
100                    java.lang.String entryURL,
101                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException;
104    
105            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
107                    long companyId, long groupId, int status, int max)
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> getOrganizationEntries(
113                    long organizationId, 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.lang.String getOrganizationEntriesRSS(long organizationId,
119                    int status, int max, java.lang.String type, double version,
120                    java.lang.String displayStyle, java.lang.String feedURL,
121                    java.lang.String entryURL,
122                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
127                    long entryId, java.lang.String title, java.lang.String content,
128                    int displayDateMonth, int displayDateDay, int displayDateYear,
129                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
130                    boolean allowTrackbacks, java.lang.String[] trackbacks,
131                    com.liferay.portal.service.ServiceContext serviceContext)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException;
134    }