1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.blogs.service;
24  
25  
26  /**
27   * <a href="BlogsEntryLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.blogs.service.BlogsEntryLocalServiceFactory
48   * @see com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil
49   *
50   */
51  public interface BlogsEntryLocalService {
52      public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
53          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteBlogsEntry(long entryId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteBlogsEntry(
61          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
73          long entryId)
74          throws com.liferay.portal.SystemException,
75              com.liferay.portal.PortalException;
76  
77      public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
78          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
82          long plid, java.lang.String title, java.lang.String content,
83          int displayDateMonth, int displayDateDay, int displayDateYear,
84          int displayDateHour, int displayDateMinute, boolean draft,
85          boolean allowTrackbacks, java.lang.String[] trackbacks,
86          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
87          boolean addGuestPermissions,
88          com.liferay.portal.theme.ThemeDisplay themeDisplay)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
93          java.lang.String uuid, long userId, long plid, java.lang.String title,
94          java.lang.String content, int displayDateMonth, int displayDateDay,
95          int displayDateYear, int displayDateHour, int displayDateMinute,
96          boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
97          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
98          boolean addGuestPermissions,
99          com.liferay.portal.theme.ThemeDisplay themeDisplay)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException;
102 
103     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
104         long plid, java.lang.String title, java.lang.String content,
105         int displayDateMonth, int displayDateDay, int displayDateYear,
106         int displayDateHour, int displayDateMinute, boolean draft,
107         boolean allowTrackbacks, java.lang.String[] trackbacks,
108         java.lang.String[] tagsEntries,
109         java.lang.String[] communityPermissions,
110         java.lang.String[] guestPermissions,
111         com.liferay.portal.theme.ThemeDisplay themeDisplay)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
116         java.lang.String uuid, long userId, long plid, java.lang.String title,
117         java.lang.String content, int displayDateMonth, int displayDateDay,
118         int displayDateYear, int displayDateHour, int displayDateMinute,
119         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
120         java.lang.String[] tagsEntries,
121         java.lang.Boolean addCommunityPermissions,
122         java.lang.Boolean addGuestPermissions,
123         java.lang.String[] communityPermissions,
124         java.lang.String[] guestPermissions,
125         com.liferay.portal.theme.ThemeDisplay themeDisplay)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException;
128 
129     public void addEntryResources(long entryId,
130         boolean addCommunityPermissions, boolean addGuestPermissions)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public void addEntryResources(
135         com.liferay.portlet.blogs.model.BlogsEntry entry,
136         boolean addCommunityPermissions, boolean addGuestPermissions)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public void addEntryResources(long entryId,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public void addEntryResources(
147         com.liferay.portlet.blogs.model.BlogsEntry entry,
148         java.lang.String[] communityPermissions,
149         java.lang.String[] guestPermissions)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public void deleteEntries(long groupId)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void deleteEntry(long entryId)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException;
164 
165     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
166         long companyId, int start, int end)
167         throws com.liferay.portal.SystemException;
168 
169     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
170         long companyId, int start, int end,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
175         long companyId, boolean draft, int start, int end)
176         throws com.liferay.portal.SystemException;
177 
178     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
179         long companyId, boolean draft, int start, int end,
180         com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException;
182 
183     public int getCompanyEntriesCount(long companyId)
184         throws com.liferay.portal.SystemException;
185 
186     public int getCompanyEntriesCount(long companyId, boolean draft)
187         throws com.liferay.portal.SystemException;
188 
189     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException;
192 
193     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
194         java.lang.String urlTitle)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException;
197 
198     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
199         long groupId, int start, int end)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
203         long groupId, int start, int end,
204         com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException;
206 
207     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
208         long groupId, boolean draft, int start, int end)
209         throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
212         long groupId, boolean draft, int start, int end,
213         com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException;
215 
216     public int getGroupEntriesCount(long groupId)
217         throws com.liferay.portal.SystemException;
218 
219     public int getGroupEntriesCount(long groupId, boolean draft)
220         throws com.liferay.portal.SystemException;
221 
222     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
223         long groupId, long userId, int start, int end)
224         throws com.liferay.portal.SystemException;
225 
226     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
227         long groupId, long userId, int start, int end,
228         com.liferay.portal.kernel.util.OrderByComparator obc)
229         throws com.liferay.portal.SystemException;
230 
231     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
232         long groupId, long userId, boolean draft, int start, int end)
233         throws com.liferay.portal.SystemException;
234 
235     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
236         long groupId, long userId, boolean draft, int start, int end,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException;
239 
240     public int getGroupUserEntriesCount(long groupId, long userId)
241         throws com.liferay.portal.SystemException;
242 
243     public int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
244         throws com.liferay.portal.SystemException;
245 
246     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
247         throws com.liferay.portal.SystemException;
248 
249     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
250         long organizationId, boolean draft, int start, int end)
251         throws com.liferay.portal.SystemException;
252 
253     public int getOrganizationEntriesCount(long organizationId, boolean draft)
254         throws com.liferay.portal.SystemException;
255 
256     public java.lang.String getUrlTitle(long entryId, java.lang.String title);
257 
258     public void reIndex(java.lang.String[] ids)
259         throws com.liferay.portal.SystemException;
260 
261     public com.liferay.portal.kernel.search.Hits search(long companyId,
262         long groupId, long userId, java.lang.String keywords, int start, int end)
263         throws com.liferay.portal.SystemException;
264 
265     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
266         long entryId, java.lang.String title, java.lang.String content,
267         int displayDateMonth, int displayDateDay, int displayDateYear,
268         int displayDateHour, int displayDateMinute, boolean draft,
269         boolean allowTrackbacks, java.lang.String[] trackbacks,
270         java.lang.String[] tagsEntries,
271         com.liferay.portal.theme.ThemeDisplay themeDisplay)
272         throws com.liferay.portal.PortalException,
273             com.liferay.portal.SystemException;
274 
275     public void updateTagsAsset(long userId,
276         com.liferay.portlet.blogs.model.BlogsEntry entry,
277         java.lang.String[] tagsEntries)
278         throws com.liferay.portal.PortalException,
279             com.liferay.portal.SystemException;
280 }