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