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