2 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
\r
4 * This library is free software; you can redistribute it and/or modify it under
\r
5 * the terms of the GNU Lesser General Public License as published by the Free
\r
6 * Software Foundation; either version 2.1 of the License, or (at your option)
\r
9 * This library is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
\r
15 package com.liferay.portlet.blogs.util.service;
\r
17 import java.util.List;
\r
19 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
\r
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
\r
21 import com.pentila.entSavoie.blogs.BlogsEntryHeader;
\r
24 * The utility for the blogs entry local service. This utility wraps {@link com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
\r
27 * 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.
\r
30 * @author Brian Wing Shun Chan
\r
31 * @see BlogsEntryLocalService
\r
32 * @see com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
\r
33 * @see com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
\r
36 public class BlogsEntryLocalServiceUtil {
\r
38 * NOTE FOR DEVELOPERS:
\r
40 * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
\r
44 * Adds the blogs entry to the database. Also notifies the appropriate model listeners.
\r
46 * @param blogsEntry the blogs entry
\r
47 * @return the blogs entry that was added
\r
48 * @throws SystemException if a system exception occurred
\r
50 public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
\r
51 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
\r
52 throws com.liferay.portal.kernel.exception.SystemException {
\r
53 return getService().addBlogsEntry(blogsEntry);
\r
57 * Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
\r
59 * @param entryId the primary key for the new blogs entry
\r
60 * @return the new blogs entry
\r
62 public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
\r
64 return getService().createBlogsEntry(entryId);
\r
68 * Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
\r
70 * @param entryId the primary key of the blogs entry
\r
71 * @return the blogs entry that was removed
\r
72 * @throws PortalException if a blogs entry with the primary key could not be found
\r
73 * @throws SystemException if a system exception occurred
\r
75 public static com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
\r
77 throws com.liferay.portal.kernel.exception.PortalException,
\r
78 com.liferay.portal.kernel.exception.SystemException {
\r
79 return getService().deleteBlogsEntry(entryId);
\r
83 * Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
\r
85 * @param blogsEntry the blogs entry
\r
86 * @return the blogs entry that was removed
\r
87 * @throws SystemException if a system exception occurred
\r
89 public static com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
\r
90 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
\r
91 throws com.liferay.portal.kernel.exception.SystemException {
\r
92 return getService().deleteBlogsEntry(blogsEntry);
\r
95 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
\r
96 return getService().dynamicQuery();
\r
100 * Performs a dynamic query on the database and returns the matching rows.
\r
102 * @param dynamicQuery the dynamic query
\r
103 * @return the matching rows
\r
104 * @throws SystemException if a system exception occurred
\r
106 @SuppressWarnings("rawtypes")
\r
107 public static java.util.List dynamicQuery(
\r
108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
\r
109 throws com.liferay.portal.kernel.exception.SystemException {
\r
110 return getService().dynamicQuery(dynamicQuery);
\r
114 * Performs a dynamic query on the database and returns a range of the matching rows.
\r
117 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
\r
120 * @param dynamicQuery the dynamic query
\r
121 * @param start the lower bound of the range of model instances
\r
122 * @param end the upper bound of the range of model instances (not inclusive)
\r
123 * @return the range of matching rows
\r
124 * @throws SystemException if a system exception occurred
\r
126 @SuppressWarnings("rawtypes")
\r
127 public static java.util.List dynamicQuery(
\r
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
\r
129 int end) throws com.liferay.portal.kernel.exception.SystemException {
\r
130 return getService().dynamicQuery(dynamicQuery, start, end);
\r
134 * Performs a dynamic query on the database and returns an ordered range of the matching rows.
\r
137 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
\r
140 * @param dynamicQuery the dynamic query
\r
141 * @param start the lower bound of the range of model instances
\r
142 * @param end the upper bound of the range of model instances (not inclusive)
\r
143 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
\r
144 * @return the ordered range of matching rows
\r
145 * @throws SystemException if a system exception occurred
\r
147 @SuppressWarnings("rawtypes")
\r
148 public static java.util.List dynamicQuery(
\r
149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
\r
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
\r
152 throws com.liferay.portal.kernel.exception.SystemException {
\r
153 return getService()
\r
154 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
\r
158 * Returns the number of rows that match the dynamic query.
\r
160 * @param dynamicQuery the dynamic query
\r
161 * @return the number of rows that match the dynamic query
\r
162 * @throws SystemException if a system exception occurred
\r
164 public static long dynamicQueryCount(
\r
165 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
\r
166 throws com.liferay.portal.kernel.exception.SystemException {
\r
167 return getService().dynamicQueryCount(dynamicQuery);
\r
170 public static com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
\r
172 throws com.liferay.portal.kernel.exception.SystemException {
\r
173 return getService().fetchBlogsEntry(entryId);
\r
177 * Returns the blogs entry with the primary key.
\r
179 * @param entryId the primary key of the blogs entry
\r
180 * @return the blogs entry
\r
181 * @throws PortalException if a blogs entry with the primary key could not be found
\r
182 * @throws SystemException if a system exception occurred
\r
184 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
\r
186 throws com.liferay.portal.kernel.exception.PortalException,
\r
187 com.liferay.portal.kernel.exception.SystemException {
\r
188 return getService().getBlogsEntry(entryId);
\r
191 public static com.liferay.portal.model.PersistedModel getPersistedModel(
\r
192 java.io.Serializable primaryKeyObj)
\r
193 throws com.liferay.portal.kernel.exception.PortalException,
\r
194 com.liferay.portal.kernel.exception.SystemException {
\r
195 return getService().getPersistedModel(primaryKeyObj);
\r
199 * Returns the blogs entry with the UUID in the group.
\r
201 * @param uuid the UUID of blogs entry
\r
202 * @param groupId the group id of the blogs entry
\r
203 * @return the blogs entry
\r
204 * @throws PortalException if a blogs entry with the UUID in the group could not be found
\r
205 * @throws SystemException if a system exception occurred
\r
207 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
\r
208 java.lang.String uuid, long groupId)
\r
209 throws com.liferay.portal.kernel.exception.PortalException,
\r
210 com.liferay.portal.kernel.exception.SystemException {
\r
211 return getService().getBlogsEntryByUuidAndGroupId(uuid, groupId);
\r
215 * Returns a range of all the blogs entries.
\r
218 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
\r
221 * @param start the lower bound of the range of blogs entries
\r
222 * @param end the upper bound of the range of blogs entries (not inclusive)
\r
223 * @return the range of blogs entries
\r
224 * @throws SystemException if a system exception occurred
\r
226 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
\r
227 int start, int end)
\r
228 throws com.liferay.portal.kernel.exception.SystemException {
\r
229 return getService().getBlogsEntries(start, end);
\r
233 * Returns the number of blogs entries.
\r
235 * @return the number of blogs entries
\r
236 * @throws SystemException if a system exception occurred
\r
238 public static int getBlogsEntriesCount()
\r
239 throws com.liferay.portal.kernel.exception.SystemException {
\r
240 return getService().getBlogsEntriesCount();
\r
244 * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
\r
246 * @param blogsEntry the blogs entry
\r
247 * @return the blogs entry that was updated
\r
248 * @throws SystemException if a system exception occurred
\r
250 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
\r
251 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
\r
252 throws com.liferay.portal.kernel.exception.SystemException {
\r
253 return getService().updateBlogsEntry(blogsEntry);
\r
257 * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
\r
259 * @param blogsEntry the blogs entry
\r
260 * @param merge whether to merge the blogs entry with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
\r
261 * @return the blogs entry that was updated
\r
262 * @throws SystemException if a system exception occurred
\r
264 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
\r
265 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
\r
266 throws com.liferay.portal.kernel.exception.SystemException {
\r
267 return getService().updateBlogsEntry(blogsEntry, merge);
\r
271 * Returns the Spring bean ID for this bean.
\r
273 * @return the Spring bean ID for this bean
\r
275 public static java.lang.String getBeanIdentifier() {
\r
276 return getService().getBeanIdentifier();
\r
280 * Sets the Spring bean ID for this bean.
\r
282 * @param beanIdentifier the Spring bean ID for this bean
\r
284 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
\r
285 getService().setBeanIdentifier(beanIdentifier);
\r
288 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
\r
289 long userId, java.lang.String title, java.lang.String description,
\r
290 java.lang.String content, int displayDateMonth, int displayDateDay,
\r
291 int displayDateYear, int displayDateHour, int displayDateMinute,
\r
292 boolean allowPingbacks, boolean allowTrackbacks,
\r
293 java.lang.String[] trackbacks, boolean smallImage,
\r
294 java.lang.String smallImageURL, java.lang.String smallImageFileName,
\r
295 java.io.InputStream smallImageInputStream,
\r
296 com.liferay.portal.service.ServiceContext serviceContext)
\r
297 throws com.liferay.portal.kernel.exception.PortalException,
\r
298 com.liferay.portal.kernel.exception.SystemException {
\r
299 return getService()
\r
300 .addEntry(userId, title, description, content,
\r
301 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
\r
302 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
\r
303 smallImage, smallImageURL, smallImageFileName,
\r
304 smallImageInputStream, serviceContext);
\r
307 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
\r
308 long userId, long groupId, java.lang.String title, java.lang.String description,
\r
309 java.lang.String content, int displayDateMonth, int displayDateDay,
\r
310 int displayDateYear, int displayDateHour, int displayDateMinute,
\r
311 boolean allowPingbacks, boolean allowTrackbacks,
\r
312 java.lang.String[] trackbacks, boolean smallImage,
\r
313 java.lang.String smallImageURL, java.lang.String smallImageFileName,
\r
314 java.io.InputStream smallImageInputStream,
\r
315 com.liferay.portal.service.ServiceContext serviceContext)
\r
316 throws com.liferay.portal.kernel.exception.PortalException,
\r
317 com.liferay.portal.kernel.exception.SystemException {
\r
318 return getService()
\r
319 .addEntry(userId, groupId, title, description, content,
\r
320 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
\r
321 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
\r
322 smallImage, smallImageURL, smallImageFileName,
\r
323 smallImageInputStream, serviceContext);
\r
326 public static void addEntryResources(
\r
327 com.liferay.portlet.blogs.model.BlogsEntry entry,
\r
328 boolean addGroupPermissions, boolean addGuestPermissions)
\r
329 throws com.liferay.portal.kernel.exception.PortalException,
\r
330 com.liferay.portal.kernel.exception.SystemException {
\r
332 .addEntryResources(entry, addGroupPermissions, addGuestPermissions);
\r
335 public static void addEntryResources(
\r
336 com.liferay.portlet.blogs.model.BlogsEntry entry,
\r
337 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
\r
338 throws com.liferay.portal.kernel.exception.PortalException,
\r
339 com.liferay.portal.kernel.exception.SystemException {
\r
340 getService().addEntryResources(entry, groupPermissions, guestPermissions);
\r
343 public static void addEntryResources(long entryId,
\r
344 boolean addGroupPermissions, boolean addGuestPermissions)
\r
345 throws com.liferay.portal.kernel.exception.PortalException,
\r
346 com.liferay.portal.kernel.exception.SystemException {
\r
348 .addEntryResources(entryId, addGroupPermissions, addGuestPermissions);
\r
351 public static void addEntryResources(long entryId,
\r
352 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
\r
353 throws com.liferay.portal.kernel.exception.PortalException,
\r
354 com.liferay.portal.kernel.exception.SystemException {
\r
356 .addEntryResources(entryId, groupPermissions, guestPermissions);
\r
359 public static void checkEntries()
\r
360 throws com.liferay.portal.kernel.exception.PortalException,
\r
361 com.liferay.portal.kernel.exception.SystemException {
\r
362 getService().checkEntries();
\r
365 public static void deleteEntries(long groupId)
\r
366 throws com.liferay.portal.kernel.exception.PortalException,
\r
367 com.liferay.portal.kernel.exception.SystemException {
\r
368 getService().deleteEntries(groupId);
\r
371 public static void deleteEntry(
\r
372 com.liferay.portlet.blogs.model.BlogsEntry entry)
\r
373 throws com.liferay.portal.kernel.exception.PortalException,
\r
374 com.liferay.portal.kernel.exception.SystemException {
\r
375 getService().deleteEntry(entry);
\r
378 public static void deleteEntry(long entryId)
\r
379 throws com.liferay.portal.kernel.exception.PortalException,
\r
380 com.liferay.portal.kernel.exception.SystemException {
\r
381 getService().deleteEntry(entryId);
\r
384 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
\r
385 long companyId, java.util.Date displayDate, int status, int start,
\r
386 int end) throws com.liferay.portal.kernel.exception.SystemException {
\r
387 return getService()
\r
388 .getCompanyEntries(companyId, displayDate, status, start, end);
\r
391 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
\r
392 long companyId, java.util.Date displayDate, int status, int start,
\r
393 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
\r
394 throws com.liferay.portal.kernel.exception.SystemException {
\r
395 return getService()
\r
396 .getCompanyEntries(companyId, displayDate, status, start,
\r
400 public static int getCompanyEntriesCount(long companyId,
\r
401 java.util.Date displayDate, int status)
\r
402 throws com.liferay.portal.kernel.exception.SystemException {
\r
403 return getService()
\r
404 .getCompanyEntriesCount(companyId, displayDate, status);
\r
407 public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
\r
409 throws com.liferay.portal.kernel.exception.PortalException,
\r
410 com.liferay.portal.kernel.exception.SystemException {
\r
411 return getService().getEntriesPrevAndNext(entryId);
\r
414 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
\r
416 throws com.liferay.portal.kernel.exception.PortalException,
\r
417 com.liferay.portal.kernel.exception.SystemException {
\r
418 return getService().getEntry(entryId);
\r
421 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
\r
422 long groupId, java.lang.String urlTitle)
\r
423 throws com.liferay.portal.kernel.exception.PortalException,
\r
424 com.liferay.portal.kernel.exception.SystemException {
\r
425 return getService().getEntry(groupId, urlTitle);
\r
428 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
\r
429 long groupId, java.util.Date displayDate, int status, int start, int end)
\r
430 throws com.liferay.portal.kernel.exception.SystemException {
\r
431 return getService()
\r
432 .getGroupEntries(groupId, displayDate, status, start, end);
\r
435 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
\r
436 long groupId, java.util.Date displayDate, int status, int start,
\r
437 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
\r
438 throws com.liferay.portal.kernel.exception.SystemException {
\r
439 return getService()
\r
440 .getGroupEntries(groupId, displayDate, status, start, end,
\r
444 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
\r
445 long groupId, int status, int start, int end)
\r
446 throws com.liferay.portal.kernel.exception.SystemException {
\r
447 return getService().getGroupEntries(groupId, status, start, end);
\r
450 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
\r
451 long groupId, int status, int start, int end,
\r
452 com.liferay.portal.kernel.util.OrderByComparator obc)
\r
453 throws com.liferay.portal.kernel.exception.SystemException {
\r
454 return getService().getGroupEntries(groupId, status, start, end, obc);
\r
457 public static int getGroupEntriesCount(long groupId,
\r
458 java.util.Date displayDate, int status)
\r
459 throws com.liferay.portal.kernel.exception.SystemException {
\r
460 return getService().getGroupEntriesCount(groupId, displayDate, status);
\r
463 public static int getGroupEntriesCount(long groupId, int status)
\r
464 throws com.liferay.portal.kernel.exception.SystemException {
\r
465 return getService().getGroupEntriesCount(groupId, status);
\r
468 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
\r
469 long companyId, long groupId, java.util.Date displayDate, int status,
\r
470 int start, int end)
\r
471 throws com.liferay.portal.kernel.exception.SystemException {
\r
472 return getService()
\r
473 .getGroupsEntries(companyId, groupId, displayDate, status,
\r
477 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
\r
478 long groupId, long userId, java.util.Date displayDate, int status,
\r
479 int start, int end)
\r
480 throws com.liferay.portal.kernel.exception.SystemException {
\r
481 return getService()
\r
482 .getGroupUserEntries(groupId, userId, displayDate, status,
\r
486 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
\r
487 long groupId, long userId, java.util.Date displayDate, int status,
\r
488 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
\r
489 throws com.liferay.portal.kernel.exception.SystemException {
\r
490 return getService()
\r
491 .getGroupUserEntries(groupId, userId, displayDate, status,
\r
495 public static int getGroupUserEntriesCount(long groupId, long userId,
\r
496 java.util.Date displayDate, int status)
\r
497 throws com.liferay.portal.kernel.exception.SystemException {
\r
498 return getService()
\r
499 .getGroupUserEntriesCount(groupId, userId, displayDate,
\r
503 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
\r
504 throws com.liferay.portal.kernel.exception.SystemException {
\r
505 return getService().getNoAssetEntries();
\r
508 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
\r
509 long organizationId, java.util.Date displayDate, int status, int start,
\r
510 int end) throws com.liferay.portal.kernel.exception.SystemException {
\r
511 return getService()
\r
512 .getOrganizationEntries(organizationId, displayDate, status,
\r
516 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
\r
517 long organizationId, java.util.Date displayDate, int status, int start,
\r
518 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
\r
519 throws com.liferay.portal.kernel.exception.SystemException {
\r
520 return getService()
\r
521 .getOrganizationEntries(organizationId, displayDate, status,
\r
525 public static int getOrganizationEntriesCount(long organizationId,
\r
526 java.util.Date displayDate, int status)
\r
527 throws com.liferay.portal.kernel.exception.SystemException {
\r
528 return getService()
\r
529 .getOrganizationEntriesCount(organizationId, displayDate,
\r
533 public static void subscribe(long userId, long groupId)
\r
534 throws com.liferay.portal.kernel.exception.PortalException,
\r
535 com.liferay.portal.kernel.exception.SystemException {
\r
536 getService().subscribe(userId, groupId);
\r
539 public static void unsubscribe(long userId, long groupId)
\r
540 throws com.liferay.portal.kernel.exception.PortalException,
\r
541 com.liferay.portal.kernel.exception.SystemException {
\r
542 getService().unsubscribe(userId, groupId);
\r
545 public static void updateAsset(long userId,
\r
546 com.liferay.portlet.blogs.model.BlogsEntry entry,
\r
547 long[] assetCategoryIds, java.lang.String[] assetTagNames,
\r
548 long[] assetLinkEntryIds)
\r
549 throws com.liferay.portal.kernel.exception.PortalException,
\r
550 com.liferay.portal.kernel.exception.SystemException {
\r
552 .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
\r
553 assetLinkEntryIds);
\r
556 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
\r
557 long userId, long entryId, java.lang.String title,
\r
558 java.lang.String description, java.lang.String content,
\r
559 int displayDateMonth, int displayDateDay, int displayDateYear,
\r
560 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
\r
561 boolean allowTrackbacks, java.lang.String[] trackbacks,
\r
562 boolean smallImage, java.lang.String smallImageURL,
\r
563 java.lang.String smallImageFileName,
\r
564 java.io.InputStream smallImageInputStream,
\r
565 com.liferay.portal.service.ServiceContext serviceContext)
\r
566 throws com.liferay.portal.kernel.exception.PortalException,
\r
567 com.liferay.portal.kernel.exception.SystemException {
\r
568 return getService()
\r
569 .updateEntry(userId, entryId, title, description, content,
\r
570 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
\r
571 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
\r
572 smallImage, smallImageURL, smallImageFileName,
\r
573 smallImageInputStream, serviceContext);
\r
576 public static void updateEntryResources(
\r
577 com.liferay.portlet.blogs.model.BlogsEntry entry,
\r
578 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
\r
579 throws com.liferay.portal.kernel.exception.PortalException,
\r
580 com.liferay.portal.kernel.exception.SystemException {
\r
582 .updateEntryResources(entry, groupPermissions, guestPermissions);
\r
585 public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
\r
586 long userId, long entryId, int status,
\r
587 com.liferay.portal.service.ServiceContext serviceContext)
\r
588 throws com.liferay.portal.kernel.exception.PortalException,
\r
589 com.liferay.portal.kernel.exception.SystemException {
\r
590 return getService().updateStatus(userId, entryId, status, serviceContext);
\r
593 public static com.liferay.portal.kernel.search.Hits search(long companyId,
\r
594 long groupId, long userId, long ownerUserId, java.lang.String keywords,
\r
595 int start, int end) throws com.liferay.portal.kernel.exception.SystemException {
\r
596 return getService()
\r
597 .search(companyId, groupId, userId, ownerUserId, keywords,
\r
601 public static com.liferay.portal.kernel.search.Hits searchByDate(long companyId,
\r
602 long groupId, long userId, long ownerUserId, java.lang.String keywords,
\r
603 int start, int end) throws com.liferay.portal.kernel.exception.SystemException {
\r
604 return getService()
\r
605 .searchByDate(companyId, groupId, userId, ownerUserId, keywords,
\r
609 public static List<BlogsEntryHeader> getBlogsEntryHeadersByGroupIdList(List<Long> groupIdList)
\r
610 throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException {
\r
611 return getService().getBlogsEntryHeadersByGroupIdList(groupIdList);
\r
614 public static BlogsEntryLocalService getService() {
\r
615 if (_service == null) {
\r
616 _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
\r
618 ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
\r
628 public void setService(BlogsEntryLocalService service) {
\r
631 private static BlogsEntryLocalService _service;
\r