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      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
75          long entryId)
76          throws com.liferay.portal.kernel.exception.PortalException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
81          int start, int end)
82          throws com.liferay.portal.kernel.exception.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public int getBlogsEntriesCount()
86          throws com.liferay.portal.kernel.exception.SystemException;
87  
88      public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
89          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
93          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
97          java.lang.String uuid, long userId, java.lang.String title,
98          java.lang.String content, int displayDateMonth, int displayDateDay,
99          int displayDateYear, int displayDateHour, int displayDateMinute,
100         boolean allowPingbacks, boolean allowTrackbacks,
101         java.lang.String[] trackbacks,
102         com.liferay.portal.service.ServiceContext serviceContext)
103         throws com.liferay.portal.kernel.exception.PortalException,
104             com.liferay.portal.kernel.exception.SystemException;
105 
106     public void addEntryResources(
107         com.liferay.portlet.blogs.model.BlogsEntry entry,
108         boolean addCommunityPermissions, boolean addGuestPermissions)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException;
111 
112     public void addEntryResources(
113         com.liferay.portlet.blogs.model.BlogsEntry entry,
114         java.lang.String[] communityPermissions,
115         java.lang.String[] guestPermissions)
116         throws com.liferay.portal.kernel.exception.PortalException,
117             com.liferay.portal.kernel.exception.SystemException;
118 
119     public void addEntryResources(long entryId,
120         boolean addCommunityPermissions, boolean addGuestPermissions)
121         throws com.liferay.portal.kernel.exception.PortalException,
122             com.liferay.portal.kernel.exception.SystemException;
123 
124     public void addEntryResources(long entryId,
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 deleteEntries(long groupId)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException;
133 
134     public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException;
137 
138     public void deleteEntry(long entryId)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException;
141 
142     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
144         long companyId, int status, int start, int end)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
149         long companyId, int status, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154     public int getCompanyEntriesCount(long companyId, int status)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
159         long entryId)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
170         java.lang.String urlTitle)
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 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
176         long groupId, int status, int start, int end)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
181         long groupId, int status, int start, int end,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186     public int getGroupEntriesCount(long groupId, int status)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
191         long groupId, long userId, int status, int start, int end)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
196         long groupId, long userId, int status, int start, int end,
197         com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public int getGroupUserEntriesCount(long groupId, long userId, int status)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
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> getOrganizationEntries(
210         long organizationId, int status, int start, int end)
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public int getOrganizationEntriesCount(long organizationId, int status)
215         throws com.liferay.portal.kernel.exception.SystemException;
216 
217     public void updateAsset(long userId,
218         com.liferay.portlet.blogs.model.BlogsEntry entry,
219         long[] assetCategoryIds, java.lang.String[] assetTagNames)
220         throws com.liferay.portal.kernel.exception.PortalException,
221             com.liferay.portal.kernel.exception.SystemException;
222 
223     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
224         long entryId, java.lang.String title, java.lang.String content,
225         int displayDateMonth, int displayDateDay, int displayDateYear,
226         int displayDateHour, int displayDateMinute, boolean allowPingbacks,
227         boolean allowTrackbacks, java.lang.String[] trackbacks,
228         com.liferay.portal.service.ServiceContext serviceContext)
229         throws com.liferay.portal.kernel.exception.PortalException,
230             com.liferay.portal.kernel.exception.SystemException;
231 
232     public void updateEntryResources(
233         com.liferay.portlet.blogs.model.BlogsEntry entry,
234         java.lang.String[] communityPermissions,
235         java.lang.String[] guestPermissions)
236         throws com.liferay.portal.kernel.exception.PortalException,
237             com.liferay.portal.kernel.exception.SystemException;
238 
239     public com.liferay.portlet.blogs.model.BlogsEntry updateWorkflowStatus(
240         long userId, long entryId, java.lang.String[] trackbacks,
241         boolean pingOldTrackbaks,
242         com.liferay.portal.service.ServiceContext serviceContext)
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException;
245 }