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