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