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.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
089 long groupId, int status, int start, int end)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public int getGroupEntriesCount(long groupId, int status)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public java.lang.String getGroupEntriesRSS(long groupId, int status,
098 int max, java.lang.String type, double version,
099 java.lang.String displayStyle, java.lang.String feedURL,
100 java.lang.String entryURL,
101 com.liferay.portal.theme.ThemeDisplay themeDisplay)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException;
104
105 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
107 long companyId, long groupId, int status, int max)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
113 long organizationId, int status, int max)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public java.lang.String getOrganizationEntriesRSS(long organizationId,
119 int status, int max, java.lang.String type, double version,
120 java.lang.String displayStyle, java.lang.String feedURL,
121 java.lang.String entryURL,
122 com.liferay.portal.theme.ThemeDisplay themeDisplay)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
127 long entryId, java.lang.String title, java.lang.String content,
128 int displayDateMonth, int displayDateDay, int displayDateYear,
129 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
130 boolean allowTrackbacks, java.lang.String[] trackbacks,
131 com.liferay.portal.service.ServiceContext serviceContext)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134 }