com.liferay.portlet.blogs.service.impl
Class BlogsEntryLocalServiceImpl

java.lang.Object
  extended bycom.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
      extended bycom.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.blogs.service.BlogsEntryLocalService

public class BlogsEntryLocalServiceImpl
extends BlogsEntryLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Wilson S. Man

Constructor Summary
BlogsEntryLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId, long plid, long categoryId, java.lang.String title, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, com.liferay.portal.theme.ThemeDisplay themeDisplay, java.lang.String[] tagsEntries, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId, long plid, long categoryId, java.lang.String title, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, com.liferay.portal.theme.ThemeDisplay themeDisplay, java.lang.String[] tagsEntries, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId, long plid, long categoryId, java.lang.String title, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, com.liferay.portal.theme.ThemeDisplay themeDisplay, java.lang.String[] tagsEntries, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addEntryResources(com.liferay.portlet.blogs.model.BlogsEntry entry, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEntryResources(com.liferay.portlet.blogs.model.BlogsEntry entry, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addEntryResources(long entryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEntryResources(long entryId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteEntries(long groupId)
           
 void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
           
 void deleteEntry(long entryId)
           
 int getCategoriesEntriesCount(java.util.List categoryIds)
           
protected  long getCategoryId(long companyId, long categoryId)
           
 java.util.List getCompanyEntries(long companyId, int begin, int end)
           
 java.util.List getCompanyEntries(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getCompanyEntriesCount(long companyId)
           
 java.util.List getEntries(long categoryId, int begin, int end)
           
 int getEntriesCount(long categoryId)
           
 com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
           
 com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId, java.lang.String urlTitle)
           
 java.util.List getGroupEntries(long groupId, int begin, int end)
           
 java.util.List getGroupEntries(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getGroupEntriesCount(long groupId)
           
 java.util.List getGroupUserEntries(long groupId, long userId, int begin, int end)
           
 int getGroupUserEntriesCount(long groupId, long userId)
           
 java.util.List getNoAssetEntries()
           
 java.util.List getOrganizationEntries(long organizationId, int begin, int end)
           
 int getOrganizationEntriesCount(long organizationId)
           
protected  java.lang.String getUniqueUrlTitle(long entryId, long groupId, java.lang.String title)
           
 java.lang.String getUrlTitle(long entryId, java.lang.String title)
           
protected  void pingGoogle(com.liferay.portlet.blogs.model.BlogsEntry entry, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 void reIndex(java.lang.String[] ids)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long userId, long[] categoryIds, java.lang.String keywords)
           
 com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId, long entryId, long categoryId, java.lang.String title, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, com.liferay.portal.theme.ThemeDisplay themeDisplay, java.lang.String[] tagsEntries)
           
 void updateTagsAsset(long userId, com.liferay.portlet.blogs.model.BlogsEntry entry, java.lang.String[] tagsEntries)
           
protected  void validate(java.lang.String title, java.lang.String content)
           
 
Methods inherited from class com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
addBlogsEntry, dynamicQuery, dynamicQuery, updateBlogsEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogsEntryLocalServiceImpl

public BlogsEntryLocalServiceImpl()
Method Detail

addEntry

public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
                                                           long plid,
                                                           long categoryId,
                                                           java.lang.String title,
                                                           java.lang.String content,
                                                           int displayDateMonth,
                                                           int displayDateDay,
                                                           int displayDateYear,
                                                           int displayDateHour,
                                                           int displayDateMinute,
                                                           com.liferay.portal.theme.ThemeDisplay themeDisplay,
                                                           java.lang.String[] tagsEntries,
                                                           boolean addCommunityPermissions,
                                                           boolean addGuestPermissions)
                                                    throws com.liferay.portal.PortalException,
                                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEntry

public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
                                                           long plid,
                                                           long categoryId,
                                                           java.lang.String title,
                                                           java.lang.String content,
                                                           int displayDateMonth,
                                                           int displayDateDay,
                                                           int displayDateYear,
                                                           int displayDateHour,
                                                           int displayDateMinute,
                                                           com.liferay.portal.theme.ThemeDisplay themeDisplay,
                                                           java.lang.String[] tagsEntries,
                                                           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

addEntry

public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
                                                           long plid,
                                                           long categoryId,
                                                           java.lang.String title,
                                                           java.lang.String content,
                                                           int displayDateMonth,
                                                           int displayDateDay,
                                                           int displayDateYear,
                                                           int displayDateHour,
                                                           int displayDateMinute,
                                                           com.liferay.portal.theme.ThemeDisplay themeDisplay,
                                                           java.lang.String[] tagsEntries,
                                                           java.lang.Boolean addCommunityPermissions,
                                                           java.lang.Boolean addGuestPermissions,
                                                           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 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 void addEntryResources(com.liferay.portlet.blogs.model.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 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 void addEntryResources(com.liferay.portlet.blogs.model.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 void deleteEntries(long groupId)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteEntry

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

deleteEntry

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

getCategoriesEntriesCount

public int getCategoriesEntriesCount(java.util.List categoryIds)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntries

public java.util.List getCompanyEntries(long companyId,
                                        int begin,
                                        int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntries

public java.util.List getCompanyEntries(long companyId,
                                        int begin,
                                        int end,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntriesCount

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

getEntries

public java.util.List getEntries(long categoryId,
                                 int begin,
                                 int end)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getEntriesCount

public int getEntriesCount(long categoryId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getEntry

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

getEntry

public com.liferay.portlet.blogs.model.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 java.util.List getGroupEntries(long groupId,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntries

public java.util.List getGroupEntries(long groupId,
                                      int begin,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntriesCount

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

getGroupUserEntries

public java.util.List getGroupUserEntries(long groupId,
                                          long userId,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntriesCount

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

getNoAssetEntries

public java.util.List getNoAssetEntries()
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationEntries

public java.util.List getOrganizationEntries(long organizationId,
                                             int begin,
                                             int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationEntriesCount

public int getOrganizationEntriesCount(long organizationId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUrlTitle

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

reIndex

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

search

public com.liferay.portal.kernel.search.Hits search(long companyId,
                                                    long groupId,
                                                    long userId,
                                                    long[] categoryIds,
                                                    java.lang.String keywords)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateEntry

public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
                                                              long entryId,
                                                              long categoryId,
                                                              java.lang.String title,
                                                              java.lang.String content,
                                                              int displayDateMonth,
                                                              int displayDateDay,
                                                              int displayDateYear,
                                                              int displayDateHour,
                                                              int displayDateMinute,
                                                              com.liferay.portal.theme.ThemeDisplay themeDisplay,
                                                              java.lang.String[] tagsEntries)
                                                       throws com.liferay.portal.PortalException,
                                                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateTagsAsset

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

getCategoryId

protected long getCategoryId(long companyId,
                             long categoryId)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUniqueUrlTitle

protected java.lang.String getUniqueUrlTitle(long entryId,
                                             long groupId,
                                             java.lang.String title)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

pingGoogle

protected void pingGoogle(com.liferay.portlet.blogs.model.BlogsEntry entry,
                          com.liferay.portal.theme.ThemeDisplay themeDisplay)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(java.lang.String title,
                        java.lang.String content)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException