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

java.lang.Object
  extended bycom.liferay.portal.service.impl.PrincipalBean
      extended bycom.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl
All Implemented Interfaces:
com.liferay.portlet.blogs.service.BlogsEntryService

public class BlogsEntryServiceImpl
extends PrincipalBean
implements com.liferay.portlet.blogs.service.BlogsEntryService

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portal.service.impl.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
BlogsEntryServiceImpl()
           
 
Method Summary
 com.liferay.portlet.blogs.model.BlogsEntry addEntry(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 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 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 feedURL, java.lang.String entryURL, java.util.List blogsEntries)
           
 java.lang.String getCategoryBlogsRSS(long categoryId, int max, java.lang.String type, double version, java.lang.String feedURL, java.lang.String entryURL)
           
 java.util.List getCompanyEntries(long companyId, int max)
           
 java.lang.String getCompanyEntriesRSS(long companyId, int max, java.lang.String type, double version, java.lang.String feedURL, java.lang.String entryURL)
           
 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 max)
           
 java.lang.String getGroupEntriesRSS(long groupId, int max, java.lang.String type, double version, java.lang.String feedURL, java.lang.String entryURL)
           
 java.util.List getOrganizationEntries(long organizationId, int max)
           
 java.lang.String getOrganizationEntriesRSS(long organizationId, int max, java.lang.String type, double version, java.lang.String feedURL, java.lang.String entryURL)
           
 com.liferay.portlet.blogs.model.BlogsEntry updateEntry(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)
           
 
Methods inherited from class com.liferay.portal.service.impl.PrincipalBean
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(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
Specified by:
addEntry in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEntry

public com.liferay.portlet.blogs.model.BlogsEntry addEntry(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
Specified by:
addEntry in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteEntry

public void deleteEntry(long entryId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Specified by:
deleteEntry in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCategoryBlogsRSS

public java.lang.String getCategoryBlogsRSS(long categoryId,
                                            int max,
                                            java.lang.String type,
                                            double version,
                                            java.lang.String feedURL,
                                            java.lang.String entryURL)
                                     throws com.liferay.portal.PortalException,
                                            com.liferay.portal.SystemException
Specified by:
getCategoryBlogsRSS in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyEntries

public java.util.List getCompanyEntries(long companyId,
                                        int max)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Specified by:
getCompanyEntries in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyEntriesRSS

public java.lang.String getCompanyEntriesRSS(long companyId,
                                             int max,
                                             java.lang.String type,
                                             double version,
                                             java.lang.String feedURL,
                                             java.lang.String entryURL)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Specified by:
getCompanyEntriesRSS in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getEntry

public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
                                                    throws com.liferay.portal.PortalException,
                                                           com.liferay.portal.SystemException
Specified by:
getEntry in interface com.liferay.portlet.blogs.service.BlogsEntryService
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
Specified by:
getEntry in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getGroupEntries

public java.util.List getGroupEntries(long groupId,
                                      int max)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Specified by:
getGroupEntries in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getGroupEntriesRSS

public java.lang.String getGroupEntriesRSS(long groupId,
                                           int max,
                                           java.lang.String type,
                                           double version,
                                           java.lang.String feedURL,
                                           java.lang.String entryURL)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Specified by:
getGroupEntriesRSS in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getOrganizationEntries

public java.util.List getOrganizationEntries(long organizationId,
                                             int max)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Specified by:
getOrganizationEntries in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getOrganizationEntriesRSS

public java.lang.String getOrganizationEntriesRSS(long organizationId,
                                                  int max,
                                                  java.lang.String type,
                                                  double version,
                                                  java.lang.String feedURL,
                                                  java.lang.String entryURL)
                                           throws com.liferay.portal.PortalException,
                                                  com.liferay.portal.SystemException
Specified by:
getOrganizationEntriesRSS in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateEntry

public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(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
Specified by:
updateEntry in interface com.liferay.portlet.blogs.service.BlogsEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportToRSS

protected java.lang.String exportToRSS(java.lang.String name,
                                       java.lang.String description,
                                       java.lang.String type,
                                       double version,
                                       java.lang.String feedURL,
                                       java.lang.String entryURL,
                                       java.util.List blogsEntries)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException