com.liferay.portlet.blogs.service
Class BlogsEntryLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil

public class BlogsEntryLocalServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portlet.blogs.service.BlogsEntryLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

Author:
Brian Wing Shun Chan
See Also:
BlogsEntryLocalService

Constructor Summary
BlogsEntryLocalServiceUtil()
           
 
Method Summary
static BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
           
static BlogsEntry addEntry(long userId, java.lang.String title, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks, ServiceContext serviceContext)
           
static BlogsEntry addEntry(java.lang.String uuid, long userId, java.lang.String title, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks, ServiceContext serviceContext)
           
static void addEntryResources(BlogsEntry entry, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addEntryResources(BlogsEntry entry, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addEntryResources(long entryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addEntryResources(long entryId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static BlogsEntry createBlogsEntry(long entryId)
           
static void deleteBlogsEntry(BlogsEntry blogsEntry)
           
static void deleteBlogsEntry(long entryId)
           
static void deleteEntries(long groupId)
           
static void deleteEntry(BlogsEntry entry)
           
static void deleteEntry(long entryId)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static java.util.List<BlogsEntry> getBlogsEntries(int start, int end)
           
static int getBlogsEntriesCount()
           
static BlogsEntry getBlogsEntry(long entryId)
           
static java.util.List<BlogsEntry> getCompanyEntries(long companyId, boolean draft, int start, int end)
           
static java.util.List<BlogsEntry> getCompanyEntries(long companyId, boolean draft, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<BlogsEntry> getCompanyEntries(long companyId, int start, int end)
           
static java.util.List<BlogsEntry> getCompanyEntries(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getCompanyEntriesCount(long companyId)
           
static int getCompanyEntriesCount(long companyId, boolean draft)
           
static BlogsEntry[] getEntriesPrevAndNext(long entryId)
           
static BlogsEntry getEntry(long entryId)
           
static BlogsEntry getEntry(long groupId, java.lang.String urlTitle)
           
static java.util.List<BlogsEntry> getGroupEntries(long groupId, boolean draft, int start, int end)
           
static java.util.List<BlogsEntry> getGroupEntries(long groupId, boolean draft, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<BlogsEntry> getGroupEntries(long groupId, int start, int end)
           
static java.util.List<BlogsEntry> getGroupEntries(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getGroupEntriesCount(long groupId)
           
static int getGroupEntriesCount(long groupId, boolean draft)
           
static java.util.List<BlogsEntry> getGroupUserEntries(long groupId, long userId, boolean draft, int start, int end)
           
static java.util.List<BlogsEntry> getGroupUserEntries(long groupId, long userId, boolean draft, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<BlogsEntry> getGroupUserEntries(long groupId, long userId, int start, int end)
           
static java.util.List<BlogsEntry> getGroupUserEntries(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getGroupUserEntriesCount(long groupId, long userId)
           
static int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
           
static java.util.List<BlogsEntry> getNoAssetEntries()
           
static java.util.List<BlogsEntry> getOrganizationEntries(long organizationId, boolean draft, int start, int end)
           
static int getOrganizationEntriesCount(long organizationId, boolean draft)
           
static BlogsEntryLocalService getService()
           
static java.lang.String getUrlTitle(long entryId, java.lang.String title)
           
static void reIndex(long entryId)
           
static void reIndex(java.lang.String[] ids)
           
static com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long userId, long ownerUserId, java.lang.String keywords, int start, int end)
           
 void setService(BlogsEntryLocalService service)
           
static BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
           
static BlogsEntry updateEntry(long userId, long entryId, java.lang.String title, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks, ServiceContext serviceContext)
           
static void updateTagsAsset(long userId, BlogsEntry entry, java.lang.String[] tagsEntries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogsEntryLocalServiceUtil

public BlogsEntryLocalServiceUtil()
Method Detail

addBlogsEntry

public static BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createBlogsEntry

public static BlogsEntry createBlogsEntry(long entryId)

deleteBlogsEntry

public static void deleteBlogsEntry(long entryId)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteBlogsEntry

public static void deleteBlogsEntry(BlogsEntry blogsEntry)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getBlogsEntry

public static BlogsEntry getBlogsEntry(long entryId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getBlogsEntries

public static java.util.List<BlogsEntry> getBlogsEntries(int start,
                                                         int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getBlogsEntriesCount

public static int getBlogsEntriesCount()
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateBlogsEntry

public static BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addEntry

public static BlogsEntry addEntry(long userId,
                                  java.lang.String title,
                                  java.lang.String content,
                                  int displayDateMonth,
                                  int displayDateDay,
                                  int displayDateYear,
                                  int displayDateHour,
                                  int displayDateMinute,
                                  boolean draft,
                                  boolean allowTrackbacks,
                                  java.lang.String[] trackbacks,
                                  ServiceContext serviceContext)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEntry

public static BlogsEntry addEntry(java.lang.String uuid,
                                  long userId,
                                  java.lang.String title,
                                  java.lang.String content,
                                  int displayDateMonth,
                                  int displayDateDay,
                                  int displayDateYear,
                                  int displayDateHour,
                                  int displayDateMinute,
                                  boolean draft,
                                  boolean allowTrackbacks,
                                  java.lang.String[] trackbacks,
                                  ServiceContext serviceContext)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEntryResources

public static void addEntryResources(long entryId,
                                     boolean addCommunityPermissions,
                                     boolean addGuestPermissions)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEntryResources

public static void addEntryResources(BlogsEntry entry,
                                     boolean addCommunityPermissions,
                                     boolean addGuestPermissions)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEntryResources

public static void addEntryResources(long entryId,
                                     java.lang.String[] communityPermissions,
                                     java.lang.String[] guestPermissions)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEntryResources

public static void addEntryResources(BlogsEntry entry,
                                     java.lang.String[] communityPermissions,
                                     java.lang.String[] guestPermissions)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteEntries

public static void deleteEntries(long groupId)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteEntry

public static void deleteEntry(long entryId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteEntry

public static void deleteEntry(BlogsEntry entry)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyEntries

public static java.util.List<BlogsEntry> getCompanyEntries(long companyId,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntries

public static java.util.List<BlogsEntry> getCompanyEntries(long companyId,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntries

public static java.util.List<BlogsEntry> getCompanyEntries(long companyId,
                                                           boolean draft,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntries

public static java.util.List<BlogsEntry> getCompanyEntries(long companyId,
                                                           boolean draft,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntriesCount

public static int getCompanyEntriesCount(long companyId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntriesCount

public static int getCompanyEntriesCount(long companyId,
                                         boolean draft)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getEntriesPrevAndNext

public static BlogsEntry[] getEntriesPrevAndNext(long entryId)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getEntry

public static BlogsEntry getEntry(long entryId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getEntry

public static BlogsEntry getEntry(long groupId,
                                  java.lang.String urlTitle)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getGroupEntries

public static java.util.List<BlogsEntry> getGroupEntries(long groupId,
                                                         int start,
                                                         int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntries

public static java.util.List<BlogsEntry> getGroupEntries(long groupId,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntries

public static java.util.List<BlogsEntry> getGroupEntries(long groupId,
                                                         boolean draft,
                                                         int start,
                                                         int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntries

public static java.util.List<BlogsEntry> getGroupEntries(long groupId,
                                                         boolean draft,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntriesCount

public static int getGroupEntriesCount(long groupId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntriesCount

public static int getGroupEntriesCount(long groupId,
                                       boolean draft)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntries

public static java.util.List<BlogsEntry> getGroupUserEntries(long groupId,
                                                             long userId,
                                                             int start,
                                                             int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntries

public static java.util.List<BlogsEntry> getGroupUserEntries(long groupId,
                                                             long userId,
                                                             int start,
                                                             int end,
                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntries

public static java.util.List<BlogsEntry> getGroupUserEntries(long groupId,
                                                             long userId,
                                                             boolean draft,
                                                             int start,
                                                             int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntries

public static java.util.List<BlogsEntry> getGroupUserEntries(long groupId,
                                                             long userId,
                                                             boolean draft,
                                                             int start,
                                                             int end,
                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntriesCount

public static int getGroupUserEntriesCount(long groupId,
                                           long userId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntriesCount

public static int getGroupUserEntriesCount(long groupId,
                                           long userId,
                                           boolean draft)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getNoAssetEntries

public static java.util.List<BlogsEntry> getNoAssetEntries()
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationEntries

public static java.util.List<BlogsEntry> getOrganizationEntries(long organizationId,
                                                                boolean draft,
                                                                int start,
                                                                int end)
                                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationEntriesCount

public static int getOrganizationEntriesCount(long organizationId,
                                              boolean draft)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUrlTitle

public static java.lang.String getUrlTitle(long entryId,
                                           java.lang.String title)

reIndex

public static void reIndex(long entryId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

public static void reIndex(java.lang.String[] ids)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           long groupId,
                                                           long userId,
                                                           long ownerUserId,
                                                           java.lang.String keywords,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateEntry

public static BlogsEntry updateEntry(long userId,
                                     long entryId,
                                     java.lang.String title,
                                     java.lang.String content,
                                     int displayDateMonth,
                                     int displayDateDay,
                                     int displayDateYear,
                                     int displayDateHour,
                                     int displayDateMinute,
                                     boolean draft,
                                     boolean allowTrackbacks,
                                     java.lang.String[] trackbacks,
                                     ServiceContext serviceContext)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateTagsAsset

public static void updateTagsAsset(long userId,
                                   BlogsEntry entry,
                                   java.lang.String[] tagsEntries)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getService

public static BlogsEntryLocalService getService()

setService

public void setService(BlogsEntryLocalService service)