001    /**
002     * Copyright (c) 2000-2012 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.dynamicdatalists.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DDLRecordSetLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDLRecordSetLocalService
026     * @generated
027     */
028    public class DDLRecordSetLocalServiceWrapper implements DDLRecordSetLocalService,
029            ServiceWrapper<DDLRecordSetLocalService> {
030            public DDLRecordSetLocalServiceWrapper(
031                    DDLRecordSetLocalService ddlRecordSetLocalService) {
032                    _ddlRecordSetLocalService = ddlRecordSetLocalService;
033            }
034    
035            /**
036            * Adds the d d l record set to the database. Also notifies the appropriate model listeners.
037            *
038            * @param ddlRecordSet the d d l record set
039            * @return the d d l record set that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addDDLRecordSet(
043                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _ddlRecordSetLocalService.addDDLRecordSet(ddlRecordSet);
046            }
047    
048            /**
049            * Creates a new d d l record set with the primary key. Does not add the d d l record set to the database.
050            *
051            * @param recordSetId the primary key for the new d d l record set
052            * @return the new d d l record set
053            */
054            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet createDDLRecordSet(
055                    long recordSetId) {
056                    return _ddlRecordSetLocalService.createDDLRecordSet(recordSetId);
057            }
058    
059            /**
060            * Deletes the d d l record set with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param recordSetId the primary key of the d d l record set
063            * @return the d d l record set that was removed
064            * @throws PortalException if a d d l record set with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet deleteDDLRecordSet(
068                    long recordSetId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _ddlRecordSetLocalService.deleteDDLRecordSet(recordSetId);
072            }
073    
074            /**
075            * Deletes the d d l record set from the database. Also notifies the appropriate model listeners.
076            *
077            * @param ddlRecordSet the d d l record set
078            * @return the d d l record set that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet deleteDDLRecordSet(
082                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _ddlRecordSetLocalService.deleteDDLRecordSet(ddlRecordSet);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _ddlRecordSetLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _ddlRecordSetLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _ddlRecordSetLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _ddlRecordSetLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _ddlRecordSetLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchDDLRecordSet(
163                    long recordSetId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _ddlRecordSetLocalService.fetchDDLRecordSet(recordSetId);
166            }
167    
168            /**
169            * Returns the d d l record set with the primary key.
170            *
171            * @param recordSetId the primary key of the d d l record set
172            * @return the d d l record set
173            * @throws PortalException if a d d l record set with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getDDLRecordSet(
177                    long recordSetId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _ddlRecordSetLocalService.getDDLRecordSet(recordSetId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _ddlRecordSetLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns the d d l record set with the UUID in the group.
192            *
193            * @param uuid the UUID of d d l record set
194            * @param groupId the group id of the d d l record set
195            * @return the d d l record set
196            * @throws PortalException if a d d l record set with the UUID in the group could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getDDLRecordSetByUuidAndGroupId(
200                    java.lang.String uuid, long groupId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _ddlRecordSetLocalService.getDDLRecordSetByUuidAndGroupId(uuid,
204                            groupId);
205            }
206    
207            /**
208            * Returns a range of all the d d l record sets.
209            *
210            * <p>
211            * 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.
212            * </p>
213            *
214            * @param start the lower bound of the range of d d l record sets
215            * @param end the upper bound of the range of d d l record sets (not inclusive)
216            * @return the range of d d l record sets
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> getDDLRecordSets(
220                    int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _ddlRecordSetLocalService.getDDLRecordSets(start, end);
223            }
224    
225            /**
226            * Returns the number of d d l record sets.
227            *
228            * @return the number of d d l record sets
229            * @throws SystemException if a system exception occurred
230            */
231            public int getDDLRecordSetsCount()
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return _ddlRecordSetLocalService.getDDLRecordSetsCount();
234            }
235    
236            /**
237            * Updates the d d l record set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
238            *
239            * @param ddlRecordSet the d d l record set
240            * @return the d d l record set that was updated
241            * @throws SystemException if a system exception occurred
242            */
243            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateDDLRecordSet(
244                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _ddlRecordSetLocalService.updateDDLRecordSet(ddlRecordSet);
247            }
248    
249            /**
250            * Returns the Spring bean ID for this bean.
251            *
252            * @return the Spring bean ID for this bean
253            */
254            public java.lang.String getBeanIdentifier() {
255                    return _ddlRecordSetLocalService.getBeanIdentifier();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            public void setBeanIdentifier(java.lang.String beanIdentifier) {
264                    _ddlRecordSetLocalService.setBeanIdentifier(beanIdentifier);
265            }
266    
267            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
268                    long userId, long groupId, long ddmStructureId,
269                    java.lang.String recordSetKey,
270                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
271                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
272                    int minDisplayRows, int scope,
273                    com.liferay.portal.service.ServiceContext serviceContext)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    return _ddlRecordSetLocalService.addRecordSet(userId, groupId,
277                            ddmStructureId, recordSetKey, nameMap, descriptionMap,
278                            minDisplayRows, scope, serviceContext);
279            }
280    
281            public void addRecordSetResources(
282                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet recordSet,
283                    boolean addGroupPermissions, boolean addGuestPermissions)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    _ddlRecordSetLocalService.addRecordSetResources(recordSet,
287                            addGroupPermissions, addGuestPermissions);
288            }
289    
290            public void addRecordSetResources(
291                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet recordSet,
292                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _ddlRecordSetLocalService.addRecordSetResources(recordSet,
296                            groupPermissions, guestPermissions);
297            }
298    
299            public void deleteRecordSet(
300                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet recordSet)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _ddlRecordSetLocalService.deleteRecordSet(recordSet);
304            }
305    
306            public void deleteRecordSet(long recordSetId)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _ddlRecordSetLocalService.deleteRecordSet(recordSetId);
310            }
311    
312            public void deleteRecordSet(long groupId, java.lang.String recordSetKey)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    _ddlRecordSetLocalService.deleteRecordSet(groupId, recordSetKey);
316            }
317    
318            public void deleteRecordSets(long groupId)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    _ddlRecordSetLocalService.deleteRecordSets(groupId);
322            }
323    
324            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchRecordSet(
325                    long groupId, java.lang.String recordSetKey)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _ddlRecordSetLocalService.fetchRecordSet(groupId, recordSetKey);
328            }
329    
330            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
331                    long recordSetId)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    return _ddlRecordSetLocalService.getRecordSet(recordSetId);
335            }
336    
337            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
338                    long groupId, java.lang.String recordSetKey)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    return _ddlRecordSetLocalService.getRecordSet(groupId, recordSetKey);
342            }
343    
344            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> getRecordSets(
345                    long groupId)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return _ddlRecordSetLocalService.getRecordSets(groupId);
348            }
349    
350            public int getRecordSetsCount(long groupId)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _ddlRecordSetLocalService.getRecordSetsCount(groupId);
353            }
354    
355            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
356                    long companyId, long groupId, java.lang.String keywords, int scope,
357                    int start, int end,
358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _ddlRecordSetLocalService.search(companyId, groupId, keywords,
361                            scope, start, end, orderByComparator);
362            }
363    
364            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
365                    long companyId, long groupId, java.lang.String name,
366                    java.lang.String description, int scope, boolean andOperator,
367                    int start, int end,
368                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _ddlRecordSetLocalService.search(companyId, groupId, name,
371                            description, scope, andOperator, start, end, orderByComparator);
372            }
373    
374            public int searchCount(long companyId, long groupId,
375                    java.lang.String keywords, int scope)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return _ddlRecordSetLocalService.searchCount(companyId, groupId,
378                            keywords, scope);
379            }
380    
381            public int searchCount(long companyId, long groupId, java.lang.String name,
382                    java.lang.String description, int scope, boolean andOperator)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _ddlRecordSetLocalService.searchCount(companyId, groupId, name,
385                            description, scope, andOperator);
386            }
387    
388            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
389                    long recordSetId, int minDisplayRows,
390                    com.liferay.portal.service.ServiceContext serviceContext)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _ddlRecordSetLocalService.updateMinDisplayRows(recordSetId,
394                            minDisplayRows, serviceContext);
395            }
396    
397            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
398                    long recordSetId, long ddmStructureId,
399                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
400                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
401                    int minDisplayRows,
402                    com.liferay.portal.service.ServiceContext serviceContext)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException {
405                    return _ddlRecordSetLocalService.updateRecordSet(recordSetId,
406                            ddmStructureId, nameMap, descriptionMap, minDisplayRows,
407                            serviceContext);
408            }
409    
410            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
411                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
412                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
413                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
414                    int minDisplayRows,
415                    com.liferay.portal.service.ServiceContext serviceContext)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    return _ddlRecordSetLocalService.updateRecordSet(groupId,
419                            ddmStructureId, recordSetKey, nameMap, descriptionMap,
420                            minDisplayRows, serviceContext);
421            }
422    
423            /**
424             * @deprecated Renamed to {@link #getWrappedService}
425             */
426            public DDLRecordSetLocalService getWrappedDDLRecordSetLocalService() {
427                    return _ddlRecordSetLocalService;
428            }
429    
430            /**
431             * @deprecated Renamed to {@link #setWrappedService}
432             */
433            public void setWrappedDDLRecordSetLocalService(
434                    DDLRecordSetLocalService ddlRecordSetLocalService) {
435                    _ddlRecordSetLocalService = ddlRecordSetLocalService;
436            }
437    
438            public DDLRecordSetLocalService getWrappedService() {
439                    return _ddlRecordSetLocalService;
440            }
441    
442            public void setWrappedService(
443                    DDLRecordSetLocalService ddlRecordSetLocalService) {
444                    _ddlRecordSetLocalService = ddlRecordSetLocalService;
445            }
446    
447            private DDLRecordSetLocalService _ddlRecordSetLocalService;
448    }