1
22
23 package com.liferay.portlet.blogs.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface BlogsEntryLocalService {
58 public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
59 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
63 long entryId);
64
65 public void deleteBlogsEntry(long entryId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 public void deleteBlogsEntry(
70 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
83 long entryId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
89 int start, int end) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getBlogsEntriesCount() throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
95 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
96 throws com.liferay.portal.SystemException;
97
98 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
99 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
100 throws com.liferay.portal.SystemException;
101
102 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
103 long plid, java.lang.String title, java.lang.String content,
104 int displayDateMonth, int displayDateDay, int displayDateYear,
105 int displayDateHour, int displayDateMinute, boolean draft,
106 boolean allowTrackbacks, java.lang.String[] trackbacks,
107 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
108 boolean addGuestPermissions,
109 com.liferay.portal.theme.ThemeDisplay themeDisplay)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
114 java.lang.String uuid, long userId, long plid, java.lang.String title,
115 java.lang.String content, int displayDateMonth, int displayDateDay,
116 int displayDateYear, int displayDateHour, int displayDateMinute,
117 boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
118 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
119 boolean addGuestPermissions,
120 com.liferay.portal.theme.ThemeDisplay themeDisplay)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException;
123
124 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
125 long plid, java.lang.String title, java.lang.String content,
126 int displayDateMonth, int displayDateDay, int displayDateYear,
127 int displayDateHour, int displayDateMinute, boolean draft,
128 boolean allowTrackbacks, java.lang.String[] trackbacks,
129 java.lang.String[] tagsEntries,
130 java.lang.String[] communityPermissions,
131 java.lang.String[] guestPermissions,
132 com.liferay.portal.theme.ThemeDisplay themeDisplay)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
137 java.lang.String uuid, long userId, long plid, java.lang.String title,
138 java.lang.String content, int displayDateMonth, int displayDateDay,
139 int displayDateYear, int displayDateHour, int displayDateMinute,
140 boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
141 java.lang.String[] tagsEntries,
142 java.lang.Boolean addCommunityPermissions,
143 java.lang.Boolean addGuestPermissions,
144 java.lang.String[] communityPermissions,
145 java.lang.String[] guestPermissions,
146 com.liferay.portal.theme.ThemeDisplay themeDisplay)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException;
149
150 public void addEntryResources(long entryId,
151 boolean addCommunityPermissions, boolean addGuestPermissions)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 public void addEntryResources(
156 com.liferay.portlet.blogs.model.BlogsEntry entry,
157 boolean addCommunityPermissions, boolean addGuestPermissions)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException;
160
161 public void addEntryResources(long entryId,
162 java.lang.String[] communityPermissions,
163 java.lang.String[] guestPermissions)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException;
166
167 public void addEntryResources(
168 com.liferay.portlet.blogs.model.BlogsEntry entry,
169 java.lang.String[] communityPermissions,
170 java.lang.String[] guestPermissions)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException;
173
174 public void deleteEntries(long groupId)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException;
177
178 public void deleteEntry(long entryId)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException;
181
182 public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
188 long companyId, int start, int end)
189 throws com.liferay.portal.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
193 long companyId, int start, int end,
194 com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
199 long companyId, boolean draft, int start, int end)
200 throws com.liferay.portal.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
204 long companyId, boolean draft, int start, int end,
205 com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int getCompanyEntriesCount(long companyId)
210 throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public int getCompanyEntriesCount(long companyId, boolean draft)
214 throws com.liferay.portal.SystemException;
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
218 long entryId)
219 throws com.liferay.portal.PortalException,
220 com.liferay.portal.SystemException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
224 throws com.liferay.portal.PortalException,
225 com.liferay.portal.SystemException;
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
229 java.lang.String urlTitle)
230 throws com.liferay.portal.PortalException,
231 com.liferay.portal.SystemException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
235 long groupId, int start, int end)
236 throws com.liferay.portal.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
240 long groupId, int start, int end,
241 com.liferay.portal.kernel.util.OrderByComparator obc)
242 throws com.liferay.portal.SystemException;
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
246 long groupId, boolean draft, int start, int end)
247 throws com.liferay.portal.SystemException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
251 long groupId, boolean draft, int start, int end,
252 com.liferay.portal.kernel.util.OrderByComparator obc)
253 throws com.liferay.portal.SystemException;
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public int getGroupEntriesCount(long groupId)
257 throws com.liferay.portal.SystemException;
258
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public int getGroupEntriesCount(long groupId, boolean draft)
261 throws com.liferay.portal.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
265 long groupId, long userId, int start, int end)
266 throws com.liferay.portal.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
270 long groupId, long userId, int start, int end,
271 com.liferay.portal.kernel.util.OrderByComparator obc)
272 throws com.liferay.portal.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
276 long groupId, long userId, boolean draft, int start, int end)
277 throws com.liferay.portal.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
281 long groupId, long userId, boolean draft, int start, int end,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public int getGroupUserEntriesCount(long groupId, long userId)
287 throws com.liferay.portal.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
291 throws com.liferay.portal.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
295 throws com.liferay.portal.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
299 long organizationId, boolean draft, int start, int end)
300 throws com.liferay.portal.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public int getOrganizationEntriesCount(long organizationId, boolean draft)
304 throws com.liferay.portal.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public java.lang.String getUrlTitle(long entryId, java.lang.String title);
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public void reIndex(long entryId) throws com.liferay.portal.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
314 throws com.liferay.portal.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public void reIndex(java.lang.String[] ids)
318 throws com.liferay.portal.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public com.liferay.portal.kernel.search.Hits search(long companyId,
322 long groupId, long userId, java.lang.String keywords, int start, int end)
323 throws com.liferay.portal.SystemException;
324
325 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
326 long entryId, java.lang.String title, java.lang.String content,
327 int displayDateMonth, int displayDateDay, int displayDateYear,
328 int displayDateHour, int displayDateMinute, boolean draft,
329 boolean allowTrackbacks, java.lang.String[] trackbacks,
330 java.lang.String[] tagsEntries,
331 com.liferay.portal.theme.ThemeDisplay themeDisplay)
332 throws com.liferay.portal.PortalException,
333 com.liferay.portal.SystemException;
334
335 public void updateTagsAsset(long userId,
336 com.liferay.portlet.blogs.model.BlogsEntry entry,
337 java.lang.String[] tagsEntries)
338 throws com.liferay.portal.PortalException,
339 com.liferay.portal.SystemException;
340 }