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.kernel.exception.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.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException {
55          _mbMessageFlagLocalService.deleteMBMessageFlag(messageFlagId);
56      }
57  
58      public void deleteMBMessageFlag(
59          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
60          throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
94              com.liferay.portal.kernel.exception.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)
100         throws com.liferay.portal.kernel.exception.SystemException {
101         return _mbMessageFlagLocalService.getMBMessageFlags(start, end);
102     }
103 
104     public int getMBMessageFlagsCount()
105         throws com.liferay.portal.kernel.exception.SystemException {
106         return _mbMessageFlagLocalService.getMBMessageFlagsCount();
107     }
108 
109     public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
110         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
111         throws com.liferay.portal.kernel.exception.SystemException {
112         return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag);
113     }
114 
115     public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
116         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
117         boolean merge)
118         throws com.liferay.portal.kernel.exception.SystemException {
119         return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag,
120             merge);
121     }
122 
123     public void addReadFlags(long userId,
124         com.liferay.portlet.messageboards.model.MBThread thread)
125         throws com.liferay.portal.kernel.exception.PortalException,
126             com.liferay.portal.kernel.exception.SystemException {
127         _mbMessageFlagLocalService.addReadFlags(userId, thread);
128     }
129 
130     public void addQuestionFlag(long messageId)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         _mbMessageFlagLocalService.addQuestionFlag(messageId);
134     }
135 
136     public void deleteFlags(long userId)
137         throws com.liferay.portal.kernel.exception.SystemException {
138         _mbMessageFlagLocalService.deleteFlags(userId);
139     }
140 
141     public void deleteFlags(long messageId, int flag)
142         throws com.liferay.portal.kernel.exception.SystemException {
143         _mbMessageFlagLocalService.deleteFlags(messageId, flag);
144     }
145 
146     public void deleteQuestionAndAnswerFlags(long threadId)
147         throws com.liferay.portal.kernel.exception.SystemException {
148         _mbMessageFlagLocalService.deleteQuestionAndAnswerFlags(threadId);
149     }
150 
151     public void deleteThreadFlags(long threadId)
152         throws com.liferay.portal.kernel.exception.SystemException {
153         _mbMessageFlagLocalService.deleteThreadFlags(threadId);
154     }
155 
156     public com.liferay.portlet.messageboards.model.MBMessageFlag getReadFlag(
157         long userId, com.liferay.portlet.messageboards.model.MBThread thread)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException {
160         return _mbMessageFlagLocalService.getReadFlag(userId, thread);
161     }
162 
163     public boolean hasAnswerFlag(long messageId)
164         throws com.liferay.portal.kernel.exception.SystemException {
165         return _mbMessageFlagLocalService.hasAnswerFlag(messageId);
166     }
167 
168     public boolean hasQuestionFlag(long messageId)
169         throws com.liferay.portal.kernel.exception.SystemException {
170         return _mbMessageFlagLocalService.hasQuestionFlag(messageId);
171     }
172 
173     public boolean hasReadFlag(long userId,
174         com.liferay.portlet.messageboards.model.MBThread thread)
175         throws com.liferay.portal.kernel.exception.PortalException,
176             com.liferay.portal.kernel.exception.SystemException {
177         return _mbMessageFlagLocalService.hasReadFlag(userId, thread);
178     }
179 
180     public MBMessageFlagLocalService getWrappedMBMessageFlagLocalService() {
181         return _mbMessageFlagLocalService;
182     }
183 
184     private MBMessageFlagLocalService _mbMessageFlagLocalService;
185 }