0001: /**
0002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
0003: *
0004: * Permission is hereby granted, free of charge, to any person obtaining a copy
0005: * of this software and associated documentation files (the "Software"), to deal
0006: * in the Software without restriction, including without limitation the rights
0007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0008: * copies of the Software, and to permit persons to whom the Software is
0009: * furnished to do so, subject to the following conditions:
0010: *
0011: * The above copyright notice and this permission notice shall be included in
0012: * all copies or substantial portions of the Software.
0013: *
0014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0020: * SOFTWARE.
0021: */package com.liferay.portlet.messageboards.service;
0022:
0023: /**
0024: * <a href="MBMessageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
0025: *
0026: * <p>
0027: * ServiceBuilder generated this class. Modifications in this class will be
0028: * overwritten the next time is generated.
0029: * </p>
0030: *
0031: * <p>
0032: * This class provides static methods for the
0033: * <code>com.liferay.portlet.messageboards.service.MBMessageLocalService</code>
0034: * bean. The static methods of this class calls the same methods of the bean
0035: * instance. It's convenient to be able to just write one line to call a method
0036: * on a bean instead of writing a lookup call and a method call.
0037: * </p>
0038: *
0039: * <p>
0040: * <code>com.liferay.portlet.messageboards.service.MBMessageLocalServiceFactory</code>
0041: * is responsible for the lookup of the bean.
0042: * </p>
0043: *
0044: * @author Brian Wing Shun Chan
0045: *
0046: * @see com.liferay.portlet.messageboards.service.MBMessageLocalService
0047: * @see com.liferay.portlet.messageboards.service.MBMessageLocalServiceFactory
0048: *
0049: */
0050: public class MBMessageLocalServiceUtil {
0051: public static com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
0052: com.liferay.portlet.messageboards.model.MBMessage model)
0053: throws com.liferay.portal.SystemException {
0054: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0055: .getService();
0056:
0057: return mbMessageLocalService.addMBMessage(model);
0058: }
0059:
0060: public static java.util.List dynamicQuery(
0061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
0062: throws com.liferay.portal.SystemException {
0063: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0064: .getService();
0065:
0066: return mbMessageLocalService.dynamicQuery(queryInitializer);
0067: }
0068:
0069: public static java.util.List dynamicQuery(
0070: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
0071: int begin, int end)
0072: throws com.liferay.portal.SystemException {
0073: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0074: .getService();
0075:
0076: return mbMessageLocalService.dynamicQuery(queryInitializer,
0077: begin, end);
0078: }
0079:
0080: public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
0081: com.liferay.portlet.messageboards.model.MBMessage model)
0082: throws com.liferay.portal.SystemException {
0083: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0084: .getService();
0085:
0086: return mbMessageLocalService.updateMBMessage(model);
0087: }
0088:
0089: public static com.liferay.portlet.messageboards.service.persistence.MBBanPersistence getMBBanPersistence() {
0090: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0091: .getService();
0092:
0093: return mbMessageLocalService.getMBBanPersistence();
0094: }
0095:
0096: public static void setMBBanPersistence(
0097: com.liferay.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence) {
0098: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0099: .getService();
0100:
0101: mbMessageLocalService.setMBBanPersistence(mbBanPersistence);
0102: }
0103:
0104: public static com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence getMBCategoryPersistence() {
0105: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0106: .getService();
0107:
0108: return mbMessageLocalService.getMBCategoryPersistence();
0109: }
0110:
0111: public static void setMBCategoryPersistence(
0112: com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence mbCategoryPersistence) {
0113: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0114: .getService();
0115:
0116: mbMessageLocalService
0117: .setMBCategoryPersistence(mbCategoryPersistence);
0118: }
0119:
0120: public static com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder getMBCategoryFinder() {
0121: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0122: .getService();
0123:
0124: return mbMessageLocalService.getMBCategoryFinder();
0125: }
0126:
0127: public static void setMBCategoryFinder(
0128: com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder mbCategoryFinder) {
0129: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0130: .getService();
0131:
0132: mbMessageLocalService.setMBCategoryFinder(mbCategoryFinder);
0133: }
0134:
0135: public static com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence getMBDiscussionPersistence() {
0136: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0137: .getService();
0138:
0139: return mbMessageLocalService.getMBDiscussionPersistence();
0140: }
0141:
0142: public static void setMBDiscussionPersistence(
0143: com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence mbDiscussionPersistence) {
0144: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0145: .getService();
0146:
0147: mbMessageLocalService
0148: .setMBDiscussionPersistence(mbDiscussionPersistence);
0149: }
0150:
0151: public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
0152: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0153: .getService();
0154:
0155: return mbMessageLocalService.getMBMessagePersistence();
0156: }
0157:
0158: public static void setMBMessagePersistence(
0159: com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
0160: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0161: .getService();
0162:
0163: mbMessageLocalService
0164: .setMBMessagePersistence(mbMessagePersistence);
0165: }
0166:
0167: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
0168: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0169: .getService();
0170:
0171: return mbMessageLocalService.getMBMessageFinder();
0172: }
0173:
0174: public static void setMBMessageFinder(
0175: com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
0176: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0177: .getService();
0178:
0179: mbMessageLocalService.setMBMessageFinder(mbMessageFinder);
0180: }
0181:
0182: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence getMBMessageFlagPersistence() {
0183: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0184: .getService();
0185:
0186: return mbMessageLocalService.getMBMessageFlagPersistence();
0187: }
0188:
0189: public static void setMBMessageFlagPersistence(
0190: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence mbMessageFlagPersistence) {
0191: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0192: .getService();
0193:
0194: mbMessageLocalService
0195: .setMBMessageFlagPersistence(mbMessageFlagPersistence);
0196: }
0197:
0198: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder getMBMessageFlagFinder() {
0199: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0200: .getService();
0201:
0202: return mbMessageLocalService.getMBMessageFlagFinder();
0203: }
0204:
0205: public static void setMBMessageFlagFinder(
0206: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder mbMessageFlagFinder) {
0207: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0208: .getService();
0209:
0210: mbMessageLocalService
0211: .setMBMessageFlagFinder(mbMessageFlagFinder);
0212: }
0213:
0214: public static com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence getMBStatsUserPersistence() {
0215: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0216: .getService();
0217:
0218: return mbMessageLocalService.getMBStatsUserPersistence();
0219: }
0220:
0221: public static void setMBStatsUserPersistence(
0222: com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence) {
0223: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0224: .getService();
0225:
0226: mbMessageLocalService
0227: .setMBStatsUserPersistence(mbStatsUserPersistence);
0228: }
0229:
0230: public static com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence getMBThreadPersistence() {
0231: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0232: .getService();
0233:
0234: return mbMessageLocalService.getMBThreadPersistence();
0235: }
0236:
0237: public static void setMBThreadPersistence(
0238: com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence mbThreadPersistence) {
0239: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0240: .getService();
0241:
0242: mbMessageLocalService
0243: .setMBThreadPersistence(mbThreadPersistence);
0244: }
0245:
0246: public static com.liferay.portlet.messageboards.service.persistence.MBThreadFinder getMBThreadFinder() {
0247: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0248: .getService();
0249:
0250: return mbMessageLocalService.getMBThreadFinder();
0251: }
0252:
0253: public static void setMBThreadFinder(
0254: com.liferay.portlet.messageboards.service.persistence.MBThreadFinder mbThreadFinder) {
0255: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0256: .getService();
0257:
0258: mbMessageLocalService.setMBThreadFinder(mbThreadFinder);
0259: }
0260:
0261: public static com.liferay.portal.service.persistence.ActivityTrackerPersistence getActivityTrackerPersistence() {
0262: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0263: .getService();
0264:
0265: return mbMessageLocalService.getActivityTrackerPersistence();
0266: }
0267:
0268: public static void setActivityTrackerPersistence(
0269: com.liferay.portal.service.persistence.ActivityTrackerPersistence activityTrackerPersistence) {
0270: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0271: .getService();
0272:
0273: mbMessageLocalService
0274: .setActivityTrackerPersistence(activityTrackerPersistence);
0275: }
0276:
0277: public static com.liferay.portal.service.persistence.ActivityTrackerFinder getActivityTrackerFinder() {
0278: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0279: .getService();
0280:
0281: return mbMessageLocalService.getActivityTrackerFinder();
0282: }
0283:
0284: public static void setActivityTrackerFinder(
0285: com.liferay.portal.service.persistence.ActivityTrackerFinder activityTrackerFinder) {
0286: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0287: .getService();
0288:
0289: mbMessageLocalService
0290: .setActivityTrackerFinder(activityTrackerFinder);
0291: }
0292:
0293: public static com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence() {
0294: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0295: .getService();
0296:
0297: return mbMessageLocalService.getCompanyPersistence();
0298: }
0299:
0300: public static void setCompanyPersistence(
0301: com.liferay.portal.service.persistence.CompanyPersistence companyPersistence) {
0302: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0303: .getService();
0304:
0305: mbMessageLocalService.setCompanyPersistence(companyPersistence);
0306: }
0307:
0308: public static com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence() {
0309: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0310: .getService();
0311:
0312: return mbMessageLocalService.getGroupPersistence();
0313: }
0314:
0315: public static void setGroupPersistence(
0316: com.liferay.portal.service.persistence.GroupPersistence groupPersistence) {
0317: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0318: .getService();
0319:
0320: mbMessageLocalService.setGroupPersistence(groupPersistence);
0321: }
0322:
0323: public static com.liferay.portal.service.persistence.GroupFinder getGroupFinder() {
0324: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0325: .getService();
0326:
0327: return mbMessageLocalService.getGroupFinder();
0328: }
0329:
0330: public static void setGroupFinder(
0331: com.liferay.portal.service.persistence.GroupFinder groupFinder) {
0332: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0333: .getService();
0334:
0335: mbMessageLocalService.setGroupFinder(groupFinder);
0336: }
0337:
0338: public static com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence() {
0339: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0340: .getService();
0341:
0342: return mbMessageLocalService.getPortletPreferencesPersistence();
0343: }
0344:
0345: public static void setPortletPreferencesPersistence(
0346: com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence) {
0347: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0348: .getService();
0349:
0350: mbMessageLocalService
0351: .setPortletPreferencesPersistence(portletPreferencesPersistence);
0352: }
0353:
0354: public static com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder() {
0355: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0356: .getService();
0357:
0358: return mbMessageLocalService.getPortletPreferencesFinder();
0359: }
0360:
0361: public static void setPortletPreferencesFinder(
0362: com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder) {
0363: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0364: .getService();
0365:
0366: mbMessageLocalService
0367: .setPortletPreferencesFinder(portletPreferencesFinder);
0368: }
0369:
0370: public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
0371: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0372: .getService();
0373:
0374: return mbMessageLocalService.getResourcePersistence();
0375: }
0376:
0377: public static void setResourcePersistence(
0378: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
0379: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0380: .getService();
0381:
0382: mbMessageLocalService
0383: .setResourcePersistence(resourcePersistence);
0384: }
0385:
0386: public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
0387: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0388: .getService();
0389:
0390: return mbMessageLocalService.getResourceFinder();
0391: }
0392:
0393: public static void setResourceFinder(
0394: com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
0395: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0396: .getService();
0397:
0398: mbMessageLocalService.setResourceFinder(resourceFinder);
0399: }
0400:
0401: public static com.liferay.portal.service.persistence.SubscriptionPersistence getSubscriptionPersistence() {
0402: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0403: .getService();
0404:
0405: return mbMessageLocalService.getSubscriptionPersistence();
0406: }
0407:
0408: public static void setSubscriptionPersistence(
0409: com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence) {
0410: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0411: .getService();
0412:
0413: mbMessageLocalService
0414: .setSubscriptionPersistence(subscriptionPersistence);
0415: }
0416:
0417: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
0418: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0419: .getService();
0420:
0421: return mbMessageLocalService.getUserPersistence();
0422: }
0423:
0424: public static void setUserPersistence(
0425: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
0426: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0427: .getService();
0428:
0429: mbMessageLocalService.setUserPersistence(userPersistence);
0430: }
0431:
0432: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
0433: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0434: .getService();
0435:
0436: return mbMessageLocalService.getUserFinder();
0437: }
0438:
0439: public static void setUserFinder(
0440: com.liferay.portal.service.persistence.UserFinder userFinder) {
0441: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0442: .getService();
0443:
0444: mbMessageLocalService.setUserFinder(userFinder);
0445: }
0446:
0447: public static com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence getBlogsEntryPersistence() {
0448: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0449: .getService();
0450:
0451: return mbMessageLocalService.getBlogsEntryPersistence();
0452: }
0453:
0454: public static void setBlogsEntryPersistence(
0455: com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence blogsEntryPersistence) {
0456: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0457: .getService();
0458:
0459: mbMessageLocalService
0460: .setBlogsEntryPersistence(blogsEntryPersistence);
0461: }
0462:
0463: public static com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder getBlogsEntryFinder() {
0464: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0465: .getService();
0466:
0467: return mbMessageLocalService.getBlogsEntryFinder();
0468: }
0469:
0470: public static void setBlogsEntryFinder(
0471: com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder blogsEntryFinder) {
0472: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0473: .getService();
0474:
0475: mbMessageLocalService.setBlogsEntryFinder(blogsEntryFinder);
0476: }
0477:
0478: public static com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence() {
0479: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0480: .getService();
0481:
0482: return mbMessageLocalService.getTagsAssetPersistence();
0483: }
0484:
0485: public static void setTagsAssetPersistence(
0486: com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence) {
0487: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0488: .getService();
0489:
0490: mbMessageLocalService
0491: .setTagsAssetPersistence(tagsAssetPersistence);
0492: }
0493:
0494: public static com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder() {
0495: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0496: .getService();
0497:
0498: return mbMessageLocalService.getTagsAssetFinder();
0499: }
0500:
0501: public static void setTagsAssetFinder(
0502: com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder) {
0503: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0504: .getService();
0505:
0506: mbMessageLocalService.setTagsAssetFinder(tagsAssetFinder);
0507: }
0508:
0509: public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
0510: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0511: .getService();
0512:
0513: return mbMessageLocalService.getTagsEntryPersistence();
0514: }
0515:
0516: public static void setTagsEntryPersistence(
0517: com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
0518: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0519: .getService();
0520:
0521: mbMessageLocalService
0522: .setTagsEntryPersistence(tagsEntryPersistence);
0523: }
0524:
0525: public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
0526: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0527: .getService();
0528:
0529: return mbMessageLocalService.getTagsEntryFinder();
0530: }
0531:
0532: public static void setTagsEntryFinder(
0533: com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
0534: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0535: .getService();
0536:
0537: mbMessageLocalService.setTagsEntryFinder(tagsEntryFinder);
0538: }
0539:
0540: public static void afterPropertiesSet() {
0541: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0542: .getService();
0543:
0544: mbMessageLocalService.afterPropertiesSet();
0545: }
0546:
0547: public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
0548: long userId, java.lang.String subject, java.lang.String body)
0549: throws com.liferay.portal.PortalException,
0550: com.liferay.portal.SystemException {
0551: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0552: .getService();
0553:
0554: return mbMessageLocalService.addDiscussionMessage(userId,
0555: subject, body);
0556: }
0557:
0558: public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
0559: long userId, long groupId, java.lang.String className,
0560: long classPK, long threadId, long parentMessageId,
0561: java.lang.String subject, java.lang.String body)
0562: throws com.liferay.portal.PortalException,
0563: com.liferay.portal.SystemException {
0564: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0565: .getService();
0566:
0567: return mbMessageLocalService.addDiscussionMessage(userId,
0568: groupId, className, classPK, threadId, parentMessageId,
0569: subject, body);
0570: }
0571:
0572: public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
0573: long userId, long groupId, java.lang.String className,
0574: long classPK, long threadId, long parentMessageId,
0575: java.lang.String subject, java.lang.String body,
0576: com.liferay.portal.theme.ThemeDisplay themeDisplay)
0577: throws com.liferay.portal.PortalException,
0578: com.liferay.portal.SystemException {
0579: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0580: .getService();
0581:
0582: return mbMessageLocalService.addDiscussionMessage(userId,
0583: groupId, className, classPK, threadId, parentMessageId,
0584: subject, body, themeDisplay);
0585: }
0586:
0587: public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0588: long userId, long categoryId, java.lang.String subject,
0589: java.lang.String body, java.util.List files,
0590: boolean anonymous, double priority,
0591: java.lang.String[] tagsEntries,
0592: javax.portlet.PortletPreferences prefs,
0593: boolean addCommunityPermissions,
0594: boolean addGuestPermissions,
0595: com.liferay.portal.theme.ThemeDisplay themeDisplay)
0596: throws com.liferay.portal.PortalException,
0597: com.liferay.portal.SystemException {
0598: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0599: .getService();
0600:
0601: return mbMessageLocalService.addMessage(userId, categoryId,
0602: subject, body, files, anonymous, priority, tagsEntries,
0603: prefs, addCommunityPermissions, addGuestPermissions,
0604: themeDisplay);
0605: }
0606:
0607: public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0608: long userId, long categoryId, java.lang.String subject,
0609: java.lang.String body, java.util.List files,
0610: boolean anonymous, double priority,
0611: java.lang.String[] tagsEntries,
0612: javax.portlet.PortletPreferences prefs,
0613: java.lang.String[] communityPermissions,
0614: java.lang.String[] guestPermissions,
0615: com.liferay.portal.theme.ThemeDisplay themeDisplay)
0616: throws com.liferay.portal.PortalException,
0617: com.liferay.portal.SystemException {
0618: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0619: .getService();
0620:
0621: return mbMessageLocalService.addMessage(userId, categoryId,
0622: subject, body, files, anonymous, priority, tagsEntries,
0623: prefs, communityPermissions, guestPermissions,
0624: themeDisplay);
0625: }
0626:
0627: public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0628: long userId, long categoryId, java.lang.String subject,
0629: java.lang.String body, java.util.List files,
0630: boolean anonymous, double priority,
0631: java.lang.String[] tagsEntries,
0632: javax.portlet.PortletPreferences prefs,
0633: java.lang.Boolean addCommunityPermissions,
0634: java.lang.Boolean addGuestPermissions,
0635: java.lang.String[] communityPermissions,
0636: java.lang.String[] guestPermissions,
0637: com.liferay.portal.theme.ThemeDisplay themeDisplay)
0638: throws com.liferay.portal.PortalException,
0639: com.liferay.portal.SystemException {
0640: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0641: .getService();
0642:
0643: return mbMessageLocalService.addMessage(userId, categoryId,
0644: subject, body, files, anonymous, priority, tagsEntries,
0645: prefs, addCommunityPermissions, addGuestPermissions,
0646: communityPermissions, guestPermissions, themeDisplay);
0647: }
0648:
0649: public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0650: long userId, long categoryId, long threadId,
0651: long parentMessageId, java.lang.String subject,
0652: java.lang.String body, java.util.List files,
0653: boolean anonymous, double priority,
0654: java.lang.String[] tagsEntries,
0655: javax.portlet.PortletPreferences prefs,
0656: boolean addCommunityPermissions,
0657: boolean addGuestPermissions,
0658: com.liferay.portal.theme.ThemeDisplay themeDisplay)
0659: throws com.liferay.portal.PortalException,
0660: com.liferay.portal.SystemException {
0661: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0662: .getService();
0663:
0664: return mbMessageLocalService.addMessage(userId, categoryId,
0665: threadId, parentMessageId, subject, body, files,
0666: anonymous, priority, tagsEntries, prefs,
0667: addCommunityPermissions, addGuestPermissions,
0668: themeDisplay);
0669: }
0670:
0671: public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0672: long userId, long categoryId, long threadId,
0673: long parentMessageId, java.lang.String subject,
0674: java.lang.String body, java.util.List files,
0675: boolean anonymous, double priority,
0676: java.lang.String[] tagsEntries,
0677: javax.portlet.PortletPreferences prefs,
0678: java.lang.String[] communityPermissions,
0679: java.lang.String[] guestPermissions,
0680: com.liferay.portal.theme.ThemeDisplay themeDisplay)
0681: throws com.liferay.portal.PortalException,
0682: com.liferay.portal.SystemException {
0683: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0684: .getService();
0685:
0686: return mbMessageLocalService.addMessage(userId, categoryId,
0687: threadId, parentMessageId, subject, body, files,
0688: anonymous, priority, tagsEntries, prefs,
0689: communityPermissions, guestPermissions, themeDisplay);
0690: }
0691:
0692: public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0693: java.lang.String uuid, long userId, long categoryId,
0694: long threadId, long parentMessageId,
0695: java.lang.String subject, java.lang.String body,
0696: java.util.List files, boolean anonymous, double priority,
0697: java.lang.String[] tagsEntries,
0698: javax.portlet.PortletPreferences prefs,
0699: boolean addCommunityPermissions,
0700: boolean addGuestPermissions,
0701: com.liferay.portal.theme.ThemeDisplay themeDisplay)
0702: throws com.liferay.portal.PortalException,
0703: com.liferay.portal.SystemException {
0704: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0705: .getService();
0706:
0707: return mbMessageLocalService.addMessage(uuid, userId,
0708: categoryId, threadId, parentMessageId, subject, body,
0709: files, anonymous, priority, tagsEntries, prefs,
0710: addCommunityPermissions, addGuestPermissions,
0711: themeDisplay);
0712: }
0713:
0714: public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0715: java.lang.String uuid, long userId, long categoryId,
0716: long threadId, long parentMessageId,
0717: java.lang.String subject, java.lang.String body,
0718: java.util.List files, boolean anonymous, double priority,
0719: java.lang.String[] tagsEntries,
0720: javax.portlet.PortletPreferences prefs,
0721: java.lang.Boolean addCommunityPermissions,
0722: java.lang.Boolean addGuestPermissions,
0723: java.lang.String[] communityPermissions,
0724: java.lang.String[] guestPermissions,
0725: com.liferay.portal.theme.ThemeDisplay themeDisplay)
0726: throws com.liferay.portal.PortalException,
0727: com.liferay.portal.SystemException {
0728: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0729: .getService();
0730:
0731: return mbMessageLocalService.addMessage(uuid, userId,
0732: categoryId, threadId, parentMessageId, subject, body,
0733: files, anonymous, priority, tagsEntries, prefs,
0734: addCommunityPermissions, addGuestPermissions,
0735: communityPermissions, guestPermissions, themeDisplay);
0736: }
0737:
0738: public static void addMessageResources(long categoryId,
0739: long messageId, boolean addCommunityPermissions,
0740: boolean addGuestPermissions)
0741: throws com.liferay.portal.PortalException,
0742: com.liferay.portal.SystemException {
0743: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0744: .getService();
0745:
0746: mbMessageLocalService
0747: .addMessageResources(categoryId, messageId,
0748: addCommunityPermissions, addGuestPermissions);
0749: }
0750:
0751: public static void addMessageResources(long categoryId,
0752: java.lang.String topicId, long messageId,
0753: boolean addCommunityPermissions, boolean addGuestPermissions)
0754: throws com.liferay.portal.PortalException,
0755: com.liferay.portal.SystemException {
0756: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0757: .getService();
0758:
0759: mbMessageLocalService
0760: .addMessageResources(categoryId, topicId, messageId,
0761: addCommunityPermissions, addGuestPermissions);
0762: }
0763:
0764: public static void addMessageResources(
0765: com.liferay.portlet.messageboards.model.MBCategory category,
0766: com.liferay.portlet.messageboards.model.MBMessage message,
0767: boolean addCommunityPermissions, boolean addGuestPermissions)
0768: throws com.liferay.portal.PortalException,
0769: com.liferay.portal.SystemException {
0770: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0771: .getService();
0772:
0773: mbMessageLocalService.addMessageResources(category, message,
0774: addCommunityPermissions, addGuestPermissions);
0775: }
0776:
0777: public static void addMessageResources(long categoryId,
0778: long messageId, java.lang.String[] communityPermissions,
0779: java.lang.String[] guestPermissions)
0780: throws com.liferay.portal.PortalException,
0781: com.liferay.portal.SystemException {
0782: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0783: .getService();
0784:
0785: mbMessageLocalService.addMessageResources(categoryId,
0786: messageId, communityPermissions, guestPermissions);
0787: }
0788:
0789: public static void addMessageResources(long categoryId,
0790: java.lang.String topicId, long messageId,
0791: java.lang.String[] communityPermissions,
0792: java.lang.String[] guestPermissions)
0793: throws com.liferay.portal.PortalException,
0794: com.liferay.portal.SystemException {
0795: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0796: .getService();
0797:
0798: mbMessageLocalService.addMessageResources(categoryId, topicId,
0799: messageId, communityPermissions, guestPermissions);
0800: }
0801:
0802: public static void addMessageResources(
0803: com.liferay.portlet.messageboards.model.MBCategory category,
0804: com.liferay.portlet.messageboards.model.MBMessage message,
0805: java.lang.String[] communityPermissions,
0806: java.lang.String[] guestPermissions)
0807: throws com.liferay.portal.PortalException,
0808: com.liferay.portal.SystemException {
0809: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0810: .getService();
0811:
0812: mbMessageLocalService.addMessageResources(category, message,
0813: communityPermissions, guestPermissions);
0814: }
0815:
0816: public static void deleteDiscussionMessage(long messageId)
0817: throws com.liferay.portal.PortalException,
0818: com.liferay.portal.SystemException {
0819: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0820: .getService();
0821:
0822: mbMessageLocalService.deleteDiscussionMessage(messageId);
0823: }
0824:
0825: public static void deleteDiscussionMessages(
0826: java.lang.String className, long classPK)
0827: throws com.liferay.portal.PortalException,
0828: com.liferay.portal.SystemException {
0829: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0830: .getService();
0831:
0832: mbMessageLocalService.deleteDiscussionMessages(className,
0833: classPK);
0834: }
0835:
0836: public static void deleteMessage(long messageId)
0837: throws com.liferay.portal.PortalException,
0838: com.liferay.portal.SystemException {
0839: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0840: .getService();
0841:
0842: mbMessageLocalService.deleteMessage(messageId);
0843: }
0844:
0845: public static void deleteMessage(
0846: com.liferay.portlet.messageboards.model.MBMessage message)
0847: throws com.liferay.portal.PortalException,
0848: com.liferay.portal.SystemException {
0849: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0850: .getService();
0851:
0852: mbMessageLocalService.deleteMessage(message);
0853: }
0854:
0855: public static java.util.List getCategoryMessages(long categoryId,
0856: int begin, int end)
0857: throws com.liferay.portal.SystemException {
0858: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0859: .getService();
0860:
0861: return mbMessageLocalService.getCategoryMessages(categoryId,
0862: begin, end);
0863: }
0864:
0865: public static java.util.List getCategoryMessages(long categoryId,
0866: int begin, int end,
0867: com.liferay.portal.kernel.util.OrderByComparator obc)
0868: throws com.liferay.portal.SystemException {
0869: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0870: .getService();
0871:
0872: return mbMessageLocalService.getCategoryMessages(categoryId,
0873: begin, end, obc);
0874: }
0875:
0876: public static int getCategoryMessagesCount(long categoryId)
0877: throws com.liferay.portal.SystemException {
0878: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0879: .getService();
0880:
0881: return mbMessageLocalService
0882: .getCategoryMessagesCount(categoryId);
0883: }
0884:
0885: public static int getCategoriesMessagesCount(
0886: java.util.List categoryIds)
0887: throws com.liferay.portal.SystemException {
0888: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0889: .getService();
0890:
0891: return mbMessageLocalService
0892: .getCategoriesMessagesCount(categoryIds);
0893: }
0894:
0895: public static java.util.List getCompanyMessages(long companyId,
0896: int begin, int end)
0897: throws com.liferay.portal.SystemException {
0898: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0899: .getService();
0900:
0901: return mbMessageLocalService.getCompanyMessages(companyId,
0902: begin, end);
0903: }
0904:
0905: public static java.util.List getCompanyMessages(long companyId,
0906: int begin, int end,
0907: com.liferay.portal.kernel.util.OrderByComparator obc)
0908: throws com.liferay.portal.SystemException {
0909: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0910: .getService();
0911:
0912: return mbMessageLocalService.getCompanyMessages(companyId,
0913: begin, end, obc);
0914: }
0915:
0916: public static int getCompanyMessagesCount(long companyId)
0917: throws com.liferay.portal.SystemException {
0918: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0919: .getService();
0920:
0921: return mbMessageLocalService.getCompanyMessagesCount(companyId);
0922: }
0923:
0924: public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
0925: long userId, java.lang.String className, long classPK)
0926: throws com.liferay.portal.PortalException,
0927: com.liferay.portal.SystemException {
0928: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0929: .getService();
0930:
0931: return mbMessageLocalService.getDiscussionMessageDisplay(
0932: userId, className, classPK);
0933: }
0934:
0935: public static int getDiscussionMessagesCount(long classNameId,
0936: long classPK) throws com.liferay.portal.SystemException {
0937: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0938: .getService();
0939:
0940: return mbMessageLocalService.getDiscussionMessagesCount(
0941: classNameId, classPK);
0942: }
0943:
0944: public static java.util.List getGroupMessages(long groupId,
0945: int begin, int end)
0946: throws com.liferay.portal.SystemException {
0947: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0948: .getService();
0949:
0950: return mbMessageLocalService.getGroupMessages(groupId, begin,
0951: end);
0952: }
0953:
0954: public static java.util.List getGroupMessages(long groupId,
0955: int begin, int end,
0956: com.liferay.portal.kernel.util.OrderByComparator obc)
0957: throws com.liferay.portal.SystemException {
0958: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0959: .getService();
0960:
0961: return mbMessageLocalService.getGroupMessages(groupId, begin,
0962: end, obc);
0963: }
0964:
0965: public static java.util.List getGroupMessages(long groupId,
0966: long userId, int begin, int end)
0967: throws com.liferay.portal.SystemException {
0968: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0969: .getService();
0970:
0971: return mbMessageLocalService.getGroupMessages(groupId, userId,
0972: begin, end);
0973: }
0974:
0975: public static java.util.List getGroupMessages(long groupId,
0976: long userId, int begin, int end,
0977: com.liferay.portal.kernel.util.OrderByComparator obc)
0978: throws com.liferay.portal.SystemException {
0979: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0980: .getService();
0981:
0982: return mbMessageLocalService.getGroupMessages(groupId, userId,
0983: begin, end, obc);
0984: }
0985:
0986: public static int getGroupMessagesCount(long groupId)
0987: throws com.liferay.portal.SystemException {
0988: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0989: .getService();
0990:
0991: return mbMessageLocalService.getGroupMessagesCount(groupId);
0992: }
0993:
0994: public static int getGroupMessagesCount(long groupId, long userId)
0995: throws com.liferay.portal.SystemException {
0996: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
0997: .getService();
0998:
0999: return mbMessageLocalService.getGroupMessagesCount(groupId,
1000: userId);
1001: }
1002:
1003: public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
1004: long messageId) throws com.liferay.portal.PortalException,
1005: com.liferay.portal.SystemException {
1006: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1007: .getService();
1008:
1009: return mbMessageLocalService.getMessage(messageId);
1010: }
1011:
1012: public static java.util.List getMessages(
1013: java.lang.String className, long classPK)
1014: throws com.liferay.portal.PortalException,
1015: com.liferay.portal.SystemException {
1016: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1017: .getService();
1018:
1019: return mbMessageLocalService.getMessages(className, classPK);
1020: }
1021:
1022: public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
1023: long messageId) throws com.liferay.portal.PortalException,
1024: com.liferay.portal.SystemException {
1025: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1026: .getService();
1027:
1028: return mbMessageLocalService.getMessageDisplay(messageId);
1029: }
1030:
1031: public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
1032: com.liferay.portlet.messageboards.model.MBMessage message)
1033: throws com.liferay.portal.PortalException,
1034: com.liferay.portal.SystemException {
1035: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1036: .getService();
1037:
1038: return mbMessageLocalService.getMessageDisplay(message);
1039: }
1040:
1041: public static java.util.List getNoAssetMessages()
1042: throws com.liferay.portal.SystemException {
1043: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1044: .getService();
1045:
1046: return mbMessageLocalService.getNoAssetMessages();
1047: }
1048:
1049: public static java.util.List getThreadMessages(long threadId)
1050: throws com.liferay.portal.SystemException {
1051: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1052: .getService();
1053:
1054: return mbMessageLocalService.getThreadMessages(threadId);
1055: }
1056:
1057: public static java.util.List getThreadMessages(long threadId,
1058: java.util.Comparator comparator)
1059: throws com.liferay.portal.SystemException {
1060: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1061: .getService();
1062:
1063: return mbMessageLocalService.getThreadMessages(threadId,
1064: comparator);
1065: }
1066:
1067: public static int getThreadMessagesCount(long threadId)
1068: throws com.liferay.portal.SystemException {
1069: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1070: .getService();
1071:
1072: return mbMessageLocalService.getThreadMessagesCount(threadId);
1073: }
1074:
1075: public static void subscribeMessage(long userId, long messageId)
1076: throws com.liferay.portal.PortalException,
1077: com.liferay.portal.SystemException {
1078: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1079: .getService();
1080:
1081: mbMessageLocalService.subscribeMessage(userId, messageId);
1082: }
1083:
1084: public static void unsubscribeMessage(long userId, long messageId)
1085: throws com.liferay.portal.PortalException,
1086: com.liferay.portal.SystemException {
1087: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1088: .getService();
1089:
1090: mbMessageLocalService.unsubscribeMessage(userId, messageId);
1091: }
1092:
1093: public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
1094: long userId, long messageId, java.lang.String subject,
1095: java.lang.String body)
1096: throws com.liferay.portal.PortalException,
1097: com.liferay.portal.SystemException {
1098: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1099: .getService();
1100:
1101: return mbMessageLocalService.updateDiscussionMessage(userId,
1102: messageId, subject, body);
1103: }
1104:
1105: public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
1106: long userId, long messageId, java.lang.String subject,
1107: java.lang.String body, java.util.List files,
1108: double priority, java.lang.String[] tagsEntries,
1109: javax.portlet.PortletPreferences prefs,
1110: com.liferay.portal.theme.ThemeDisplay themeDisplay)
1111: throws com.liferay.portal.PortalException,
1112: com.liferay.portal.SystemException {
1113: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1114: .getService();
1115:
1116: return mbMessageLocalService.updateMessage(userId, messageId,
1117: subject, body, files, priority, tagsEntries, prefs,
1118: themeDisplay);
1119: }
1120:
1121: public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
1122: long messageId, java.util.Date createDate,
1123: java.util.Date modifiedDate)
1124: throws com.liferay.portal.PortalException,
1125: com.liferay.portal.SystemException {
1126: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1127: .getService();
1128:
1129: return mbMessageLocalService.updateMessage(messageId,
1130: createDate, modifiedDate);
1131: }
1132:
1133: public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
1134: long messageId, java.lang.String body)
1135: throws com.liferay.portal.PortalException,
1136: com.liferay.portal.SystemException {
1137: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1138: .getService();
1139:
1140: return mbMessageLocalService.updateMessage(messageId, body);
1141: }
1142:
1143: public static void updateTagsAsset(long userId,
1144: com.liferay.portlet.messageboards.model.MBMessage message,
1145: java.lang.String[] tagsEntries)
1146: throws com.liferay.portal.PortalException,
1147: com.liferay.portal.SystemException {
1148: MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory
1149: .getService();
1150:
1151: mbMessageLocalService.updateTagsAsset(userId, message,
1152: tagsEntries);
1153: }
1154: }
|