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