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