001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link MBMessageFlagLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBMessageFlagLocalService
024     * @generated
025     */
026    public class MBMessageFlagLocalServiceWrapper
027            implements MBMessageFlagLocalService {
028            public MBMessageFlagLocalServiceWrapper(
029                    MBMessageFlagLocalService mbMessageFlagLocalService) {
030                    _mbMessageFlagLocalService = mbMessageFlagLocalService;
031            }
032    
033            /**
034            * Adds the message boards message flag to the database. Also notifies the appropriate model listeners.
035            *
036            * @param mbMessageFlag the message boards message flag
037            * @return the message boards message flag that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.messageboards.model.MBMessageFlag addMBMessageFlag(
041                    com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _mbMessageFlagLocalService.addMBMessageFlag(mbMessageFlag);
044            }
045    
046            /**
047            * Creates a new message boards message flag with the primary key. Does not add the message boards message flag to the database.
048            *
049            * @param messageFlagId the primary key for the new message boards message flag
050            * @return the new message boards message flag
051            */
052            public com.liferay.portlet.messageboards.model.MBMessageFlag createMBMessageFlag(
053                    long messageFlagId) {
054                    return _mbMessageFlagLocalService.createMBMessageFlag(messageFlagId);
055            }
056    
057            /**
058            * Deletes the message boards message flag with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param messageFlagId the primary key of the message boards message flag
061            * @throws PortalException if a message boards message flag with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteMBMessageFlag(long messageFlagId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _mbMessageFlagLocalService.deleteMBMessageFlag(messageFlagId);
068            }
069    
070            /**
071            * Deletes the message boards message flag from the database. Also notifies the appropriate model listeners.
072            *
073            * @param mbMessageFlag the message boards message flag
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteMBMessageFlag(
077                    com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _mbMessageFlagLocalService.deleteMBMessageFlag(mbMessageFlag);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _mbMessageFlagLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _mbMessageFlagLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Returns the message boards message flag with the primary key.
155            *
156            * @param messageFlagId the primary key of the message boards message flag
157            * @return the message boards message flag
158            * @throws PortalException if a message boards message flag with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.messageboards.model.MBMessageFlag getMBMessageFlag(
162                    long messageFlagId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _mbMessageFlagLocalService.getMBMessageFlag(messageFlagId);
166            }
167    
168            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _mbMessageFlagLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns a range of all the message boards message flags.
177            *
178            * <p>
179            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
180            * </p>
181            *
182            * @param start the lower bound of the range of message boards message flags
183            * @param end the upper bound of the range of message boards message flags (not inclusive)
184            * @return the range of message boards message flags
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> getMBMessageFlags(
188                    int start, int end)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _mbMessageFlagLocalService.getMBMessageFlags(start, end);
191            }
192    
193            /**
194            * Returns the number of message boards message flags.
195            *
196            * @return the number of message boards message flags
197            * @throws SystemException if a system exception occurred
198            */
199            public int getMBMessageFlagsCount()
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _mbMessageFlagLocalService.getMBMessageFlagsCount();
202            }
203    
204            /**
205            * Updates the message boards message flag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
206            *
207            * @param mbMessageFlag the message boards message flag
208            * @return the message boards message flag that was updated
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
212                    com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag);
215            }
216    
217            /**
218            * Updates the message boards message flag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
219            *
220            * @param mbMessageFlag the message boards message flag
221            * @param merge whether to merge the message boards message flag with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
222            * @return the message boards message flag that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
226                    com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
227                    boolean merge)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _mbMessageFlagLocalService.updateMBMessageFlag(mbMessageFlag,
230                            merge);
231            }
232    
233            /**
234            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _mbMessageFlagLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _mbMessageFlagLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public void addQuestionFlag(long messageId)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    _mbMessageFlagLocalService.addQuestionFlag(messageId);
255            }
256    
257            public void addReadFlags(long userId,
258                    com.liferay.portlet.messageboards.model.MBThread thread)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    _mbMessageFlagLocalService.addReadFlags(userId, thread);
262            }
263    
264            public void deleteAnswerFlags(long threadId, long messageId)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    _mbMessageFlagLocalService.deleteAnswerFlags(threadId, messageId);
267            }
268    
269            public void deleteFlag(long messageFlagId)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    _mbMessageFlagLocalService.deleteFlag(messageFlagId);
273            }
274    
275            public void deleteFlag(
276                    com.liferay.portlet.messageboards.model.MBMessageFlag messageFlag)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    _mbMessageFlagLocalService.deleteFlag(messageFlag);
279            }
280    
281            public void deleteFlags(long userId)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    _mbMessageFlagLocalService.deleteFlags(userId);
284            }
285    
286            public void deleteFlags(long messageId, int flag)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    _mbMessageFlagLocalService.deleteFlags(messageId, flag);
289            }
290    
291            public void deleteQuestionAndAnswerFlags(long threadId)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    _mbMessageFlagLocalService.deleteQuestionAndAnswerFlags(threadId);
294            }
295    
296            public void deleteThreadFlags(long threadId)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    _mbMessageFlagLocalService.deleteThreadFlags(threadId);
299            }
300    
301            public com.liferay.portlet.messageboards.model.MBMessageFlag getReadFlag(
302                    long userId, com.liferay.portlet.messageboards.model.MBThread thread)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    return _mbMessageFlagLocalService.getReadFlag(userId, thread);
306            }
307    
308            public boolean hasAnswerFlag(long messageId)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _mbMessageFlagLocalService.hasAnswerFlag(messageId);
311            }
312    
313            public boolean hasQuestionFlag(long messageId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _mbMessageFlagLocalService.hasQuestionFlag(messageId);
316            }
317    
318            public boolean hasReadFlag(long userId,
319                    com.liferay.portlet.messageboards.model.MBThread thread)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    return _mbMessageFlagLocalService.hasReadFlag(userId, thread);
323            }
324    
325            public MBMessageFlagLocalService getWrappedMBMessageFlagLocalService() {
326                    return _mbMessageFlagLocalService;
327            }
328    
329            public void setWrappedMBMessageFlagLocalService(
330                    MBMessageFlagLocalService mbMessageFlagLocalService) {
331                    _mbMessageFlagLocalService = mbMessageFlagLocalService;
332            }
333    
334            private MBMessageFlagLocalService _mbMessageFlagLocalService;
335    }