001    /**
002     * Copyright (c) 2000-2010 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.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     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       BlogsEntryLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface BlogsEntryLocalService {
043            public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
044                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
048                    long entryId);
049    
050            public void deleteBlogsEntry(long entryId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteBlogsEntry(
055                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            @SuppressWarnings("unchecked")
059            public java.util.List dynamicQuery(
060                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException;
067    
068            @SuppressWarnings("unchecked")
069            public java.util.List dynamicQuery(
070                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071                    int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public long dynamicQueryCount(
076                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
081                    long entryId)
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 com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
087                    java.lang.String uuid, long groupId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
093                    int start, int end)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public int getBlogsEntriesCount()
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
101                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
105                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
109                    java.lang.String title, java.lang.String content, int displayDateMonth,
110                    int displayDateDay, int displayDateYear, int displayDateHour,
111                    int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
112                    java.lang.String[] trackbacks,
113                    com.liferay.portal.service.ServiceContext serviceContext)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException;
116    
117            public void addEntryResources(
118                    com.liferay.portlet.blogs.model.BlogsEntry entry,
119                    boolean addCommunityPermissions, boolean addGuestPermissions)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException;
122    
123            public void addEntryResources(
124                    com.liferay.portlet.blogs.model.BlogsEntry entry,
125                    java.lang.String[] communityPermissions,
126                    java.lang.String[] guestPermissions)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            public void addEntryResources(long entryId,
131                    boolean addCommunityPermissions, boolean addGuestPermissions)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException;
134    
135            public void addEntryResources(long entryId,
136                    java.lang.String[] communityPermissions,
137                    java.lang.String[] guestPermissions)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException;
140    
141            public void deleteEntries(long groupId)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException;
144    
145            public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException;
148    
149            public void deleteEntry(long entryId)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException;
152    
153            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
155                    long companyId, int status, int start, int end)
156                    throws com.liferay.portal.kernel.exception.SystemException;
157    
158            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
160                    long companyId, int status, int start, int end,
161                    com.liferay.portal.kernel.util.OrderByComparator obc)
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165            public int getCompanyEntriesCount(long companyId, int status)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169            public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
170                    long entryId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException;
173    
174            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException;
178    
179            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
181                    java.lang.String urlTitle)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException;
184    
185            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
187                    long groupId, int status, int start, int end)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
192                    long groupId, int status, int start, int end,
193                    com.liferay.portal.kernel.util.OrderByComparator obc)
194                    throws com.liferay.portal.kernel.exception.SystemException;
195    
196            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197            public int getGroupEntriesCount(long groupId, int status)
198                    throws com.liferay.portal.kernel.exception.SystemException;
199    
200            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
202                    long companyId, long groupId, int status, int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException;
204    
205            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
207                    long groupId, long userId, int status, int start, int end)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
212                    long groupId, long userId, int status, int start, int end,
213                    com.liferay.portal.kernel.util.OrderByComparator obc)
214                    throws com.liferay.portal.kernel.exception.SystemException;
215    
216            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217            public int getGroupUserEntriesCount(long groupId, long userId, int status)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
226                    long organizationId, int status, int start, int end)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230            public int getOrganizationEntriesCount(long organizationId, int status)
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            public void updateAsset(long userId,
234                    com.liferay.portlet.blogs.model.BlogsEntry entry,
235                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException;
238    
239            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
240                    long entryId, java.lang.String title, java.lang.String content,
241                    int displayDateMonth, int displayDateDay, int displayDateYear,
242                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
243                    boolean allowTrackbacks, java.lang.String[] trackbacks,
244                    com.liferay.portal.service.ServiceContext serviceContext)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException;
247    
248            public void updateEntryResources(
249                    com.liferay.portlet.blogs.model.BlogsEntry entry,
250                    java.lang.String[] communityPermissions,
251                    java.lang.String[] guestPermissions)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException;
254    
255            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
256                    long userId, long entryId, int status,
257                    com.liferay.portal.service.ServiceContext serviceContext)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException;
260    }