1
22
23 package com.liferay.portlet.blogs.service;
24
25
26
53 public class BlogsEntryLocalServiceUtil {
54 public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
55 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
56 throws com.liferay.portal.SystemException {
57 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
58
59 return blogsEntryLocalService.addBlogsEntry(blogsEntry);
60 }
61
62 public static void deleteBlogsEntry(long entryId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
66
67 blogsEntryLocalService.deleteBlogsEntry(entryId);
68 }
69
70 public static void deleteBlogsEntry(
71 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException {
74 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
75
76 blogsEntryLocalService.deleteBlogsEntry(blogsEntry);
77 }
78
79 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> dynamicQuery(
80 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
81 throws com.liferay.portal.SystemException {
82 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
83
84 return blogsEntryLocalService.dynamicQuery(queryInitializer);
85 }
86
87 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> dynamicQuery(
88 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89 int begin, int end) throws com.liferay.portal.SystemException {
90 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
91
92 return blogsEntryLocalService.dynamicQuery(queryInitializer, begin, end);
93 }
94
95 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
96 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
97 throws com.liferay.portal.SystemException {
98 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
99
100 return blogsEntryLocalService.updateBlogsEntry(blogsEntry);
101 }
102
103 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
104 long userId, long plid, java.lang.String title,
105 java.lang.String content, int displayDateMonth, int displayDateDay,
106 int displayDateYear, int displayDateHour, int displayDateMinute,
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 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
113
114 return blogsEntryLocalService.addEntry(userId, plid, title, content,
115 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
116 displayDateMinute, tagsEntries, addCommunityPermissions,
117 addGuestPermissions, themeDisplay);
118 }
119
120 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
121 java.lang.String uuid, long userId, long plid, java.lang.String title,
122 java.lang.String content, int displayDateMonth, int displayDateDay,
123 int displayDateYear, int displayDateHour, int displayDateMinute,
124 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
125 boolean addGuestPermissions,
126 com.liferay.portal.theme.ThemeDisplay themeDisplay)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException {
129 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
130
131 return blogsEntryLocalService.addEntry(uuid, userId, plid, title,
132 content, displayDateMonth, displayDateDay, displayDateYear,
133 displayDateHour, displayDateMinute, tagsEntries,
134 addCommunityPermissions, addGuestPermissions, themeDisplay);
135 }
136
137 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
138 long userId, long plid, java.lang.String title,
139 java.lang.String content, int displayDateMonth, int displayDateDay,
140 int displayDateYear, int displayDateHour, int displayDateMinute,
141 java.lang.String[] tagsEntries,
142 java.lang.String[] communityPermissions,
143 java.lang.String[] guestPermissions,
144 com.liferay.portal.theme.ThemeDisplay themeDisplay)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException {
147 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
148
149 return blogsEntryLocalService.addEntry(userId, plid, title, content,
150 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
151 displayDateMinute, tagsEntries, communityPermissions,
152 guestPermissions, themeDisplay);
153 }
154
155 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
156 java.lang.String uuid, long userId, long plid, java.lang.String title,
157 java.lang.String content, int displayDateMonth, int displayDateDay,
158 int displayDateYear, int displayDateHour, int displayDateMinute,
159 java.lang.String[] tagsEntries,
160 java.lang.Boolean addCommunityPermissions,
161 java.lang.Boolean addGuestPermissions,
162 java.lang.String[] communityPermissions,
163 java.lang.String[] guestPermissions,
164 com.liferay.portal.theme.ThemeDisplay themeDisplay)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException {
167 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
168
169 return blogsEntryLocalService.addEntry(uuid, userId, plid, title,
170 content, displayDateMonth, displayDateDay, displayDateYear,
171 displayDateHour, displayDateMinute, tagsEntries,
172 addCommunityPermissions, addGuestPermissions, communityPermissions,
173 guestPermissions, themeDisplay);
174 }
175
176 public static void addEntryResources(long entryId,
177 boolean addCommunityPermissions, boolean addGuestPermissions)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException {
180 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
181
182 blogsEntryLocalService.addEntryResources(entryId,
183 addCommunityPermissions, addGuestPermissions);
184 }
185
186 public static void addEntryResources(
187 com.liferay.portlet.blogs.model.BlogsEntry entry,
188 boolean addCommunityPermissions, boolean addGuestPermissions)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
192
193 blogsEntryLocalService.addEntryResources(entry,
194 addCommunityPermissions, addGuestPermissions);
195 }
196
197 public static void addEntryResources(long entryId,
198 java.lang.String[] communityPermissions,
199 java.lang.String[] guestPermissions)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException {
202 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
203
204 blogsEntryLocalService.addEntryResources(entryId, communityPermissions,
205 guestPermissions);
206 }
207
208 public static void addEntryResources(
209 com.liferay.portlet.blogs.model.BlogsEntry entry,
210 java.lang.String[] communityPermissions,
211 java.lang.String[] guestPermissions)
212 throws com.liferay.portal.PortalException,
213 com.liferay.portal.SystemException {
214 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
215
216 blogsEntryLocalService.addEntryResources(entry, communityPermissions,
217 guestPermissions);
218 }
219
220 public static void deleteEntries(long groupId)
221 throws com.liferay.portal.PortalException,
222 com.liferay.portal.SystemException {
223 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
224
225 blogsEntryLocalService.deleteEntries(groupId);
226 }
227
228 public static void deleteEntry(long entryId)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException {
231 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
232
233 blogsEntryLocalService.deleteEntry(entryId);
234 }
235
236 public static void deleteEntry(
237 com.liferay.portlet.blogs.model.BlogsEntry entry)
238 throws com.liferay.portal.PortalException,
239 com.liferay.portal.SystemException {
240 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
241
242 blogsEntryLocalService.deleteEntry(entry);
243 }
244
245 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
246 long companyId, int begin, int end)
247 throws com.liferay.portal.SystemException {
248 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
249
250 return blogsEntryLocalService.getCompanyEntries(companyId, begin, end);
251 }
252
253 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
254 long companyId, int begin, int end,
255 com.liferay.portal.kernel.util.OrderByComparator obc)
256 throws com.liferay.portal.SystemException {
257 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
258
259 return blogsEntryLocalService.getCompanyEntries(companyId, begin, end,
260 obc);
261 }
262
263 public static int getCompanyEntriesCount(long companyId)
264 throws com.liferay.portal.SystemException {
265 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
266
267 return blogsEntryLocalService.getCompanyEntriesCount(companyId);
268 }
269
270 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
271 long entryId)
272 throws com.liferay.portal.PortalException,
273 com.liferay.portal.SystemException {
274 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
275
276 return blogsEntryLocalService.getEntry(entryId);
277 }
278
279 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
280 long groupId, java.lang.String urlTitle)
281 throws com.liferay.portal.PortalException,
282 com.liferay.portal.SystemException {
283 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
284
285 return blogsEntryLocalService.getEntry(groupId, urlTitle);
286 }
287
288 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
289 long groupId, int begin, int end)
290 throws com.liferay.portal.SystemException {
291 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
292
293 return blogsEntryLocalService.getGroupEntries(groupId, begin, end);
294 }
295
296 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
297 long groupId, int begin, int end,
298 com.liferay.portal.kernel.util.OrderByComparator obc)
299 throws com.liferay.portal.SystemException {
300 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
301
302 return blogsEntryLocalService.getGroupEntries(groupId, begin, end, obc);
303 }
304
305 public static int getGroupEntriesCount(long groupId)
306 throws com.liferay.portal.SystemException {
307 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
308
309 return blogsEntryLocalService.getGroupEntriesCount(groupId);
310 }
311
312 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
313 long groupId, long userId, int begin, int end)
314 throws com.liferay.portal.SystemException {
315 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
316
317 return blogsEntryLocalService.getGroupUserEntries(groupId, userId,
318 begin, end);
319 }
320
321 public static int getGroupUserEntriesCount(long groupId, long userId)
322 throws com.liferay.portal.SystemException {
323 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
324
325 return blogsEntryLocalService.getGroupUserEntriesCount(groupId, userId);
326 }
327
328 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
329 throws com.liferay.portal.SystemException {
330 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
331
332 return blogsEntryLocalService.getNoAssetEntries();
333 }
334
335 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
336 long organizationId, int begin, int end)
337 throws com.liferay.portal.SystemException {
338 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
339
340 return blogsEntryLocalService.getOrganizationEntries(organizationId,
341 begin, end);
342 }
343
344 public static int getOrganizationEntriesCount(long organizationId)
345 throws com.liferay.portal.SystemException {
346 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
347
348 return blogsEntryLocalService.getOrganizationEntriesCount(organizationId);
349 }
350
351 public static java.lang.String getUrlTitle(long entryId,
352 java.lang.String title) {
353 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
354
355 return blogsEntryLocalService.getUrlTitle(entryId, title);
356 }
357
358 public static void reIndex(java.lang.String[] ids)
359 throws com.liferay.portal.SystemException {
360 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
361
362 blogsEntryLocalService.reIndex(ids);
363 }
364
365 public static com.liferay.portal.kernel.search.Hits search(long companyId,
366 long groupId, long userId, java.lang.String keywords)
367 throws com.liferay.portal.SystemException {
368 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
369
370 return blogsEntryLocalService.search(companyId, groupId, userId,
371 keywords);
372 }
373
374 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
375 long userId, long entryId, java.lang.String title,
376 java.lang.String content, int displayDateMonth, int displayDateDay,
377 int displayDateYear, int displayDateHour, int displayDateMinute,
378 java.lang.String[] tagsEntries,
379 com.liferay.portal.theme.ThemeDisplay themeDisplay)
380 throws com.liferay.portal.PortalException,
381 com.liferay.portal.SystemException {
382 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
383
384 return blogsEntryLocalService.updateEntry(userId, entryId, title,
385 content, displayDateMonth, displayDateDay, displayDateYear,
386 displayDateHour, displayDateMinute, tagsEntries, themeDisplay);
387 }
388
389 public static void updateTagsAsset(long userId,
390 com.liferay.portlet.blogs.model.BlogsEntry entry,
391 java.lang.String[] tagsEntries)
392 throws com.liferay.portal.PortalException,
393 com.liferay.portal.SystemException {
394 BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
395
396 blogsEntryLocalService.updateTagsAsset(userId, entry, tagsEntries);
397 }
398 }