1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service;
24  
25  
26  /**
27   * <a href="MBMessageFlagLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link MBMessageFlagLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       MBMessageFlagLocalService
40   * @generated
41   */
42  public class MBMessageFlagLocalServiceWrapper
43      implements MBMessageFlagLocalService {
44      public MBMessageFlagLocalServiceWrapper(
45          MBMessageFlagLocalService mbMessageFlagLocalService) {
46          _mbMessageFlagLocalService = mbMessageFlagLocalService;
47      }
48  
49      public com.liferay.portlet.messageboards.model.MBMessageFlag addMBMessageFlag(
50          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
51          throws com.liferay.portal.SystemException {
52          return _mbMessageFlagLocalService.addMBMessageFlag(mbMessageFlag);
53      }
54  
55      public com.liferay.portlet.messageboards.model.MBMessageFlag createMBMessageFlag(
56          long messageFlagId) {
57          return _mbMessageFlagLocalService.createMBMessageFlag(messageFlagId);
58      }
59  
60      public void deleteMBMessageFlag(long messageFlagId)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException {
63          _mbMessageFlagLocalService.deleteMBMessageFlag(messageFlagId);
64      }
65  
66      public void deleteMBMessageFlag(
67          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
68          throws com.liferay.portal.SystemException {
69          _mbMessageFlagLocalService.deleteMBMessageFlag(mbMessageFlag);
70      }
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException {
75          return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery);
76      }
77  
78      public java.util.List<Object> dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end) throws com.liferay.portal.SystemException {
81          return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery, start, end);
82      }
83  
84      public com.liferay.portlet.messageboards.model.MBMessageFlag getMBMessageFlag(
85          long messageFlagId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException {
88          return _mbMessageFlagLocalService.getMBMessageFlag(messageFlagId);
89      }
90  
91      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> getMBMessageFlags(
92          int start, int end) throws com.liferay.portal.SystemException {
93          return _mbMessageFlagLocalService.getMBMessageFlags(start, end);
94      }
95  
96      public int getMBMessageFlagsCount()
97          throws com.liferay.portal.SystemException {
98          return _mbMessageFlagLocalService.getMBMessageFlagsCount();
99      }
100 
101     public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
102         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
103         throws com.liferay.portal.SystemException {
104         return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag);
105     }
106 
107     public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
108         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
109         boolean merge) throws com.liferay.portal.SystemException {
110         return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag,
111             merge);
112     }
113 
114     public void addQuestionFlag(long messageId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         _mbMessageFlagLocalService.addQuestionFlag(messageId);
118     }
119 
120     public void addReadFlags(long userId,
121         com.liferay.portlet.messageboards.model.MBThread thread)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         _mbMessageFlagLocalService.addReadFlags(userId, thread);
125     }
126 
127     public void deleteFlags(long userId)
128         throws com.liferay.portal.SystemException {
129         _mbMessageFlagLocalService.deleteFlags(userId);
130     }
131 
132     public void deleteFlags(long messageId, int flag)
133         throws com.liferay.portal.SystemException {
134         _mbMessageFlagLocalService.deleteFlags(messageId, flag);
135     }
136 
137     public void deleteQuestionAndAnswerFlags(long threadId)
138         throws com.liferay.portal.SystemException {
139         _mbMessageFlagLocalService.deleteQuestionAndAnswerFlags(threadId);
140     }
141 
142     public void deleteThreadFlags(long threadId)
143         throws com.liferay.portal.SystemException {
144         _mbMessageFlagLocalService.deleteThreadFlags(threadId);
145     }
146 
147     public com.liferay.portlet.messageboards.model.MBMessageFlag getReadFlag(
148         long userId, com.liferay.portlet.messageboards.model.MBThread thread)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException {
151         return _mbMessageFlagLocalService.getReadFlag(userId, thread);
152     }
153 
154     public boolean hasAnswerFlag(long messageId)
155         throws com.liferay.portal.SystemException {
156         return _mbMessageFlagLocalService.hasAnswerFlag(messageId);
157     }
158 
159     public boolean hasQuestionFlag(long messageId)
160         throws com.liferay.portal.SystemException {
161         return _mbMessageFlagLocalService.hasQuestionFlag(messageId);
162     }
163 
164     public boolean hasReadFlag(long userId,
165         com.liferay.portlet.messageboards.model.MBThread thread)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         return _mbMessageFlagLocalService.hasReadFlag(userId, thread);
169     }
170 
171     public MBMessageFlagLocalService getWrappedMBMessageFlagLocalService() {
172         return _mbMessageFlagLocalService;
173     }
174 
175     private MBMessageFlagLocalService _mbMessageFlagLocalService;
176 }