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 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException;
72
73 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
75 long entryId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
81 int start, int end) throws com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public int getBlogsEntriesCount() throws com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
87 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
88 throws com.liferay.portal.SystemException;
89
90 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
91 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
92 throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
95 long plid, java.lang.String title, java.lang.String content,
96 int displayDateMonth, int displayDateDay, int displayDateYear,
97 int displayDateHour, int displayDateMinute, boolean draft,
98 boolean allowTrackbacks, java.lang.String[] trackbacks,
99 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
100 boolean addGuestPermissions,
101 com.liferay.portal.theme.ThemeDisplay themeDisplay)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
106 java.lang.String uuid, long userId, long plid, java.lang.String title,
107 java.lang.String content, int displayDateMonth, int displayDateDay,
108 int displayDateYear, int displayDateHour, int displayDateMinute,
109 boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
110 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
111 boolean addGuestPermissions,
112 com.liferay.portal.theme.ThemeDisplay themeDisplay)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
117 long plid, java.lang.String title, java.lang.String content,
118 int displayDateMonth, int displayDateDay, int displayDateYear,
119 int displayDateHour, int displayDateMinute, boolean draft,
120 boolean allowTrackbacks, java.lang.String[] trackbacks,
121 java.lang.String[] tagsEntries,
122 java.lang.String[] communityPermissions,
123 java.lang.String[] guestPermissions,
124 com.liferay.portal.theme.ThemeDisplay themeDisplay)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException;
127
128 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
129 java.lang.String uuid, long userId, long plid, java.lang.String title,
130 java.lang.String content, int displayDateMonth, int displayDateDay,
131 int displayDateYear, int displayDateHour, int displayDateMinute,
132 boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
133 java.lang.String[] tagsEntries,
134 java.lang.Boolean addCommunityPermissions,
135 java.lang.Boolean addGuestPermissions,
136 java.lang.String[] communityPermissions,
137 java.lang.String[] guestPermissions,
138 com.liferay.portal.theme.ThemeDisplay themeDisplay)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException;
141
142 public void addEntryResources(long entryId,
143 boolean addCommunityPermissions, boolean addGuestPermissions)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException;
146
147 public void addEntryResources(
148 com.liferay.portlet.blogs.model.BlogsEntry entry,
149 boolean addCommunityPermissions, boolean addGuestPermissions)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException;
152
153 public void addEntryResources(long entryId,
154 java.lang.String[] communityPermissions,
155 java.lang.String[] guestPermissions)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException;
158
159 public void addEntryResources(
160 com.liferay.portlet.blogs.model.BlogsEntry entry,
161 java.lang.String[] communityPermissions,
162 java.lang.String[] guestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 public void deleteEntries(long groupId)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException;
169
170 public void deleteEntry(long entryId)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException;
173
174 public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
175 throws com.liferay.portal.PortalException,
176 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, 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, 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 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
191 long companyId, boolean draft, int start, int end)
192 throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
196 long companyId, boolean draft, int start, int end,
197 com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public int getCompanyEntriesCount(long companyId)
202 throws com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public int getCompanyEntriesCount(long companyId, boolean draft)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
210 long entryId)
211 throws com.liferay.portal.PortalException,
212 com.liferay.portal.SystemException;
213
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
216 throws com.liferay.portal.PortalException,
217 com.liferay.portal.SystemException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
221 java.lang.String urlTitle)
222 throws com.liferay.portal.PortalException,
223 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, 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, 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 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
238 long groupId, boolean draft, int start, int end)
239 throws com.liferay.portal.SystemException;
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
243 long groupId, boolean draft, int start, int end,
244 com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public int getGroupEntriesCount(long groupId)
249 throws com.liferay.portal.SystemException;
250
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public int getGroupEntriesCount(long groupId, boolean draft)
253 throws com.liferay.portal.SystemException;
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
257 long groupId, long userId, int start, int end)
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, int start, int end,
263 com.liferay.portal.kernel.util.OrderByComparator obc)
264 throws com.liferay.portal.SystemException;
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
268 long groupId, long userId, boolean draft, int start, int end)
269 throws com.liferay.portal.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
273 long groupId, long userId, boolean draft, int start, int end,
274 com.liferay.portal.kernel.util.OrderByComparator obc)
275 throws com.liferay.portal.SystemException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public int getGroupUserEntriesCount(long groupId, long userId)
279 throws com.liferay.portal.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
283 throws com.liferay.portal.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
287 throws com.liferay.portal.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
291 long organizationId, boolean draft, int start, int end)
292 throws com.liferay.portal.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public int getOrganizationEntriesCount(long organizationId, boolean draft)
296 throws com.liferay.portal.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.lang.String getUrlTitle(long entryId, java.lang.String title);
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public void reIndex(long entryId) throws com.liferay.portal.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
306 throws com.liferay.portal.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public void reIndex(java.lang.String[] ids)
310 throws com.liferay.portal.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public com.liferay.portal.kernel.search.Hits search(long companyId,
314 long groupId, long userId, java.lang.String keywords, int start, int end)
315 throws com.liferay.portal.SystemException;
316
317 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
318 long entryId, java.lang.String title, java.lang.String content,
319 int displayDateMonth, int displayDateDay, int displayDateYear,
320 int displayDateHour, int displayDateMinute, boolean draft,
321 boolean allowTrackbacks, java.lang.String[] trackbacks,
322 java.lang.String[] tagsEntries,
323 com.liferay.portal.theme.ThemeDisplay themeDisplay)
324 throws com.liferay.portal.PortalException,
325 com.liferay.portal.SystemException;
326
327 public void updateTagsAsset(long userId,
328 com.liferay.portlet.blogs.model.BlogsEntry entry,
329 java.lang.String[] tagsEntries)
330 throws com.liferay.portal.PortalException,
331 com.liferay.portal.SystemException;
332 }