001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link MDRActionLocalService}.
020     * </p>
021     *
022     * @author    Edward C. Han
023     * @see       MDRActionLocalService
024     * @generated
025     */
026    public class MDRActionLocalServiceWrapper implements MDRActionLocalService {
027            public MDRActionLocalServiceWrapper(
028                    MDRActionLocalService mdrActionLocalService) {
029                    _mdrActionLocalService = mdrActionLocalService;
030            }
031    
032            /**
033            * Adds the m d r action to the database. Also notifies the appropriate model listeners.
034            *
035            * @param mdrAction the m d r action
036            * @return the m d r action that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.mobiledevicerules.model.MDRAction addMDRAction(
040                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _mdrActionLocalService.addMDRAction(mdrAction);
043            }
044    
045            /**
046            * Creates a new m d r action with the primary key. Does not add the m d r action to the database.
047            *
048            * @param actionId the primary key for the new m d r action
049            * @return the new m d r action
050            */
051            public com.liferay.portlet.mobiledevicerules.model.MDRAction createMDRAction(
052                    long actionId) {
053                    return _mdrActionLocalService.createMDRAction(actionId);
054            }
055    
056            /**
057            * Deletes the m d r action with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param actionId the primary key of the m d r action
060            * @throws PortalException if a m d r action with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteMDRAction(long actionId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _mdrActionLocalService.deleteMDRAction(actionId);
067            }
068    
069            /**
070            * Deletes the m d r action from the database. Also notifies the appropriate model listeners.
071            *
072            * @param mdrAction the m d r action
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteMDRAction(
076                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _mdrActionLocalService.deleteMDRAction(mdrAction);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _mdrActionLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * 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.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _mdrActionLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _mdrActionLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _mdrActionLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Returns the m d r action with the primary key.
154            *
155            * @param actionId the primary key of the m d r action
156            * @return the m d r action
157            * @throws PortalException if a m d r action with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.mobiledevicerules.model.MDRAction getMDRAction(
161                    long actionId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _mdrActionLocalService.getMDRAction(actionId);
165            }
166    
167            public com.liferay.portal.model.PersistedModel getPersistedModel(
168                    java.io.Serializable primaryKeyObj)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _mdrActionLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns the m d r action with the UUID in the group.
176            *
177            * @param uuid the UUID of m d r action
178            * @param groupId the group id of the m d r action
179            * @return the m d r action
180            * @throws PortalException if a m d r action with the UUID in the group could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portlet.mobiledevicerules.model.MDRAction getMDRActionByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _mdrActionLocalService.getMDRActionByUuidAndGroupId(uuid, groupId);
188            }
189    
190            /**
191            * Returns a range of all the m d r actions.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of m d r actions
198            * @param end the upper bound of the range of m d r actions (not inclusive)
199            * @return the range of m d r actions
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getMDRActions(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _mdrActionLocalService.getMDRActions(start, end);
206            }
207    
208            /**
209            * Returns the number of m d r actions.
210            *
211            * @return the number of m d r actions
212            * @throws SystemException if a system exception occurred
213            */
214            public int getMDRActionsCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _mdrActionLocalService.getMDRActionsCount();
217            }
218    
219            /**
220            * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param mdrAction the m d r action
223            * @return the m d r action that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateMDRAction(
227                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _mdrActionLocalService.updateMDRAction(mdrAction);
230            }
231    
232            /**
233            * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
234            *
235            * @param mdrAction the m d r action
236            * @param merge whether to merge the m d r action 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.
237            * @return the m d r action that was updated
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateMDRAction(
241                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction,
242                    boolean merge)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _mdrActionLocalService.updateMDRAction(mdrAction, merge);
245            }
246    
247            /**
248            * Returns the Spring bean ID for this bean.
249            *
250            * @return the Spring bean ID for this bean
251            */
252            public java.lang.String getBeanIdentifier() {
253                    return _mdrActionLocalService.getBeanIdentifier();
254            }
255    
256            /**
257            * Sets the Spring bean ID for this bean.
258            *
259            * @param beanIdentifier the Spring bean ID for this bean
260            */
261            public void setBeanIdentifier(java.lang.String beanIdentifier) {
262                    _mdrActionLocalService.setBeanIdentifier(beanIdentifier);
263            }
264    
265            public com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
266                    long ruleGroupInstanceId,
267                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
268                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
269                    java.lang.String type, java.lang.String typeSettings,
270                    com.liferay.portal.service.ServiceContext serviceContext)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _mdrActionLocalService.addAction(ruleGroupInstanceId, nameMap,
274                            descriptionMap, type, typeSettings, serviceContext);
275            }
276    
277            public com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
278                    long ruleGroupInstanceId,
279                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
280                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
281                    java.lang.String type,
282                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
283                    com.liferay.portal.service.ServiceContext serviceContext)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    return _mdrActionLocalService.addAction(ruleGroupInstanceId, nameMap,
287                            descriptionMap, type, typeSettingsProperties, serviceContext);
288            }
289    
290            public void deleteAction(long actionId)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    _mdrActionLocalService.deleteAction(actionId);
293            }
294    
295            public void deleteAction(
296                    com.liferay.portlet.mobiledevicerules.model.MDRAction action)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    _mdrActionLocalService.deleteAction(action);
299            }
300    
301            public void deleteActions(long ruleGroupInstanceId)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    _mdrActionLocalService.deleteActions(ruleGroupInstanceId);
304            }
305    
306            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchAction(
307                    long actionId)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return _mdrActionLocalService.fetchAction(actionId);
310            }
311    
312            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
313                    long ruleGroupInstanceId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _mdrActionLocalService.getActions(ruleGroupInstanceId);
316            }
317    
318            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
319                    long ruleGroupInstanceId, int start, int end)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return _mdrActionLocalService.getActions(ruleGroupInstanceId, start, end);
322            }
323    
324            public int getActionsCount(long ruleGroupInstanceId)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _mdrActionLocalService.getActionsCount(ruleGroupInstanceId);
327            }
328    
329            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
330                    long actionId,
331                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
332                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
333                    java.lang.String type, java.lang.String typeSettings,
334                    com.liferay.portal.service.ServiceContext serviceContext)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    return _mdrActionLocalService.updateAction(actionId, nameMap,
338                            descriptionMap, type, typeSettings, serviceContext);
339            }
340    
341            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
342                    long actionId,
343                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
344                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
345                    java.lang.String type,
346                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
347                    com.liferay.portal.service.ServiceContext serviceContext)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException {
350                    return _mdrActionLocalService.updateAction(actionId, nameMap,
351                            descriptionMap, type, typeSettingsProperties, serviceContext);
352            }
353    
354            public MDRActionLocalService getWrappedMDRActionLocalService() {
355                    return _mdrActionLocalService;
356            }
357    
358            public void setWrappedMDRActionLocalService(
359                    MDRActionLocalService mdrActionLocalService) {
360                    _mdrActionLocalService = mdrActionLocalService;
361            }
362    
363            private MDRActionLocalService _mdrActionLocalService;
364    }