1
14
15 package com.liferay.portlet.blogs.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class BlogsEntryLocalServiceUtil {
40 public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
41 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addBlogsEntry(blogsEntry);
44 }
45
46 public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
47 long entryId) {
48 return getService().createBlogsEntry(entryId);
49 }
50
51 public static void deleteBlogsEntry(long entryId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteBlogsEntry(entryId);
55 }
56
57 public static void deleteBlogsEntry(
58 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteBlogsEntry(blogsEntry);
61 }
62
63 @SuppressWarnings("unchecked")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("unchecked")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("unchecked")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.kernel.exception.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static long dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
94 long entryId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getBlogsEntry(entryId);
98 }
99
100 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
101 java.lang.String uuid, long groupId)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException {
104 return getService().getBlogsEntryByUuidAndGroupId(uuid, groupId);
105 }
106
107 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
108 int start, int end)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().getBlogsEntries(start, end);
111 }
112
113 public static int getBlogsEntriesCount()
114 throws com.liferay.portal.kernel.exception.SystemException {
115 return getService().getBlogsEntriesCount();
116 }
117
118 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
119 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateBlogsEntry(blogsEntry);
122 }
123
124 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
125 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().updateBlogsEntry(blogsEntry, merge);
128 }
129
130 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
131 java.lang.String uuid, long userId, java.lang.String title,
132 java.lang.String content, int displayDateMonth, int displayDateDay,
133 int displayDateYear, int displayDateHour, int displayDateMinute,
134 boolean allowPingbacks, boolean allowTrackbacks,
135 java.lang.String[] trackbacks,
136 com.liferay.portal.service.ServiceContext serviceContext)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getService()
140 .addEntry(uuid, userId, title, content, displayDateMonth,
141 displayDateDay, displayDateYear, displayDateHour,
142 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
143 serviceContext);
144 }
145
146 public static void addEntryResources(
147 com.liferay.portlet.blogs.model.BlogsEntry entry,
148 boolean addCommunityPermissions, boolean addGuestPermissions)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException {
151 getService()
152 .addEntryResources(entry, addCommunityPermissions,
153 addGuestPermissions);
154 }
155
156 public static void addEntryResources(
157 com.liferay.portlet.blogs.model.BlogsEntry entry,
158 java.lang.String[] communityPermissions,
159 java.lang.String[] guestPermissions)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException {
162 getService()
163 .addEntryResources(entry, communityPermissions, guestPermissions);
164 }
165
166 public static void addEntryResources(long entryId,
167 boolean addCommunityPermissions, boolean addGuestPermissions)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException {
170 getService()
171 .addEntryResources(entryId, addCommunityPermissions,
172 addGuestPermissions);
173 }
174
175 public static void addEntryResources(long entryId,
176 java.lang.String[] communityPermissions,
177 java.lang.String[] guestPermissions)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException {
180 getService()
181 .addEntryResources(entryId, communityPermissions, guestPermissions);
182 }
183
184 public static void deleteEntries(long groupId)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException {
187 getService().deleteEntries(groupId);
188 }
189
190 public static void deleteEntry(
191 com.liferay.portlet.blogs.model.BlogsEntry entry)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 getService().deleteEntry(entry);
195 }
196
197 public static void deleteEntry(long entryId)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException {
200 getService().deleteEntry(entryId);
201 }
202
203 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
204 long companyId, int status, int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getService().getCompanyEntries(companyId, status, start, end);
207 }
208
209 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
210 long companyId, int status, int start, int end,
211 com.liferay.portal.kernel.util.OrderByComparator obc)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getService().getCompanyEntries(companyId, status, start, end, obc);
214 }
215
216 public static int getCompanyEntriesCount(long companyId, int status)
217 throws com.liferay.portal.kernel.exception.SystemException {
218 return getService().getCompanyEntriesCount(companyId, status);
219 }
220
221 public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
222 long entryId)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException {
225 return getService().getEntriesPrevAndNext(entryId);
226 }
227
228 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
229 long entryId)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 return getService().getEntry(entryId);
233 }
234
235 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
236 long groupId, java.lang.String urlTitle)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().getEntry(groupId, urlTitle);
240 }
241
242 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
243 long groupId, int status, int start, int end)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getService().getGroupEntries(groupId, status, start, end);
246 }
247
248 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
249 long groupId, int status, int start, int end,
250 com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getService().getGroupEntries(groupId, status, start, end, obc);
253 }
254
255 public static int getGroupEntriesCount(long groupId, int status)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getService().getGroupEntriesCount(groupId, status);
258 }
259
260 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
261 long companyId, long groupId, int status, int start, int end)
262 throws com.liferay.portal.kernel.exception.SystemException {
263 return getService()
264 .getGroupsEntries(companyId, groupId, status, start, end);
265 }
266
267 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
268 long groupId, long userId, int status, int start, int end)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 return getService()
271 .getGroupUserEntries(groupId, userId, status, start, end);
272 }
273
274 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
275 long groupId, long userId, int status, int start, int end,
276 com.liferay.portal.kernel.util.OrderByComparator obc)
277 throws com.liferay.portal.kernel.exception.SystemException {
278 return getService()
279 .getGroupUserEntries(groupId, userId, status, start, end, obc);
280 }
281
282 public static int getGroupUserEntriesCount(long groupId, long userId,
283 int status) throws com.liferay.portal.kernel.exception.SystemException {
284 return getService().getGroupUserEntriesCount(groupId, userId, status);
285 }
286
287 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
288 throws com.liferay.portal.kernel.exception.SystemException {
289 return getService().getNoAssetEntries();
290 }
291
292 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
293 long organizationId, int status, int start, int end)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getService()
296 .getOrganizationEntries(organizationId, status, start, end);
297 }
298
299 public static int getOrganizationEntriesCount(long organizationId,
300 int status) throws com.liferay.portal.kernel.exception.SystemException {
301 return getService().getOrganizationEntriesCount(organizationId, status);
302 }
303
304 public static void updateAsset(long userId,
305 com.liferay.portlet.blogs.model.BlogsEntry entry,
306 long[] assetCategoryIds, java.lang.String[] assetTagNames)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 getService().updateAsset(userId, entry, assetCategoryIds, assetTagNames);
310 }
311
312 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
313 long userId, long entryId, java.lang.String title,
314 java.lang.String content, int displayDateMonth, int displayDateDay,
315 int displayDateYear, int displayDateHour, int displayDateMinute,
316 boolean allowPingbacks, boolean allowTrackbacks,
317 java.lang.String[] trackbacks,
318 com.liferay.portal.service.ServiceContext serviceContext)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException {
321 return getService()
322 .updateEntry(userId, entryId, title, content,
323 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
324 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
325 serviceContext);
326 }
327
328 public static void updateEntryResources(
329 com.liferay.portlet.blogs.model.BlogsEntry entry,
330 java.lang.String[] communityPermissions,
331 java.lang.String[] guestPermissions)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException {
334 getService()
335 .updateEntryResources(entry, communityPermissions, guestPermissions);
336 }
337
338 public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
339 long userId, long entryId, int status,
340 com.liferay.portal.service.ServiceContext serviceContext)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException {
343 return getService().updateStatus(userId, entryId, status, serviceContext);
344 }
345
346 public static BlogsEntryLocalService getService() {
347 if (_service == null) {
348 _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
349 }
350
351 return _service;
352 }
353
354 public void setService(BlogsEntryLocalService service) {
355 _service = service;
356 }
357
358 private static BlogsEntryLocalService _service;
359 }