1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  /**
18   * <a href="MBMessageFlagLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link MBMessageFlagLocalService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       MBMessageFlagLocalService
31   * @generated
32   */
33  public class MBMessageFlagLocalServiceWrapper
34      implements MBMessageFlagLocalService {
35      public MBMessageFlagLocalServiceWrapper(
36          MBMessageFlagLocalService mbMessageFlagLocalService) {
37          _mbMessageFlagLocalService = mbMessageFlagLocalService;
38      }
39  
40      public com.liferay.portlet.messageboards.model.MBMessageFlag addMBMessageFlag(
41          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
42          throws com.liferay.portal.SystemException {
43          return _mbMessageFlagLocalService.addMBMessageFlag(mbMessageFlag);
44      }
45  
46      public com.liferay.portlet.messageboards.model.MBMessageFlag createMBMessageFlag(
47          long messageFlagId) {
48          return _mbMessageFlagLocalService.createMBMessageFlag(messageFlagId);
49      }
50  
51      public void deleteMBMessageFlag(long messageFlagId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          _mbMessageFlagLocalService.deleteMBMessageFlag(messageFlagId);
55      }
56  
57      public void deleteMBMessageFlag(
58          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
59          throws com.liferay.portal.SystemException {
60          _mbMessageFlagLocalService.deleteMBMessageFlag(mbMessageFlag);
61      }
62  
63      @SuppressWarnings("rawtypes")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("rawtypes")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException {
74          return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("rawtypes")
78      public java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.SystemException {
83          return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery, start,
84              end, orderByComparator);
85      }
86  
87      public int dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.SystemException {
90          return _mbMessageFlagLocalService.dynamicQueryCount(dynamicQuery);
91      }
92  
93      public com.liferay.portlet.messageboards.model.MBMessageFlag getMBMessageFlag(
94          long messageFlagId)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException {
97          return _mbMessageFlagLocalService.getMBMessageFlag(messageFlagId);
98      }
99  
100     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> getMBMessageFlags(
101         int start, int end) throws com.liferay.portal.SystemException {
102         return _mbMessageFlagLocalService.getMBMessageFlags(start, end);
103     }
104 
105     public int getMBMessageFlagsCount()
106         throws com.liferay.portal.SystemException {
107         return _mbMessageFlagLocalService.getMBMessageFlagsCount();
108     }
109 
110     public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
111         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
112         throws com.liferay.portal.SystemException {
113         return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag);
114     }
115 
116     public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
117         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
118         boolean merge) throws com.liferay.portal.SystemException {
119         return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag,
120             merge);
121     }
122 
123     public void addQuestionFlag(long messageId)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         _mbMessageFlagLocalService.addQuestionFlag(messageId);
127     }
128 
129     public void addReadFlags(long userId,
130         com.liferay.portlet.messageboards.model.MBThread thread)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         _mbMessageFlagLocalService.addReadFlags(userId, thread);
134     }
135 
136     public void deleteAnswerFlags(long threadId, long messageId)
137         throws com.liferay.portal.SystemException {
138         _mbMessageFlagLocalService.deleteAnswerFlags(threadId, messageId);
139     }
140 
141     public void deleteFlags(long userId)
142         throws com.liferay.portal.SystemException {
143         _mbMessageFlagLocalService.deleteFlags(userId);
144     }
145 
146     public void deleteFlags(long messageId, int flag)
147         throws com.liferay.portal.SystemException {
148         _mbMessageFlagLocalService.deleteFlags(messageId, flag);
149     }
150 
151     public void deleteQuestionAndAnswerFlags(long threadId)
152         throws com.liferay.portal.SystemException {
153         _mbMessageFlagLocalService.deleteQuestionAndAnswerFlags(threadId);
154     }
155 
156     public void deleteThreadFlags(long threadId)
157         throws com.liferay.portal.SystemException {
158         _mbMessageFlagLocalService.deleteThreadFlags(threadId);
159     }
160 
161     public com.liferay.portlet.messageboards.model.MBMessageFlag getReadFlag(
162         long userId, com.liferay.portlet.messageboards.model.MBThread thread)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         return _mbMessageFlagLocalService.getReadFlag(userId, thread);
166     }
167 
168     public boolean hasAnswerFlag(long messageId)
169         throws com.liferay.portal.SystemException {
170         return _mbMessageFlagLocalService.hasAnswerFlag(messageId);
171     }
172 
173     public boolean hasQuestionFlag(long messageId)
174         throws com.liferay.portal.SystemException {
175         return _mbMessageFlagLocalService.hasQuestionFlag(messageId);
176     }
177 
178     public boolean hasReadFlag(long userId,
179         com.liferay.portlet.messageboards.model.MBThread thread)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         return _mbMessageFlagLocalService.hasReadFlag(userId, thread);
183     }
184 
185     public MBMessageFlagLocalService getWrappedMBMessageFlagLocalService() {
186         return _mbMessageFlagLocalService;
187     }
188 
189     private MBMessageFlagLocalService _mbMessageFlagLocalService;
190 }