1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.blogs.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="BlogsEntryLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       BlogsEntryLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface BlogsEntryLocalService {
50      public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
51          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
55          long entryId);
56  
57      public void deleteBlogsEntry(long entryId)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteBlogsEntry(
62          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      @SuppressWarnings("unchecked")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      @SuppressWarnings("unchecked")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException;
74  
75      @SuppressWarnings("unchecked")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public long dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.kernel.exception.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
88          long entryId)
89          throws com.liferay.portal.kernel.exception.PortalException,
90              com.liferay.portal.kernel.exception.SystemException;
91  
92      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93      public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
94          java.lang.String uuid, long groupId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException;
97  
98      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
100         int start, int end)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104     public int getBlogsEntriesCount()
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
108         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
112         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
116         java.lang.String uuid, long userId, java.lang.String title,
117         java.lang.String content, int displayDateMonth, int displayDateDay,
118         int displayDateYear, int displayDateHour, int displayDateMinute,
119         boolean allowPingbacks, boolean allowTrackbacks,
120         java.lang.String[] trackbacks,
121         com.liferay.portal.service.ServiceContext serviceContext)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException;
124 
125     public void addEntryResources(
126         com.liferay.portlet.blogs.model.BlogsEntry entry,
127         boolean addCommunityPermissions, boolean addGuestPermissions)
128         throws com.liferay.portal.kernel.exception.PortalException,
129             com.liferay.portal.kernel.exception.SystemException;
130 
131     public void addEntryResources(
132         com.liferay.portlet.blogs.model.BlogsEntry entry,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException;
137 
138     public void addEntryResources(long entryId,
139         boolean addCommunityPermissions, boolean addGuestPermissions)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException;
142 
143     public void addEntryResources(long entryId,
144         java.lang.String[] communityPermissions,
145         java.lang.String[] guestPermissions)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException;
148 
149     public void deleteEntries(long groupId)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException;
152 
153     public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException;
156 
157     public void deleteEntry(long entryId)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
163         long companyId, int status, int start, int end)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
168         long companyId, int status, int start, int end,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public int getCompanyEntriesCount(long companyId, int status)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
178         long entryId)
179         throws com.liferay.portal.kernel.exception.PortalException,
180             com.liferay.portal.kernel.exception.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
189         java.lang.String urlTitle)
190         throws com.liferay.portal.kernel.exception.PortalException,
191             com.liferay.portal.kernel.exception.SystemException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
195         long groupId, int status, int start, int end)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
200         long groupId, int status, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public int getGroupEntriesCount(long groupId, int status)
206         throws com.liferay.portal.kernel.exception.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
210         long companyId, long groupId, int status, int start, int end)
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
215         long groupId, long userId, int status, int start, int end)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
220         long groupId, long userId, int status, int start, int end,
221         com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.kernel.exception.SystemException;
223 
224     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225     public int getGroupUserEntriesCount(long groupId, long userId, int status)
226         throws com.liferay.portal.kernel.exception.SystemException;
227 
228     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
234         long organizationId, int status, int start, int end)
235         throws com.liferay.portal.kernel.exception.SystemException;
236 
237     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238     public int getOrganizationEntriesCount(long organizationId, int status)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     public void updateAsset(long userId,
242         com.liferay.portlet.blogs.model.BlogsEntry entry,
243         long[] assetCategoryIds, java.lang.String[] assetTagNames)
244         throws com.liferay.portal.kernel.exception.PortalException,
245             com.liferay.portal.kernel.exception.SystemException;
246 
247     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
248         long entryId, java.lang.String title, java.lang.String content,
249         int displayDateMonth, int displayDateDay, int displayDateYear,
250         int displayDateHour, int displayDateMinute, boolean allowPingbacks,
251         boolean allowTrackbacks, java.lang.String[] trackbacks,
252         com.liferay.portal.service.ServiceContext serviceContext)
253         throws com.liferay.portal.kernel.exception.PortalException,
254             com.liferay.portal.kernel.exception.SystemException;
255 
256     public void updateEntryResources(
257         com.liferay.portlet.blogs.model.BlogsEntry entry,
258         java.lang.String[] communityPermissions,
259         java.lang.String[] guestPermissions)
260         throws com.liferay.portal.kernel.exception.PortalException,
261             com.liferay.portal.kernel.exception.SystemException;
262 
263     public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
264         long userId, long entryId, int status,
265         com.liferay.portal.service.ServiceContext serviceContext)
266         throws com.liferay.portal.kernel.exception.PortalException,
267             com.liferay.portal.kernel.exception.SystemException;
268 }