com.liferay.portlet.blogs.service
Interface BlogsEntryLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface BlogsEntryLocalService

View Source

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

This interface defines the service. The default implementation is com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

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.

Author:
Brian Wing Shun Chan
See Also:
BlogsEntryLocalServiceUtil

Method Summary
 BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
           
 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)
           
 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)
           
 void addEntryResources(BlogsEntry entry, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEntryResources(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)
           
 BlogsEntry createBlogsEntry(long entryId)
           
 void deleteBlogsEntry(BlogsEntry blogsEntry)
           
 void deleteBlogsEntry(long entryId)
           
 void deleteEntries(long groupId)
           
 void deleteEntry(BlogsEntry entry)
           
 void deleteEntry(long entryId)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List<BlogsEntry> getBlogsEntries(int start, int end)
           
 int getBlogsEntriesCount()
           
 BlogsEntry getBlogsEntry(long entryId)
           
 java.util.List<BlogsEntry> getCompanyEntries(long companyId, boolean draft, int start, int end)
           
 java.util.List<BlogsEntry> getCompanyEntries(long companyId, boolean draft, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<BlogsEntry> getCompanyEntries(long companyId, int start, int end)
           
 java.util.List<BlogsEntry> getCompanyEntries(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getCompanyEntriesCount(long companyId)
           
 int getCompanyEntriesCount(long companyId, boolean draft)
           
 BlogsEntry[] getEntriesPrevAndNext(long entryId)
           
 BlogsEntry getEntry(long entryId)
           
 BlogsEntry getEntry(long groupId, java.lang.String urlTitle)
           
 java.util.List<BlogsEntry> getGroupEntries(long groupId, boolean draft, int start, int end)
           
 java.util.List<BlogsEntry> getGroupEntries(long groupId, boolean draft, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<BlogsEntry> getGroupEntries(long groupId, int start, int end)
           
 java.util.List<BlogsEntry> getGroupEntries(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getGroupEntriesCount(long groupId)
           
 int getGroupEntriesCount(long groupId, boolean draft)
           
 java.util.List<BlogsEntry> getGroupUserEntries(long groupId, long userId, boolean draft, int start, int end)
           
 java.util.List<BlogsEntry> getGroupUserEntries(long groupId, long userId, boolean draft, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<BlogsEntry> getGroupUserEntries(long groupId, long userId, int start, int end)
           
 java.util.List<BlogsEntry> getGroupUserEntries(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getGroupUserEntriesCount(long groupId, long userId)
           
 int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
           
 java.util.List<BlogsEntry> getNoAssetEntries()
           
 java.util.List<BlogsEntry> getOrganizationEntries(long organizationId, boolean draft, int start, int end)
           
 int getOrganizationEntriesCount(long organizationId, boolean draft)
           
 java.lang.String getUrlTitle(long entryId, java.lang.String title)
           
 void reIndex(long entryId)
           
 void reIndex(java.lang.String[] ids)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long userId, long ownerUserId, java.lang.String keywords, int start, int end)
           
 BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
           
 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)
           
 void updateTagsAsset(long userId, BlogsEntry entry, java.lang.String[] tagsEntries)
           
 

Method Detail

addBlogsEntry

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

createBlogsEntry

BlogsEntry createBlogsEntry(long entryId)

deleteBlogsEntry

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

deleteBlogsEntry

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

dynamicQuery

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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry getBlogsEntry(long entryId)
                         throws com.liferay.portal.SystemException,
                                com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getBlogsEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<BlogsEntry> getBlogsEntries(int start,
                                                         int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getBlogsEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getBlogsEntriesCount()
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateBlogsEntry

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

addEntry

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

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

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

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

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

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

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

deleteEntry

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

deleteEntry

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

getCompanyEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<BlogsEntry> getCompanyEntries(long companyId,
                                                           int start,
                                                           int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<BlogsEntry> getCompanyEntries(long companyId,
                                                           boolean draft,
                                                           int start,
                                                           int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyEntriesCount(long companyId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyEntriesCount(long companyId,
                                         boolean draft)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getEntriesPrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry[] getEntriesPrevAndNext(long entryId)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry getEntry(long entryId)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<BlogsEntry> getGroupEntries(long groupId,
                                                         int start,
                                                         int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<BlogsEntry> getGroupEntries(long groupId,
                                                         boolean draft,
                                                         int start,
                                                         int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupEntriesCount(long groupId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupEntriesCount(long groupId,
                                       boolean draft)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<BlogsEntry> getGroupUserEntries(long groupId,
                                                             long userId,
                                                             int start,
                                                             int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupUserEntriesCount(long groupId,
                                           long userId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupUserEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupUserEntriesCount(long groupId,
                                           long userId,
                                           boolean draft)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getNoAssetEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<BlogsEntry> getNoAssetEntries()
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<BlogsEntry> getOrganizationEntries(long organizationId,
                                                                boolean draft,
                                                                int start,
                                                                int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getOrganizationEntriesCount(long organizationId,
                                              boolean draft)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUrlTitle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.lang.String getUrlTitle(long entryId,
                                           java.lang.String title)

reIndex

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

reIndex

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

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

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