1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  
18  /**
19   * <a href="MBMessageFlagLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link MBMessageFlagLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       MBMessageFlagLocalService
32   * @generated
33   */
34  public class MBMessageFlagLocalServiceWrapper
35      implements MBMessageFlagLocalService {
36      public MBMessageFlagLocalServiceWrapper(
37          MBMessageFlagLocalService mbMessageFlagLocalService) {
38          _mbMessageFlagLocalService = mbMessageFlagLocalService;
39      }
40  
41      public com.liferay.portlet.messageboards.model.MBMessageFlag addMBMessageFlag(
42          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
43          throws com.liferay.portal.SystemException {
44          return _mbMessageFlagLocalService.addMBMessageFlag(mbMessageFlag);
45      }
46  
47      public com.liferay.portlet.messageboards.model.MBMessageFlag createMBMessageFlag(
48          long messageFlagId) {
49          return _mbMessageFlagLocalService.createMBMessageFlag(messageFlagId);
50      }
51  
52      public void deleteMBMessageFlag(long messageFlagId)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException {
55          _mbMessageFlagLocalService.deleteMBMessageFlag(messageFlagId);
56      }
57  
58      public void deleteMBMessageFlag(
59          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
60          throws com.liferay.portal.SystemException {
61          _mbMessageFlagLocalService.deleteMBMessageFlag(mbMessageFlag);
62      }
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException {
73          return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery, start, end);
74      }
75  
76      public com.liferay.portlet.messageboards.model.MBMessageFlag getMBMessageFlag(
77          long messageFlagId)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException {
80          return _mbMessageFlagLocalService.getMBMessageFlag(messageFlagId);
81      }
82  
83      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> getMBMessageFlags(
84          int start, int end) throws com.liferay.portal.SystemException {
85          return _mbMessageFlagLocalService.getMBMessageFlags(start, end);
86      }
87  
88      public int getMBMessageFlagsCount()
89          throws com.liferay.portal.SystemException {
90          return _mbMessageFlagLocalService.getMBMessageFlagsCount();
91      }
92  
93      public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
94          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
95          throws com.liferay.portal.SystemException {
96          return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag);
97      }
98  
99      public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
100         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
101         boolean merge) throws com.liferay.portal.SystemException {
102         return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag,
103             merge);
104     }
105 
106     public void addReadFlags(long userId,
107         java.util.List<com.liferay.portlet.messageboards.model.MBMessage> messages)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException {
110         _mbMessageFlagLocalService.addReadFlags(userId, messages);
111     }
112 
113     public void addReadFlags(long userId,
114         com.liferay.portlet.messageboards.model.MBThread thread)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         _mbMessageFlagLocalService.addReadFlags(userId, thread);
118     }
119 
120     public void deleteFlags(long userId)
121         throws com.liferay.portal.SystemException {
122         _mbMessageFlagLocalService.deleteFlags(userId);
123     }
124 
125     public void deleteThreadFlags(long threadId)
126         throws com.liferay.portal.SystemException {
127         _mbMessageFlagLocalService.deleteThreadFlags(threadId);
128     }
129 
130     public com.liferay.portlet.messageboards.model.MBMessageFlag getReadFlag(
131         long userId, com.liferay.portlet.messageboards.model.MBThread thread)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         return _mbMessageFlagLocalService.getReadFlag(userId, thread);
135     }
136 
137     public boolean hasReadFlag(long userId, long messageId)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         return _mbMessageFlagLocalService.hasReadFlag(userId, messageId);
141     }
142 
143     public boolean hasReadFlag(long userId,
144         com.liferay.portlet.messageboards.model.MBThread thread)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         return _mbMessageFlagLocalService.hasReadFlag(userId, thread);
148     }
149 
150     public MBMessageFlagLocalService getWrappedMBMessageFlagLocalService() {
151         return _mbMessageFlagLocalService;
152     }
153 
154     private MBMessageFlagLocalService _mbMessageFlagLocalService;
155 }