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 java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.SystemException {
81          return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery, start,
82              end, orderByComparator);
83      }
84  
85      public int dynamicQueryCount(
86          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
87          throws com.liferay.portal.SystemException {
88          return _mbMessageFlagLocalService.dynamicQueryCount(dynamicQuery);
89      }
90  
91      public com.liferay.portlet.messageboards.model.MBMessageFlag getMBMessageFlag(
92          long messageFlagId)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException {
95          return _mbMessageFlagLocalService.getMBMessageFlag(messageFlagId);
96      }
97  
98      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> getMBMessageFlags(
99          int start, int end) throws com.liferay.portal.SystemException {
100         return _mbMessageFlagLocalService.getMBMessageFlags(start, end);
101     }
102 
103     public int getMBMessageFlagsCount()
104         throws com.liferay.portal.SystemException {
105         return _mbMessageFlagLocalService.getMBMessageFlagsCount();
106     }
107 
108     public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
109         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
110         throws com.liferay.portal.SystemException {
111         return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag);
112     }
113 
114     public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
115         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
116         boolean merge) throws com.liferay.portal.SystemException {
117         return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag,
118             merge);
119     }
120 
121     public void addQuestionFlag(long messageId)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         _mbMessageFlagLocalService.addQuestionFlag(messageId);
125     }
126 
127     public void addReadFlags(long userId,
128         com.liferay.portlet.messageboards.model.MBThread thread)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         _mbMessageFlagLocalService.addReadFlags(userId, thread);
132     }
133 
134     public void deleteFlags(long userId)
135         throws com.liferay.portal.SystemException {
136         _mbMessageFlagLocalService.deleteFlags(userId);
137     }
138 
139     public void deleteFlags(long messageId, int flag)
140         throws com.liferay.portal.SystemException {
141         _mbMessageFlagLocalService.deleteFlags(messageId, flag);
142     }
143 
144     public void deleteQuestionAndAnswerFlags(long threadId)
145         throws com.liferay.portal.SystemException {
146         _mbMessageFlagLocalService.deleteQuestionAndAnswerFlags(threadId);
147     }
148 
149     public void deleteThreadFlags(long threadId)
150         throws com.liferay.portal.SystemException {
151         _mbMessageFlagLocalService.deleteThreadFlags(threadId);
152     }
153 
154     public com.liferay.portlet.messageboards.model.MBMessageFlag getReadFlag(
155         long userId, com.liferay.portlet.messageboards.model.MBThread thread)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException {
158         return _mbMessageFlagLocalService.getReadFlag(userId, thread);
159     }
160 
161     public boolean hasAnswerFlag(long messageId)
162         throws com.liferay.portal.SystemException {
163         return _mbMessageFlagLocalService.hasAnswerFlag(messageId);
164     }
165 
166     public boolean hasQuestionFlag(long messageId)
167         throws com.liferay.portal.SystemException {
168         return _mbMessageFlagLocalService.hasQuestionFlag(messageId);
169     }
170 
171     public boolean hasReadFlag(long userId,
172         com.liferay.portlet.messageboards.model.MBThread thread)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         return _mbMessageFlagLocalService.hasReadFlag(userId, thread);
176     }
177 
178     public MBMessageFlagLocalService getWrappedMBMessageFlagLocalService() {
179         return _mbMessageFlagLocalService;
180     }
181 
182     private MBMessageFlagLocalService _mbMessageFlagLocalService;
183 }