1
14
15 package com.liferay.portlet.blogs.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface BlogsEntryLocalService {
50 public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
51 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
55 long entryId);
56
57 public void deleteBlogsEntry(long entryId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteBlogsEntry(
62 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
63 throws com.liferay.portal.SystemException;
64
65 @SuppressWarnings("rawtypes")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 @SuppressWarnings("rawtypes")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException;
74
75 @SuppressWarnings("rawtypes")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.SystemException;
81
82 public int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
88 long entryId)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
100 int start, int end) throws com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public int getBlogsEntriesCount() throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
106 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
107 throws com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
110 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
111 throws com.liferay.portal.SystemException;
112
113 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
114 java.lang.String title, java.lang.String content, int displayDateMonth,
115 int displayDateDay, int displayDateYear, int displayDateHour,
116 int displayDateMinute, boolean draft, boolean allowTrackbacks,
117 java.lang.String[] trackbacks,
118 com.liferay.portal.service.ServiceContext serviceContext)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException;
121
122 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
123 java.lang.String uuid, long userId, java.lang.String title,
124 java.lang.String content, int displayDateMonth, int displayDateDay,
125 int displayDateYear, int displayDateHour, int displayDateMinute,
126 boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
127 com.liferay.portal.service.ServiceContext serviceContext)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException;
130
131 public void addEntryResources(long entryId,
132 boolean addCommunityPermissions, boolean addGuestPermissions)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 public void addEntryResources(
137 com.liferay.portlet.blogs.model.BlogsEntry entry,
138 boolean addCommunityPermissions, boolean addGuestPermissions)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException;
141
142 public void addEntryResources(long entryId,
143 java.lang.String[] communityPermissions,
144 java.lang.String[] guestPermissions)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException;
147
148 public void addEntryResources(
149 com.liferay.portlet.blogs.model.BlogsEntry entry,
150 java.lang.String[] communityPermissions,
151 java.lang.String[] guestPermissions)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 public void deleteEntries(long groupId)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException;
158
159 public void deleteEntry(long entryId)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException;
162
163 public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
164 throws com.liferay.portal.PortalException,
165 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, int start, int end)
170 throws com.liferay.portal.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
174 long companyId, int start, int end,
175 com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
180 long companyId, boolean draft, int start, int end)
181 throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
185 long companyId, boolean draft, int start, int end,
186 com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public int getCompanyEntriesCount(long companyId)
191 throws com.liferay.portal.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public int getCompanyEntriesCount(long companyId, boolean draft)
195 throws com.liferay.portal.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
199 long entryId)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
205 throws com.liferay.portal.PortalException,
206 com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
210 java.lang.String urlTitle)
211 throws com.liferay.portal.PortalException,
212 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, int start, int end)
217 throws com.liferay.portal.SystemException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
221 long groupId, int start, int end,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException;
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
227 long groupId, boolean draft, int start, int end)
228 throws com.liferay.portal.SystemException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
232 long groupId, boolean draft, int start, int end,
233 com.liferay.portal.kernel.util.OrderByComparator obc)
234 throws com.liferay.portal.SystemException;
235
236 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237 public int getGroupEntriesCount(long groupId)
238 throws com.liferay.portal.SystemException;
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public int getGroupEntriesCount(long groupId, boolean draft)
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> getGroupsEntries(
246 long companyId, long groupId, int start, int end)
247 throws com.liferay.portal.SystemException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
251 long groupId, long userId, int start, int end)
252 throws com.liferay.portal.SystemException;
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
256 long groupId, long userId, int start, int end,
257 com.liferay.portal.kernel.util.OrderByComparator obc)
258 throws com.liferay.portal.SystemException;
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
262 long groupId, long userId, boolean draft, int start, int end)
263 throws com.liferay.portal.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
267 long groupId, long userId, boolean draft, int start, int end,
268 com.liferay.portal.kernel.util.OrderByComparator obc)
269 throws com.liferay.portal.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public int getGroupUserEntriesCount(long groupId, long userId)
273 throws com.liferay.portal.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
277 throws com.liferay.portal.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
281 throws com.liferay.portal.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
285 long organizationId, boolean draft, int start, int end)
286 throws com.liferay.portal.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public int getOrganizationEntriesCount(long organizationId, boolean draft)
290 throws com.liferay.portal.SystemException;
291
292
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public java.lang.String getUrlTitle(long entryId, java.lang.String title);
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public void reIndex(long entryId) throws com.liferay.portal.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
303 throws com.liferay.portal.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public void reIndex(java.lang.String[] ids)
307 throws com.liferay.portal.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public com.liferay.portal.kernel.search.Hits search(long companyId,
311 long groupId, long userId, long ownerUserId, java.lang.String keywords,
312 int start, int end) throws com.liferay.portal.SystemException;
313
314 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
315 long entryId, java.lang.String title, java.lang.String content,
316 int displayDateMonth, int displayDateDay, int displayDateYear,
317 int displayDateHour, int displayDateMinute, boolean draft,
318 boolean allowTrackbacks, java.lang.String[] trackbacks,
319 com.liferay.portal.service.ServiceContext serviceContext)
320 throws com.liferay.portal.PortalException,
321 com.liferay.portal.SystemException;
322
323 public void updateEntryResources(
324 com.liferay.portlet.blogs.model.BlogsEntry entry,
325 java.lang.String[] communityPermissions,
326 java.lang.String[] guestPermissions)
327 throws com.liferay.portal.PortalException,
328 com.liferay.portal.SystemException;
329
330 public void updateTagsAsset(long userId,
331 com.liferay.portlet.blogs.model.BlogsEntry entry,
332 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
333 throws com.liferay.portal.PortalException,
334 com.liferay.portal.SystemException;
335 }