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