001
014
015 package com.liferay.portlet.blogs.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.security.ac.AccessControlled;
026 import com.liferay.portal.service.BaseService;
027
028
039 @ProviderType
040 @AccessControlled
041 @JSONWebService
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface BlogsEntryService extends BaseService {
045
050
051
056 public java.lang.String getBeanIdentifier();
057
058
063 public void setBeanIdentifier(java.lang.String beanIdentifier);
064
065 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
066 java.lang.String title, java.lang.String description,
067 java.lang.String content, int displayDateMonth, int displayDateDay,
068 int displayDateYear, int displayDateHour, int displayDateMinute,
069 boolean allowPingbacks, boolean allowTrackbacks,
070 java.lang.String[] trackbacks, boolean smallImage,
071 java.lang.String smallImageURL, java.lang.String smallImageFileName,
072 java.io.InputStream smallImageInputStream,
073 com.liferay.portal.service.ServiceContext serviceContext)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077 public void deleteEntry(long entryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
083 long companyId, java.util.Date displayDate, int status, int max)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public java.lang.String getCompanyEntriesRSS(long companyId,
089 java.util.Date displayDate, int status, int max, java.lang.String type,
090 double version, java.lang.String displayStyle,
091 java.lang.String feedURL, java.lang.String entryURL,
092 com.liferay.portal.theme.ThemeDisplay themeDisplay)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
103 java.lang.String urlTitle)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
109 long groupId, java.util.Date displayDate, int status, int max)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
114 long groupId, java.util.Date displayDate, int status, int start, int end)
115 throws com.liferay.portal.kernel.exception.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
119 long groupId, int status, int max)
120 throws com.liferay.portal.kernel.exception.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
124 long groupId, int status, int start, int end)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
129 int status) throws com.liferay.portal.kernel.exception.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public int getGroupEntriesCount(long groupId, int status)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.lang.String getGroupEntriesRSS(long groupId,
137 java.util.Date displayDate, int status, int max, java.lang.String type,
138 double version, java.lang.String displayStyle,
139 java.lang.String feedURL, java.lang.String entryURL,
140 com.liferay.portal.theme.ThemeDisplay themeDisplay)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
146 long companyId, long groupId, java.util.Date displayDate, int status,
147 int max)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
153 long organizationId, java.util.Date displayDate, int status, int max)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public java.lang.String getOrganizationEntriesRSS(long organizationId,
159 java.util.Date displayDate, int status, int max, java.lang.String type,
160 double version, java.lang.String displayStyle,
161 java.lang.String feedURL, java.lang.String entryURL,
162 com.liferay.portal.theme.ThemeDisplay themeDisplay)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166 public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
167 long entryId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 public void restoreEntryFromTrash(long entryId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 public void subscribe(long groupId)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException;
178
179 public void unsubscribe(long groupId)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException;
182
183 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
184 long entryId, java.lang.String title, java.lang.String description,
185 java.lang.String content, int displayDateMonth, int displayDateDay,
186 int displayDateYear, int displayDateHour, int displayDateMinute,
187 boolean allowPingbacks, boolean allowTrackbacks,
188 java.lang.String[] trackbacks, boolean smallImage,
189 java.lang.String smallImageURL, java.lang.String smallImageFileName,
190 java.io.InputStream smallImageInputStream,
191 com.liferay.portal.service.ServiceContext serviceContext)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException;
194 }