001
014
015 package com.liferay.portlet.blogs.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface BlogsEntryService {
043 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
044 java.lang.String title, java.lang.String content, int displayDateMonth,
045 int displayDateDay, int displayDateYear, int displayDateHour,
046 int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
047 java.lang.String[] trackbacks,
048 com.liferay.portal.service.ServiceContext serviceContext)
049 throws com.liferay.portal.kernel.exception.PortalException,
050 com.liferay.portal.kernel.exception.SystemException;
051
052 public void deleteEntry(long entryId)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException;
055
056 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
058 long companyId, int status, int max)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException;
061
062 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063 public java.lang.String getCompanyEntriesRSS(long companyId, int status,
064 int max, java.lang.String type, double version,
065 java.lang.String displayStyle, java.lang.String feedURL,
066 java.lang.String entryURL,
067 com.liferay.portal.theme.ThemeDisplay themeDisplay)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
078 java.lang.String urlTitle)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
084 long groupId, int status, int max)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public java.lang.String getGroupEntriesRSS(long groupId, int status,
090 int max, java.lang.String type, double version,
091 java.lang.String displayStyle, java.lang.String feedURL,
092 java.lang.String entryURL,
093 com.liferay.portal.theme.ThemeDisplay themeDisplay)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException;
096
097 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
099 long companyId, long groupId, int status, int max)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
105 long organizationId, int status, int max)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.lang.String getOrganizationEntriesRSS(long organizationId,
111 int status, int max, java.lang.String type, double version,
112 java.lang.String displayStyle, java.lang.String feedURL,
113 java.lang.String entryURL,
114 com.liferay.portal.theme.ThemeDisplay themeDisplay)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException;
117
118 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
119 long entryId, java.lang.String title, java.lang.String content,
120 int displayDateMonth, int displayDateDay, int displayDateYear,
121 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
122 boolean allowTrackbacks, java.lang.String[] trackbacks,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126 }