001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.blogs.service;
022:
023: /**
024: * <a href="BlogsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.blogs.service.BlogsEntryLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.blogs.service.BlogsEntryLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.blogs.service.BlogsEntryLocalService
047: * @see com.liferay.portlet.blogs.service.BlogsEntryLocalServiceFactory
048: *
049: */
050: public class BlogsEntryLocalServiceUtil {
051: public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
052: com.liferay.portlet.blogs.model.BlogsEntry model)
053: throws com.liferay.portal.SystemException {
054: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
055: .getService();
056:
057: return blogsEntryLocalService.addBlogsEntry(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
064: .getService();
065:
066: return blogsEntryLocalService.dynamicQuery(queryInitializer);
067: }
068:
069: public static java.util.List dynamicQuery(
070: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071: int begin, int end)
072: throws com.liferay.portal.SystemException {
073: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
074: .getService();
075:
076: return blogsEntryLocalService.dynamicQuery(queryInitializer,
077: begin, end);
078: }
079:
080: public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
081: com.liferay.portlet.blogs.model.BlogsEntry model)
082: throws com.liferay.portal.SystemException {
083: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
084: .getService();
085:
086: return blogsEntryLocalService.updateBlogsEntry(model);
087: }
088:
089: public static com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence getBlogsEntryPersistence() {
090: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
091: .getService();
092:
093: return blogsEntryLocalService.getBlogsEntryPersistence();
094: }
095:
096: public static void setBlogsEntryPersistence(
097: com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence blogsEntryPersistence) {
098: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
099: .getService();
100:
101: blogsEntryLocalService
102: .setBlogsEntryPersistence(blogsEntryPersistence);
103: }
104:
105: public static com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder getBlogsEntryFinder() {
106: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
107: .getService();
108:
109: return blogsEntryLocalService.getBlogsEntryFinder();
110: }
111:
112: public static void setBlogsEntryFinder(
113: com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder blogsEntryFinder) {
114: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
115: .getService();
116:
117: blogsEntryLocalService.setBlogsEntryFinder(blogsEntryFinder);
118: }
119:
120: public static com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
121: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
122: .getService();
123:
124: return blogsEntryLocalService.getBlogsStatsUserPersistence();
125: }
126:
127: public static void setBlogsStatsUserPersistence(
128: com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence blogsStatsUserPersistence) {
129: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
130: .getService();
131:
132: blogsEntryLocalService
133: .setBlogsStatsUserPersistence(blogsStatsUserPersistence);
134: }
135:
136: public static com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder getBlogsStatsUserFinder() {
137: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
138: .getService();
139:
140: return blogsEntryLocalService.getBlogsStatsUserFinder();
141: }
142:
143: public static void setBlogsStatsUserFinder(
144: com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder blogsStatsUserFinder) {
145: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
146: .getService();
147:
148: blogsEntryLocalService
149: .setBlogsStatsUserFinder(blogsStatsUserFinder);
150: }
151:
152: public static com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence() {
153: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
154: .getService();
155:
156: return blogsEntryLocalService.getCompanyPersistence();
157: }
158:
159: public static void setCompanyPersistence(
160: com.liferay.portal.service.persistence.CompanyPersistence companyPersistence) {
161: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
162: .getService();
163:
164: blogsEntryLocalService
165: .setCompanyPersistence(companyPersistence);
166: }
167:
168: public static com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence() {
169: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
170: .getService();
171:
172: return blogsEntryLocalService.getGroupPersistence();
173: }
174:
175: public static void setGroupPersistence(
176: com.liferay.portal.service.persistence.GroupPersistence groupPersistence) {
177: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
178: .getService();
179:
180: blogsEntryLocalService.setGroupPersistence(groupPersistence);
181: }
182:
183: public static com.liferay.portal.service.persistence.GroupFinder getGroupFinder() {
184: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
185: .getService();
186:
187: return blogsEntryLocalService.getGroupFinder();
188: }
189:
190: public static void setGroupFinder(
191: com.liferay.portal.service.persistence.GroupFinder groupFinder) {
192: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
193: .getService();
194:
195: blogsEntryLocalService.setGroupFinder(groupFinder);
196: }
197:
198: public static com.liferay.portal.service.persistence.OrganizationPersistence getOrganizationPersistence() {
199: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
200: .getService();
201:
202: return blogsEntryLocalService.getOrganizationPersistence();
203: }
204:
205: public static void setOrganizationPersistence(
206: com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence) {
207: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
208: .getService();
209:
210: blogsEntryLocalService
211: .setOrganizationPersistence(organizationPersistence);
212: }
213:
214: public static com.liferay.portal.service.persistence.OrganizationFinder getOrganizationFinder() {
215: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
216: .getService();
217:
218: return blogsEntryLocalService.getOrganizationFinder();
219: }
220:
221: public static void setOrganizationFinder(
222: com.liferay.portal.service.persistence.OrganizationFinder organizationFinder) {
223: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
224: .getService();
225:
226: blogsEntryLocalService
227: .setOrganizationFinder(organizationFinder);
228: }
229:
230: public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
231: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
232: .getService();
233:
234: return blogsEntryLocalService.getResourcePersistence();
235: }
236:
237: public static void setResourcePersistence(
238: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
239: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
240: .getService();
241:
242: blogsEntryLocalService
243: .setResourcePersistence(resourcePersistence);
244: }
245:
246: public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
247: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
248: .getService();
249:
250: return blogsEntryLocalService.getResourceFinder();
251: }
252:
253: public static void setResourceFinder(
254: com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
255: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
256: .getService();
257:
258: blogsEntryLocalService.setResourceFinder(resourceFinder);
259: }
260:
261: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
262: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
263: .getService();
264:
265: return blogsEntryLocalService.getUserPersistence();
266: }
267:
268: public static void setUserPersistence(
269: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
270: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
271: .getService();
272:
273: blogsEntryLocalService.setUserPersistence(userPersistence);
274: }
275:
276: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
277: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
278: .getService();
279:
280: return blogsEntryLocalService.getUserFinder();
281: }
282:
283: public static void setUserFinder(
284: com.liferay.portal.service.persistence.UserFinder userFinder) {
285: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
286: .getService();
287:
288: blogsEntryLocalService.setUserFinder(userFinder);
289: }
290:
291: public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
292: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
293: .getService();
294:
295: return blogsEntryLocalService.getMBMessagePersistence();
296: }
297:
298: public static void setMBMessagePersistence(
299: com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
300: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
301: .getService();
302:
303: blogsEntryLocalService
304: .setMBMessagePersistence(mbMessagePersistence);
305: }
306:
307: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
308: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
309: .getService();
310:
311: return blogsEntryLocalService.getMBMessageFinder();
312: }
313:
314: public static void setMBMessageFinder(
315: com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
316: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
317: .getService();
318:
319: blogsEntryLocalService.setMBMessageFinder(mbMessageFinder);
320: }
321:
322: public static com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence getRatingsStatsPersistence() {
323: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
324: .getService();
325:
326: return blogsEntryLocalService.getRatingsStatsPersistence();
327: }
328:
329: public static void setRatingsStatsPersistence(
330: com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence ratingsStatsPersistence) {
331: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
332: .getService();
333:
334: blogsEntryLocalService
335: .setRatingsStatsPersistence(ratingsStatsPersistence);
336: }
337:
338: public static com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence() {
339: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
340: .getService();
341:
342: return blogsEntryLocalService.getTagsAssetPersistence();
343: }
344:
345: public static void setTagsAssetPersistence(
346: com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence) {
347: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
348: .getService();
349:
350: blogsEntryLocalService
351: .setTagsAssetPersistence(tagsAssetPersistence);
352: }
353:
354: public static com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder() {
355: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
356: .getService();
357:
358: return blogsEntryLocalService.getTagsAssetFinder();
359: }
360:
361: public static void setTagsAssetFinder(
362: com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder) {
363: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
364: .getService();
365:
366: blogsEntryLocalService.setTagsAssetFinder(tagsAssetFinder);
367: }
368:
369: public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
370: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
371: .getService();
372:
373: return blogsEntryLocalService.getTagsEntryPersistence();
374: }
375:
376: public static void setTagsEntryPersistence(
377: com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
378: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
379: .getService();
380:
381: blogsEntryLocalService
382: .setTagsEntryPersistence(tagsEntryPersistence);
383: }
384:
385: public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
386: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
387: .getService();
388:
389: return blogsEntryLocalService.getTagsEntryFinder();
390: }
391:
392: public static void setTagsEntryFinder(
393: com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
394: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
395: .getService();
396:
397: blogsEntryLocalService.setTagsEntryFinder(tagsEntryFinder);
398: }
399:
400: public static void afterPropertiesSet() {
401: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
402: .getService();
403:
404: blogsEntryLocalService.afterPropertiesSet();
405: }
406:
407: public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
408: long userId, long plid, java.lang.String title,
409: java.lang.String content, int displayDateMonth,
410: int displayDateDay, int displayDateYear,
411: int displayDateHour, int displayDateMinute,
412: java.lang.String[] tagsEntries,
413: boolean addCommunityPermissions,
414: boolean addGuestPermissions,
415: com.liferay.portal.theme.ThemeDisplay themeDisplay)
416: throws com.liferay.portal.PortalException,
417: com.liferay.portal.SystemException {
418: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
419: .getService();
420:
421: return blogsEntryLocalService.addEntry(userId, plid, title,
422: content, displayDateMonth, displayDateDay,
423: displayDateYear, displayDateHour, displayDateMinute,
424: tagsEntries, addCommunityPermissions,
425: addGuestPermissions, themeDisplay);
426: }
427:
428: public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
429: java.lang.String uuid, long userId, long plid,
430: java.lang.String title, java.lang.String content,
431: int displayDateMonth, int displayDateDay,
432: int displayDateYear, int displayDateHour,
433: int displayDateMinute, java.lang.String[] tagsEntries,
434: boolean addCommunityPermissions,
435: boolean addGuestPermissions,
436: com.liferay.portal.theme.ThemeDisplay themeDisplay)
437: throws com.liferay.portal.PortalException,
438: com.liferay.portal.SystemException {
439: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
440: .getService();
441:
442: return blogsEntryLocalService.addEntry(uuid, userId, plid,
443: title, content, displayDateMonth, displayDateDay,
444: displayDateYear, displayDateHour, displayDateMinute,
445: tagsEntries, addCommunityPermissions,
446: addGuestPermissions, themeDisplay);
447: }
448:
449: public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
450: long userId, long plid, java.lang.String title,
451: java.lang.String content, int displayDateMonth,
452: int displayDateDay, int displayDateYear,
453: int displayDateHour, int displayDateMinute,
454: java.lang.String[] tagsEntries,
455: java.lang.String[] communityPermissions,
456: java.lang.String[] guestPermissions,
457: com.liferay.portal.theme.ThemeDisplay themeDisplay)
458: throws com.liferay.portal.PortalException,
459: com.liferay.portal.SystemException {
460: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
461: .getService();
462:
463: return blogsEntryLocalService.addEntry(userId, plid, title,
464: content, displayDateMonth, displayDateDay,
465: displayDateYear, displayDateHour, displayDateMinute,
466: tagsEntries, communityPermissions, guestPermissions,
467: themeDisplay);
468: }
469:
470: public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
471: java.lang.String uuid, long userId, long plid,
472: java.lang.String title, java.lang.String content,
473: int displayDateMonth, int displayDateDay,
474: int displayDateYear, int displayDateHour,
475: int displayDateMinute, java.lang.String[] tagsEntries,
476: java.lang.Boolean addCommunityPermissions,
477: java.lang.Boolean addGuestPermissions,
478: java.lang.String[] communityPermissions,
479: java.lang.String[] guestPermissions,
480: com.liferay.portal.theme.ThemeDisplay themeDisplay)
481: throws com.liferay.portal.PortalException,
482: com.liferay.portal.SystemException {
483: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
484: .getService();
485:
486: return blogsEntryLocalService.addEntry(uuid, userId, plid,
487: title, content, displayDateMonth, displayDateDay,
488: displayDateYear, displayDateHour, displayDateMinute,
489: tagsEntries, addCommunityPermissions,
490: addGuestPermissions, communityPermissions,
491: guestPermissions, themeDisplay);
492: }
493:
494: public static void addEntryResources(long entryId,
495: boolean addCommunityPermissions, boolean addGuestPermissions)
496: throws com.liferay.portal.PortalException,
497: com.liferay.portal.SystemException {
498: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
499: .getService();
500:
501: blogsEntryLocalService.addEntryResources(entryId,
502: addCommunityPermissions, addGuestPermissions);
503: }
504:
505: public static void addEntryResources(
506: com.liferay.portlet.blogs.model.BlogsEntry entry,
507: boolean addCommunityPermissions, boolean addGuestPermissions)
508: throws com.liferay.portal.PortalException,
509: com.liferay.portal.SystemException {
510: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
511: .getService();
512:
513: blogsEntryLocalService.addEntryResources(entry,
514: addCommunityPermissions, addGuestPermissions);
515: }
516:
517: public static void addEntryResources(long entryId,
518: java.lang.String[] communityPermissions,
519: java.lang.String[] guestPermissions)
520: throws com.liferay.portal.PortalException,
521: com.liferay.portal.SystemException {
522: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
523: .getService();
524:
525: blogsEntryLocalService.addEntryResources(entryId,
526: communityPermissions, guestPermissions);
527: }
528:
529: public static void addEntryResources(
530: com.liferay.portlet.blogs.model.BlogsEntry entry,
531: java.lang.String[] communityPermissions,
532: java.lang.String[] guestPermissions)
533: throws com.liferay.portal.PortalException,
534: com.liferay.portal.SystemException {
535: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
536: .getService();
537:
538: blogsEntryLocalService.addEntryResources(entry,
539: communityPermissions, guestPermissions);
540: }
541:
542: public static void deleteEntries(long groupId)
543: throws com.liferay.portal.PortalException,
544: com.liferay.portal.SystemException {
545: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
546: .getService();
547:
548: blogsEntryLocalService.deleteEntries(groupId);
549: }
550:
551: public static void deleteEntry(long entryId)
552: throws com.liferay.portal.PortalException,
553: com.liferay.portal.SystemException {
554: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
555: .getService();
556:
557: blogsEntryLocalService.deleteEntry(entryId);
558: }
559:
560: public static void deleteEntry(
561: com.liferay.portlet.blogs.model.BlogsEntry entry)
562: throws com.liferay.portal.PortalException,
563: com.liferay.portal.SystemException {
564: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
565: .getService();
566:
567: blogsEntryLocalService.deleteEntry(entry);
568: }
569:
570: public static java.util.List getCompanyEntries(long companyId,
571: int begin, int end)
572: throws com.liferay.portal.SystemException {
573: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
574: .getService();
575:
576: return blogsEntryLocalService.getCompanyEntries(companyId,
577: begin, end);
578: }
579:
580: public static java.util.List getCompanyEntries(long companyId,
581: int begin, int end,
582: com.liferay.portal.kernel.util.OrderByComparator obc)
583: throws com.liferay.portal.SystemException {
584: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
585: .getService();
586:
587: return blogsEntryLocalService.getCompanyEntries(companyId,
588: begin, end, obc);
589: }
590:
591: public static int getCompanyEntriesCount(long companyId)
592: throws com.liferay.portal.SystemException {
593: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
594: .getService();
595:
596: return blogsEntryLocalService.getCompanyEntriesCount(companyId);
597: }
598:
599: public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
600: long entryId) throws com.liferay.portal.PortalException,
601: com.liferay.portal.SystemException {
602: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
603: .getService();
604:
605: return blogsEntryLocalService.getEntry(entryId);
606: }
607:
608: public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
609: long groupId, java.lang.String urlTitle)
610: throws com.liferay.portal.PortalException,
611: com.liferay.portal.SystemException {
612: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
613: .getService();
614:
615: return blogsEntryLocalService.getEntry(groupId, urlTitle);
616: }
617:
618: public static java.util.List getGroupEntries(long groupId,
619: int begin, int end)
620: throws com.liferay.portal.SystemException {
621: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
622: .getService();
623:
624: return blogsEntryLocalService.getGroupEntries(groupId, begin,
625: end);
626: }
627:
628: public static java.util.List getGroupEntries(long groupId,
629: int begin, int end,
630: com.liferay.portal.kernel.util.OrderByComparator obc)
631: throws com.liferay.portal.SystemException {
632: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
633: .getService();
634:
635: return blogsEntryLocalService.getGroupEntries(groupId, begin,
636: end, obc);
637: }
638:
639: public static int getGroupEntriesCount(long groupId)
640: throws com.liferay.portal.SystemException {
641: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
642: .getService();
643:
644: return blogsEntryLocalService.getGroupEntriesCount(groupId);
645: }
646:
647: public static java.util.List getGroupUserEntries(long groupId,
648: long userId, int begin, int end)
649: throws com.liferay.portal.SystemException {
650: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
651: .getService();
652:
653: return blogsEntryLocalService.getGroupUserEntries(groupId,
654: userId, begin, end);
655: }
656:
657: public static int getGroupUserEntriesCount(long groupId, long userId)
658: throws com.liferay.portal.SystemException {
659: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
660: .getService();
661:
662: return blogsEntryLocalService.getGroupUserEntriesCount(groupId,
663: userId);
664: }
665:
666: public static java.util.List getNoAssetEntries()
667: throws com.liferay.portal.SystemException {
668: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
669: .getService();
670:
671: return blogsEntryLocalService.getNoAssetEntries();
672: }
673:
674: public static java.util.List getOrganizationEntries(
675: long organizationId, int begin, int end)
676: throws com.liferay.portal.SystemException {
677: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
678: .getService();
679:
680: return blogsEntryLocalService.getOrganizationEntries(
681: organizationId, begin, end);
682: }
683:
684: public static int getOrganizationEntriesCount(long organizationId)
685: throws com.liferay.portal.SystemException {
686: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
687: .getService();
688:
689: return blogsEntryLocalService
690: .getOrganizationEntriesCount(organizationId);
691: }
692:
693: public static java.lang.String getUrlTitle(long entryId,
694: java.lang.String title) {
695: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
696: .getService();
697:
698: return blogsEntryLocalService.getUrlTitle(entryId, title);
699: }
700:
701: public static void reIndex(java.lang.String[] ids)
702: throws com.liferay.portal.SystemException {
703: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
704: .getService();
705:
706: blogsEntryLocalService.reIndex(ids);
707: }
708:
709: public static com.liferay.portal.kernel.search.Hits search(
710: long companyId, long groupId, long userId,
711: java.lang.String keywords)
712: throws com.liferay.portal.SystemException {
713: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
714: .getService();
715:
716: return blogsEntryLocalService.search(companyId, groupId,
717: userId, keywords);
718: }
719:
720: public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
721: long userId, long entryId, java.lang.String title,
722: java.lang.String content, int displayDateMonth,
723: int displayDateDay, int displayDateYear,
724: int displayDateHour, int displayDateMinute,
725: java.lang.String[] tagsEntries,
726: com.liferay.portal.theme.ThemeDisplay themeDisplay)
727: throws com.liferay.portal.PortalException,
728: com.liferay.portal.SystemException {
729: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
730: .getService();
731:
732: return blogsEntryLocalService.updateEntry(userId, entryId,
733: title, content, displayDateMonth, displayDateDay,
734: displayDateYear, displayDateHour, displayDateMinute,
735: tagsEntries, themeDisplay);
736: }
737:
738: public static void updateTagsAsset(long userId,
739: com.liferay.portlet.blogs.model.BlogsEntry entry,
740: java.lang.String[] tagsEntries)
741: throws com.liferay.portal.PortalException,
742: com.liferay.portal.SystemException {
743: BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory
744: .getService();
745:
746: blogsEntryLocalService.updateTagsAsset(userId, entry,
747: tagsEntries);
748: }
749: }
|