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

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
          extended by com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.bean.IdentifiableBean, com.liferay.portlet.blogs.service.BlogsEntryService

public class BlogsEntryServiceImpl
extends BlogsEntryServiceBaseImpl

Author:
Brian Wing Shun Chan, Mate Thurzo

Field Summary
 
Fields inherited from class com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, blogsStatsUserFinder, blogsStatsUserLocalService, blogsStatsUserPersistence, companyLocalService, companyPersistence, companyService, counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
BlogsEntryServiceImpl()
           
 
Method Summary
 com.liferay.portlet.blogs.model.BlogsEntry addEntry(java.lang.String title, java.lang.String description, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, boolean smallImage, java.lang.String smallImageURL, java.lang.String smallImageFileName, java.io.InputStream smallImageInputStream, com.liferay.portal.service.ServiceContext serviceContext)
           
 void deleteEntry(long entryId)
           
protected  java.lang.String exportToRSS(java.lang.String name, java.lang.String description, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> blogsEntries, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(long companyId, java.util.Date displayDate, int status, int max)
           
 java.lang.String getCompanyEntriesRSS(long companyId, java.util.Date displayDate, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 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<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(long groupId, java.util.Date displayDate, int status, int max)
           
 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(long groupId, java.util.Date displayDate, int status, int start, int end)
           
 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(long groupId, int status, int max)
           
 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(long groupId, int status, int start, int end)
           
 int getGroupEntriesCount(long groupId, java.util.Date displayDate, int status)
           
 int getGroupEntriesCount(long groupId, int status)
           
 java.lang.String getGroupEntriesRSS(long groupId, java.util.Date displayDate, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(long companyId, long groupId, java.util.Date displayDate, int status, int max)
           
 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(long organizationId, java.util.Date displayDate, int status, int max)
           
 java.lang.String getOrganizationEntriesRSS(long organizationId, java.util.Date displayDate, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 void subscribe(long groupId)
           
 void unsubscribe(long groupId)
           
 com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long entryId, java.lang.String title, java.lang.String description, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, boolean smallImage, java.lang.String smallImageURL, java.lang.String smallImageFileName, java.io.InputStream smallImageInputStream, com.liferay.portal.service.ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
afterPropertiesSet, destroy, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getBlogsStatsUserFinder, getBlogsStatsUserLocalService, getBlogsStatsUserPersistence, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setBlogsStatsUserFinder, setBlogsStatsUserLocalService, setBlogsStatsUserPersistence, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.service.base.PrincipalBean
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

public com.liferay.portlet.blogs.model.BlogsEntry addEntry(java.lang.String title,
                                                           java.lang.String description,
                                                           java.lang.String content,
                                                           int displayDateMonth,
                                                           int displayDateDay,
                                                           int displayDateYear,
                                                           int displayDateHour,
                                                           int displayDateMinute,
                                                           boolean allowPingbacks,
                                                           boolean allowTrackbacks,
                                                           java.lang.String[] trackbacks,
                                                           boolean smallImage,
                                                           java.lang.String smallImageURL,
                                                           java.lang.String smallImageFileName,
                                                           java.io.InputStream smallImageInputStream,
                                                           com.liferay.portal.service.ServiceContext serviceContext)
                                                    throws com.liferay.portal.kernel.exception.PortalException,
                                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteEntry

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

getCompanyEntries

public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(long companyId,
                                                                                    java.util.Date displayDate,
                                                                                    int status,
                                                                                    int max)
                                                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCompanyEntriesRSS

public java.lang.String getCompanyEntriesRSS(long companyId,
                                             java.util.Date displayDate,
                                             int status,
                                             int max,
                                             java.lang.String type,
                                             double version,
                                             java.lang.String displayStyle,
                                             java.lang.String feedURL,
                                             java.lang.String entryURL,
                                             com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                      throws com.liferay.portal.kernel.exception.PortalException,
                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getEntry

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

getEntry

public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
                                                           java.lang.String urlTitle)
                                                    throws com.liferay.portal.kernel.exception.PortalException,
                                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupEntries

public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(long groupId,
                                                                                  java.util.Date displayDate,
                                                                                  int status,
                                                                                  int max)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupEntries

public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(long groupId,
                                                                                  java.util.Date displayDate,
                                                                                  int status,
                                                                                  int start,
                                                                                  int end)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupEntries

public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(long groupId,
                                                                                  int status,
                                                                                  int max)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupEntries

public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(long groupId,
                                                                                  int status,
                                                                                  int start,
                                                                                  int end)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                java.util.Date displayDate,
                                int status)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                int status)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupEntriesRSS

public java.lang.String getGroupEntriesRSS(long groupId,
                                           java.util.Date displayDate,
                                           int status,
                                           int max,
                                           java.lang.String type,
                                           double version,
                                           java.lang.String displayStyle,
                                           java.lang.String feedURL,
                                           java.lang.String entryURL,
                                           com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                    throws com.liferay.portal.kernel.exception.PortalException,
                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupsEntries

public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(long companyId,
                                                                                   long groupId,
                                                                                   java.util.Date displayDate,
                                                                                   int status,
                                                                                   int max)
                                                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getOrganizationEntries

public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(long organizationId,
                                                                                         java.util.Date displayDate,
                                                                                         int status,
                                                                                         int max)
                                                                                  throws com.liferay.portal.kernel.exception.PortalException,
                                                                                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getOrganizationEntriesRSS

public java.lang.String getOrganizationEntriesRSS(long organizationId,
                                                  java.util.Date displayDate,
                                                  int status,
                                                  int max,
                                                  java.lang.String type,
                                                  double version,
                                                  java.lang.String displayStyle,
                                                  java.lang.String feedURL,
                                                  java.lang.String entryURL,
                                                  com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                           throws com.liferay.portal.kernel.exception.PortalException,
                                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

subscribe

public void subscribe(long groupId)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

unsubscribe

public void unsubscribe(long groupId)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateEntry

public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long entryId,
                                                              java.lang.String title,
                                                              java.lang.String description,
                                                              java.lang.String content,
                                                              int displayDateMonth,
                                                              int displayDateDay,
                                                              int displayDateYear,
                                                              int displayDateHour,
                                                              int displayDateMinute,
                                                              boolean allowPingbacks,
                                                              boolean allowTrackbacks,
                                                              java.lang.String[] trackbacks,
                                                              boolean smallImage,
                                                              java.lang.String smallImageURL,
                                                              java.lang.String smallImageFileName,
                                                              java.io.InputStream smallImageInputStream,
                                                              com.liferay.portal.service.ServiceContext serviceContext)
                                                       throws com.liferay.portal.kernel.exception.PortalException,
                                                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

exportToRSS

protected java.lang.String exportToRSS(java.lang.String name,
                                       java.lang.String description,
                                       java.lang.String type,
                                       double version,
                                       java.lang.String displayStyle,
                                       java.lang.String feedURL,
                                       java.lang.String entryURL,
                                       java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> blogsEntries,
                                       com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException