1
22
23 package com.liferay.portlet.blogs.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface BlogsEntryLocalService {
57 public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
58 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
62 long entryId);
63
64 public void deleteBlogsEntry(long entryId)
65 throws com.liferay.portal.SystemException,
66 com.liferay.portal.PortalException;
67
68 public void deleteBlogsEntry(
69 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
70 throws com.liferay.portal.SystemException;
71
72 public java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74 throws com.liferay.portal.SystemException;
75
76 public java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
82 long entryId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getBlogsEntriesCount() throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
94 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
98 java.lang.String title, java.lang.String content, int displayDateMonth,
99 int displayDateDay, int displayDateYear, int displayDateHour,
100 int displayDateMinute, boolean draft, boolean allowTrackbacks,
101 java.lang.String[] trackbacks,
102 com.liferay.portal.service.ServiceContext serviceContext)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
107 java.lang.String uuid, long userId, java.lang.String title,
108 java.lang.String content, int displayDateMonth, int displayDateDay,
109 int displayDateYear, int displayDateHour, int displayDateMinute,
110 boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
111 com.liferay.portal.service.ServiceContext serviceContext)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114
115 public void addEntryResources(long entryId,
116 boolean addCommunityPermissions, boolean addGuestPermissions)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException;
119
120 public void addEntryResources(
121 com.liferay.portlet.blogs.model.BlogsEntry entry,
122 boolean addCommunityPermissions, boolean addGuestPermissions)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException;
125
126 public void addEntryResources(long entryId,
127 java.lang.String[] communityPermissions,
128 java.lang.String[] guestPermissions)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException;
131
132 public void addEntryResources(
133 com.liferay.portlet.blogs.model.BlogsEntry entry,
134 java.lang.String[] communityPermissions,
135 java.lang.String[] guestPermissions)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException;
138
139 public void deleteEntries(long groupId)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 public void deleteEntry(long entryId)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException;
146
147 public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
153 long companyId, int start, int end)
154 throws com.liferay.portal.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
158 long companyId, int start, int end,
159 com.liferay.portal.kernel.util.OrderByComparator obc)
160 throws com.liferay.portal.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
164 long companyId, boolean draft, int start, int end)
165 throws com.liferay.portal.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
169 long companyId, boolean draft, int start, int end,
170 com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public int getCompanyEntriesCount(long companyId)
175 throws com.liferay.portal.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public int getCompanyEntriesCount(long companyId, boolean draft)
179 throws com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
183 long entryId)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
194 java.lang.String urlTitle)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
200 long groupId, int start, int end)
201 throws com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
205 long groupId, int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
211 long groupId, boolean draft, int start, int end)
212 throws com.liferay.portal.SystemException;
213
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
216 long groupId, boolean draft, int start, int end,
217 com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.SystemException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public int getGroupEntriesCount(long groupId)
222 throws com.liferay.portal.SystemException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public int getGroupEntriesCount(long groupId, boolean draft)
226 throws com.liferay.portal.SystemException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
230 long groupId, long userId, int start, int end)
231 throws com.liferay.portal.SystemException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
235 long groupId, long userId, int start, int end,
236 com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.SystemException;
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
241 long groupId, long userId, boolean draft, int start, int end)
242 throws com.liferay.portal.SystemException;
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
246 long groupId, long userId, boolean draft, int start, int end,
247 com.liferay.portal.kernel.util.OrderByComparator obc)
248 throws com.liferay.portal.SystemException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public int getGroupUserEntriesCount(long groupId, long userId)
252 throws com.liferay.portal.SystemException;
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
256 throws com.liferay.portal.SystemException;
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
260 throws com.liferay.portal.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
264 long organizationId, boolean draft, int start, int end)
265 throws com.liferay.portal.SystemException;
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public int getOrganizationEntriesCount(long organizationId, boolean draft)
269 throws com.liferay.portal.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.lang.String getUrlTitle(long entryId, java.lang.String title);
273
274 public void reIndex(long entryId) throws com.liferay.portal.SystemException;
275
276 public void reIndex(java.lang.String[] ids)
277 throws com.liferay.portal.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public com.liferay.portal.kernel.search.Hits search(long companyId,
281 long groupId, long userId, long ownerUserId, java.lang.String keywords,
282 int start, int end) throws com.liferay.portal.SystemException;
283
284 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
285 long entryId, java.lang.String title, java.lang.String content,
286 int displayDateMonth, int displayDateDay, int displayDateYear,
287 int displayDateHour, int displayDateMinute, boolean draft,
288 boolean allowTrackbacks, java.lang.String[] trackbacks,
289 com.liferay.portal.service.ServiceContext serviceContext)
290 throws com.liferay.portal.PortalException,
291 com.liferay.portal.SystemException;
292
293 public void updateTagsAsset(long userId,
294 com.liferay.portlet.blogs.model.BlogsEntry entry,
295 java.lang.String[] tagsEntries)
296 throws com.liferay.portal.PortalException,
297 com.liferay.portal.SystemException;
298 }