Liferay 7.0-ce-b4

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

java.lang.Object
  extended by com.liferay.portal.service.BaseServiceImpl
      extended by com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
          extended by com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseService, BlogsEntryService

public class BlogsEntryServiceImpl
extends BlogsEntryServiceBaseImpl

Provides the remote service for accessing, adding, deleting, subscription handling of, trash handling of, and updating blog entries. Its methods include permission checks.


Field Summary
 
Fields inherited from class com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, blogsStatsUserFinder, blogsStatsUserLocalService, blogsStatsUserPersistence, companyLocalService, companyPersistence, companyService, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, subscriptionLocalService, subscriptionPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
BlogsEntryServiceImpl()
           
 
Method Summary
 BlogsEntry addEntry(String title, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, boolean smallImage, String smallImageURL, String smallImageFileName, InputStream smallImageInputStream, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by addEntry(String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)
 BlogsEntry addEntry(String title, String subtitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 void deleteEntry(long entryId)
           
protected  String exportToRSS(String name, String description, String type, double version, String displayStyle, String feedURL, String entryURL, List<BlogsEntry> blogsEntries, ThemeDisplay themeDisplay)
           
 List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, int status, int max)
           
 String getCompanyEntriesRSS(long companyId, Date displayDate, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 BlogsEntry getEntry(long entryId)
           
 BlogsEntry getEntry(long groupId, String urlTitle)
           
 List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, int status, int max)
           
 List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, int status, int start, int end)
           
 List<BlogsEntry> getGroupEntries(long groupId, int status, int max)
           
 List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end)
           
 List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end, OrderByComparator<BlogsEntry> obc)
           
 int getGroupEntriesCount(long groupId, Date displayDate, int status)
           
 int getGroupEntriesCount(long groupId, int status)
           
 String getGroupEntriesRSS(long groupId, Date displayDate, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, int status, int max)
           
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, int status, int start, int end, OrderByComparator<BlogsEntry> obc)
           
 int getGroupUserEntriesCount(long groupId, long userId, int status)
           
 List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, int status, int max)
           
 String getOrganizationEntriesRSS(long organizationId, Date displayDate, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 BlogsEntry moveEntryToTrash(long entryId)
           
 void restoreEntryFromTrash(long entryId)
           
 void subscribe(long groupId)
           
 void unsubscribe(long groupId)
           
 BlogsEntry updateEntry(long entryId, String title, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, boolean smallImage, String smallImageURL, String smallImageFileName, InputStream smallImageInputStream, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateEntry(long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)
 BlogsEntry updateEntry(long entryId, String title, String subtitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
afterPropertiesSet, destroy, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getBlogsStatsUserFinder, getBlogsStatsUserLocalService, getBlogsStatsUserPersistence, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getModelClass, getModelClassName, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOSGiServiceIdentifier, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setBlogsStatsUserFinder, setBlogsStatsUserLocalService, setBlogsStatsUserPersistence, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogsEntryServiceImpl

public BlogsEntryServiceImpl()
Method Detail

addEntry

@Deprecated
public BlogsEntry addEntry(String title,
                                      String description,
                                      String content,
                                      int displayDateMonth,
                                      int displayDateDay,
                                      int displayDateYear,
                                      int displayDateHour,
                                      int displayDateMinute,
                                      boolean allowPingbacks,
                                      boolean allowTrackbacks,
                                      String[] trackbacks,
                                      boolean smallImage,
                                      String smallImageURL,
                                      String smallImageFileName,
                                      InputStream smallImageInputStream,
                                      ServiceContext serviceContext)
                    throws PortalException
Deprecated. As of 7.0.0, replaced by addEntry(String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)

Throws:
PortalException

addEntry

public BlogsEntry addEntry(String title,
                           String subtitle,
                           String description,
                           String content,
                           int displayDateMonth,
                           int displayDateDay,
                           int displayDateYear,
                           int displayDateHour,
                           int displayDateMinute,
                           boolean allowPingbacks,
                           boolean allowTrackbacks,
                           String[] trackbacks,
                           String coverImageCaption,
                           ImageSelector coverImageImageSelector,
                           ImageSelector smallImageImageSelector,
                           ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

deleteEntry

public void deleteEntry(long entryId)
                 throws PortalException
Throws:
PortalException

getCompanyEntries

public List<BlogsEntry> getCompanyEntries(long companyId,
                                          Date displayDate,
                                          int status,
                                          int max)
                                   throws PortalException
Throws:
PortalException

getCompanyEntriesRSS

public String getCompanyEntriesRSS(long companyId,
                                   Date displayDate,
                                   int status,
                                   int max,
                                   String type,
                                   double version,
                                   String displayStyle,
                                   String feedURL,
                                   String entryURL,
                                   ThemeDisplay themeDisplay)
                            throws PortalException
Throws:
PortalException

getEntry

public BlogsEntry getEntry(long entryId)
                    throws PortalException
Throws:
PortalException

getEntry

public BlogsEntry getEntry(long groupId,
                           String urlTitle)
                    throws PortalException
Throws:
PortalException

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        Date displayDate,
                                        int status,
                                        int max)

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        Date displayDate,
                                        int status,
                                        int start,
                                        int end)

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        int status,
                                        int max)

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        int status,
                                        int start,
                                        int end)

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator<BlogsEntry> obc)

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                Date displayDate,
                                int status)

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                int status)

getGroupEntriesRSS

public String getGroupEntriesRSS(long groupId,
                                 Date displayDate,
                                 int status,
                                 int max,
                                 String type,
                                 double version,
                                 String displayStyle,
                                 String feedURL,
                                 String entryURL,
                                 ThemeDisplay themeDisplay)
                          throws PortalException
Throws:
PortalException

getGroupsEntries

public List<BlogsEntry> getGroupsEntries(long companyId,
                                         long groupId,
                                         Date displayDate,
                                         int status,
                                         int max)
                                  throws PortalException
Throws:
PortalException

getGroupUserEntries

public List<BlogsEntry> getGroupUserEntries(long groupId,
                                            long userId,
                                            int status,
                                            int start,
                                            int end,
                                            OrderByComparator<BlogsEntry> obc)

getGroupUserEntriesCount

public int getGroupUserEntriesCount(long groupId,
                                    long userId,
                                    int status)

getOrganizationEntries

public List<BlogsEntry> getOrganizationEntries(long organizationId,
                                               Date displayDate,
                                               int status,
                                               int max)
                                        throws PortalException
Throws:
PortalException

getOrganizationEntriesRSS

public String getOrganizationEntriesRSS(long organizationId,
                                        Date displayDate,
                                        int status,
                                        int max,
                                        String type,
                                        double version,
                                        String displayStyle,
                                        String feedURL,
                                        String entryURL,
                                        ThemeDisplay themeDisplay)
                                 throws PortalException
Throws:
PortalException

moveEntryToTrash

public BlogsEntry moveEntryToTrash(long entryId)
                            throws PortalException
Throws:
PortalException

restoreEntryFromTrash

public void restoreEntryFromTrash(long entryId)
                           throws PortalException
Throws:
PortalException

subscribe

public void subscribe(long groupId)
               throws PortalException
Throws:
PortalException

unsubscribe

public void unsubscribe(long groupId)
                 throws PortalException
Throws:
PortalException

updateEntry

@Deprecated
public BlogsEntry updateEntry(long entryId,
                                         String title,
                                         String description,
                                         String content,
                                         int displayDateMonth,
                                         int displayDateDay,
                                         int displayDateYear,
                                         int displayDateHour,
                                         int displayDateMinute,
                                         boolean allowPingbacks,
                                         boolean allowTrackbacks,
                                         String[] trackbacks,
                                         boolean smallImage,
                                         String smallImageURL,
                                         String smallImageFileName,
                                         InputStream smallImageInputStream,
                                         ServiceContext serviceContext)
                       throws PortalException
Deprecated. As of 7.0.0, replaced by updateEntry(long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)

Throws:
PortalException

updateEntry

public BlogsEntry updateEntry(long entryId,
                              String title,
                              String subtitle,
                              String description,
                              String content,
                              int displayDateMonth,
                              int displayDateDay,
                              int displayDateYear,
                              int displayDateHour,
                              int displayDateMinute,
                              boolean allowPingbacks,
                              boolean allowTrackbacks,
                              String[] trackbacks,
                              String coverImageCaption,
                              ImageSelector coverImageImageSelector,
                              ImageSelector smallImageImageSelector,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

exportToRSS

protected String exportToRSS(String name,
                             String description,
                             String type,
                             double version,
                             String displayStyle,
                             String feedURL,
                             String entryURL,
                             List<BlogsEntry> blogsEntries,
                             ThemeDisplay themeDisplay)

Liferay 7.0-ce-b4