001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.mobiledevicerules.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link MDRActionLocalService}.
021     *
022     * @author Edward C. Han
023     * @see MDRActionLocalService
024     * @generated
025     */
026    public class MDRActionLocalServiceWrapper implements MDRActionLocalService,
027            ServiceWrapper<MDRActionLocalService> {
028            public MDRActionLocalServiceWrapper(
029                    MDRActionLocalService mdrActionLocalService) {
030                    _mdrActionLocalService = mdrActionLocalService;
031            }
032    
033            /**
034            * Adds the m d r action to the database. Also notifies the appropriate model listeners.
035            *
036            * @param mdrAction the m d r action
037            * @return the m d r action that was added
038            * @throws SystemException if a system exception occurred
039            */
040            @Override
041            public com.liferay.portlet.mobiledevicerules.model.MDRAction addMDRAction(
042                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _mdrActionLocalService.addMDRAction(mdrAction);
045            }
046    
047            /**
048            * Creates a new m d r action with the primary key. Does not add the m d r action to the database.
049            *
050            * @param actionId the primary key for the new m d r action
051            * @return the new m d r action
052            */
053            @Override
054            public com.liferay.portlet.mobiledevicerules.model.MDRAction createMDRAction(
055                    long actionId) {
056                    return _mdrActionLocalService.createMDRAction(actionId);
057            }
058    
059            /**
060            * Deletes the m d r action with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param actionId the primary key of the m d r action
063            * @return the m d r action that was removed
064            * @throws PortalException if a m d r action with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            @Override
068            public com.liferay.portlet.mobiledevicerules.model.MDRAction deleteMDRAction(
069                    long actionId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _mdrActionLocalService.deleteMDRAction(actionId);
073            }
074    
075            /**
076            * Deletes the m d r action from the database. Also notifies the appropriate model listeners.
077            *
078            * @param mdrAction the m d r action
079            * @return the m d r action that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            @Override
083            public com.liferay.portlet.mobiledevicerules.model.MDRAction deleteMDRAction(
084                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
085                    throws com.liferay.portal.kernel.exception.SystemException {
086                    return _mdrActionLocalService.deleteMDRAction(mdrAction);
087            }
088    
089            @Override
090            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
091                    return _mdrActionLocalService.dynamicQuery();
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns the matching rows.
096            *
097            * @param dynamicQuery the dynamic query
098            * @return the matching rows
099            * @throws SystemException if a system exception occurred
100            */
101            @Override
102            @SuppressWarnings("rawtypes")
103            public java.util.List dynamicQuery(
104                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return _mdrActionLocalService.dynamicQuery(dynamicQuery);
107            }
108    
109            /**
110            * Performs a dynamic query on the database and returns a range of the matching rows.
111            *
112            * <p>
113            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
114            * </p>
115            *
116            * @param dynamicQuery the dynamic query
117            * @param start the lower bound of the range of model instances
118            * @param end the upper bound of the range of model instances (not inclusive)
119            * @return the range of matching rows
120            * @throws SystemException if a system exception occurred
121            */
122            @Override
123            @SuppressWarnings("rawtypes")
124            public java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return _mdrActionLocalService.dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @Override
145            @SuppressWarnings("rawtypes")
146            public java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _mdrActionLocalService.dynamicQuery(dynamicQuery, start, end,
152                            orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            @Override
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _mdrActionLocalService.dynamicQueryCount(dynamicQuery);
167            }
168    
169            /**
170            * Returns the number of rows that match the dynamic query.
171            *
172            * @param dynamicQuery the dynamic query
173            * @param projection the projection to apply to the query
174            * @return the number of rows that match the dynamic query
175            * @throws SystemException if a system exception occurred
176            */
177            @Override
178            public long dynamicQueryCount(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
180                    com.liferay.portal.kernel.dao.orm.Projection projection)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    return _mdrActionLocalService.dynamicQueryCount(dynamicQuery, projection);
183            }
184    
185            @Override
186            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchMDRAction(
187                    long actionId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return _mdrActionLocalService.fetchMDRAction(actionId);
190            }
191    
192            /**
193            * Returns the m d r action with the matching UUID and company.
194            *
195            * @param uuid the m d r action's UUID
196            * @param companyId the primary key of the company
197            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            @Override
201            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchMDRActionByUuidAndCompanyId(
202                    java.lang.String uuid, long companyId)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _mdrActionLocalService.fetchMDRActionByUuidAndCompanyId(uuid,
205                            companyId);
206            }
207    
208            /**
209            * Returns the m d r action matching the UUID and group.
210            *
211            * @param uuid the m d r action's UUID
212            * @param groupId the primary key of the group
213            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            @Override
217            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchMDRActionByUuidAndGroupId(
218                    java.lang.String uuid, long groupId)
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    return _mdrActionLocalService.fetchMDRActionByUuidAndGroupId(uuid,
221                            groupId);
222            }
223    
224            /**
225            * Returns the m d r action with the primary key.
226            *
227            * @param actionId the primary key of the m d r action
228            * @return the m d r action
229            * @throws PortalException if a m d r action with the primary key could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            @Override
233            public com.liferay.portlet.mobiledevicerules.model.MDRAction getMDRAction(
234                    long actionId)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException {
237                    return _mdrActionLocalService.getMDRAction(actionId);
238            }
239    
240            @Override
241            public com.liferay.portal.model.PersistedModel getPersistedModel(
242                    java.io.Serializable primaryKeyObj)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException {
245                    return _mdrActionLocalService.getPersistedModel(primaryKeyObj);
246            }
247    
248            /**
249            * Returns the m d r action with the matching UUID and company.
250            *
251            * @param uuid the m d r action's UUID
252            * @param companyId the primary key of the company
253            * @return the matching m d r action
254            * @throws PortalException if a matching m d r action could not be found
255            * @throws SystemException if a system exception occurred
256            */
257            @Override
258            public com.liferay.portlet.mobiledevicerules.model.MDRAction getMDRActionByUuidAndCompanyId(
259                    java.lang.String uuid, long companyId)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException {
262                    return _mdrActionLocalService.getMDRActionByUuidAndCompanyId(uuid,
263                            companyId);
264            }
265    
266            /**
267            * Returns the m d r action matching the UUID and group.
268            *
269            * @param uuid the m d r action's UUID
270            * @param groupId the primary key of the group
271            * @return the matching m d r action
272            * @throws PortalException if a matching m d r action could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            @Override
276            public com.liferay.portlet.mobiledevicerules.model.MDRAction getMDRActionByUuidAndGroupId(
277                    java.lang.String uuid, long groupId)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    return _mdrActionLocalService.getMDRActionByUuidAndGroupId(uuid, groupId);
281            }
282    
283            /**
284            * Returns a range of all the m d r actions.
285            *
286            * <p>
287            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
288            * </p>
289            *
290            * @param start the lower bound of the range of m d r actions
291            * @param end the upper bound of the range of m d r actions (not inclusive)
292            * @return the range of m d r actions
293            * @throws SystemException if a system exception occurred
294            */
295            @Override
296            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getMDRActions(
297                    int start, int end)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return _mdrActionLocalService.getMDRActions(start, end);
300            }
301    
302            /**
303            * Returns the number of m d r actions.
304            *
305            * @return the number of m d r actions
306            * @throws SystemException if a system exception occurred
307            */
308            @Override
309            public int getMDRActionsCount()
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return _mdrActionLocalService.getMDRActionsCount();
312            }
313    
314            /**
315            * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
316            *
317            * @param mdrAction the m d r action
318            * @return the m d r action that was updated
319            * @throws SystemException if a system exception occurred
320            */
321            @Override
322            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateMDRAction(
323                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _mdrActionLocalService.updateMDRAction(mdrAction);
326            }
327    
328            /**
329            * Returns the Spring bean ID for this bean.
330            *
331            * @return the Spring bean ID for this bean
332            */
333            @Override
334            public java.lang.String getBeanIdentifier() {
335                    return _mdrActionLocalService.getBeanIdentifier();
336            }
337    
338            /**
339            * Sets the Spring bean ID for this bean.
340            *
341            * @param beanIdentifier the Spring bean ID for this bean
342            */
343            @Override
344            public void setBeanIdentifier(java.lang.String beanIdentifier) {
345                    _mdrActionLocalService.setBeanIdentifier(beanIdentifier);
346            }
347    
348            @Override
349            public com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
350                    long ruleGroupInstanceId,
351                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
352                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
353                    java.lang.String type, java.lang.String typeSettings,
354                    com.liferay.portal.service.ServiceContext serviceContext)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _mdrActionLocalService.addAction(ruleGroupInstanceId, nameMap,
358                            descriptionMap, type, typeSettings, serviceContext);
359            }
360    
361            @Override
362            public com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
363                    long ruleGroupInstanceId,
364                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
365                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
366                    java.lang.String type,
367                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
368                    com.liferay.portal.service.ServiceContext serviceContext)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return _mdrActionLocalService.addAction(ruleGroupInstanceId, nameMap,
372                            descriptionMap, type, typeSettingsProperties, serviceContext);
373            }
374    
375            @Override
376            public void deleteAction(long actionId)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    _mdrActionLocalService.deleteAction(actionId);
379            }
380    
381            @Override
382            public void deleteAction(
383                    com.liferay.portlet.mobiledevicerules.model.MDRAction action)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    _mdrActionLocalService.deleteAction(action);
386            }
387    
388            @Override
389            public void deleteActions(long ruleGroupInstanceId)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    _mdrActionLocalService.deleteActions(ruleGroupInstanceId);
392            }
393    
394            @Override
395            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchAction(
396                    long actionId)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _mdrActionLocalService.fetchAction(actionId);
399            }
400    
401            @Override
402            public com.liferay.portlet.mobiledevicerules.model.MDRAction getAction(
403                    long actionId)
404                    throws com.liferay.portal.kernel.exception.PortalException,
405                            com.liferay.portal.kernel.exception.SystemException {
406                    return _mdrActionLocalService.getAction(actionId);
407            }
408    
409            @Override
410            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
411                    long ruleGroupInstanceId)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _mdrActionLocalService.getActions(ruleGroupInstanceId);
414            }
415    
416            @Override
417            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
418                    long ruleGroupInstanceId, int start, int end)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _mdrActionLocalService.getActions(ruleGroupInstanceId, start, end);
421            }
422    
423            @Override
424            public int getActionsCount(long ruleGroupInstanceId)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return _mdrActionLocalService.getActionsCount(ruleGroupInstanceId);
427            }
428    
429            @Override
430            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
431                    long actionId,
432                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
433                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
434                    java.lang.String type, java.lang.String typeSettings,
435                    com.liferay.portal.service.ServiceContext serviceContext)
436                    throws com.liferay.portal.kernel.exception.PortalException,
437                            com.liferay.portal.kernel.exception.SystemException {
438                    return _mdrActionLocalService.updateAction(actionId, nameMap,
439                            descriptionMap, type, typeSettings, serviceContext);
440            }
441    
442            @Override
443            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
444                    long actionId,
445                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
446                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
447                    java.lang.String type,
448                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
449                    com.liferay.portal.service.ServiceContext serviceContext)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    return _mdrActionLocalService.updateAction(actionId, nameMap,
453                            descriptionMap, type, typeSettingsProperties, serviceContext);
454            }
455    
456            /**
457             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
458             */
459            public MDRActionLocalService getWrappedMDRActionLocalService() {
460                    return _mdrActionLocalService;
461            }
462    
463            /**
464             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
465             */
466            public void setWrappedMDRActionLocalService(
467                    MDRActionLocalService mdrActionLocalService) {
468                    _mdrActionLocalService = mdrActionLocalService;
469            }
470    
471            @Override
472            public MDRActionLocalService getWrappedService() {
473                    return _mdrActionLocalService;
474            }
475    
476            @Override
477            public void setWrappedService(MDRActionLocalService mdrActionLocalService) {
478                    _mdrActionLocalService = mdrActionLocalService;
479            }
480    
481            private MDRActionLocalService _mdrActionLocalService;
482    }