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 DDLRecordLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDLRecordLocalService
026     * @generated
027     */
028    public class DDLRecordLocalServiceWrapper implements DDLRecordLocalService,
029            ServiceWrapper<DDLRecordLocalService> {
030            public DDLRecordLocalServiceWrapper(
031                    DDLRecordLocalService ddlRecordLocalService) {
032                    _ddlRecordLocalService = ddlRecordLocalService;
033            }
034    
035            /**
036            * Adds the d d l record to the database. Also notifies the appropriate model listeners.
037            *
038            * @param ddlRecord the d d l record
039            * @return the d d l record that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addDDLRecord(
043                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _ddlRecordLocalService.addDDLRecord(ddlRecord);
046            }
047    
048            /**
049            * Creates a new d d l record with the primary key. Does not add the d d l record to the database.
050            *
051            * @param recordId the primary key for the new d d l record
052            * @return the new d d l record
053            */
054            public com.liferay.portlet.dynamicdatalists.model.DDLRecord createDDLRecord(
055                    long recordId) {
056                    return _ddlRecordLocalService.createDDLRecord(recordId);
057            }
058    
059            /**
060            * Deletes the d d l record with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param recordId the primary key of the d d l record
063            * @return the d d l record that was removed
064            * @throws PortalException if a d d l record with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteDDLRecord(
068                    long recordId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _ddlRecordLocalService.deleteDDLRecord(recordId);
072            }
073    
074            /**
075            * Deletes the d d l record from the database. Also notifies the appropriate model listeners.
076            *
077            * @param ddlRecord the d d l record
078            * @return the d d l record that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteDDLRecord(
082                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _ddlRecordLocalService.deleteDDLRecord(ddlRecord);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _ddlRecordLocalService.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 _ddlRecordLocalService.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 _ddlRecordLocalService.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 _ddlRecordLocalService.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 _ddlRecordLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchDDLRecord(
163                    long recordId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _ddlRecordLocalService.fetchDDLRecord(recordId);
166            }
167    
168            /**
169            * Returns the d d l record with the primary key.
170            *
171            * @param recordId the primary key of the d d l record
172            * @return the d d l record
173            * @throws PortalException if a d d l record with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getDDLRecord(
177                    long recordId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _ddlRecordLocalService.getDDLRecord(recordId);
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 _ddlRecordLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns the d d l record with the UUID in the group.
192            *
193            * @param uuid the UUID of d d l record
194            * @param groupId the group id of the d d l record
195            * @return the d d l record
196            * @throws PortalException if a d d l record 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.DDLRecord getDDLRecordByUuidAndGroupId(
200                    java.lang.String uuid, long groupId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _ddlRecordLocalService.getDDLRecordByUuidAndGroupId(uuid, groupId);
204            }
205    
206            /**
207            * Returns a range of all the d d l records.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param start the lower bound of the range of d d l records
214            * @param end the upper bound of the range of d d l records (not inclusive)
215            * @return the range of d d l records
216            * @throws SystemException if a system exception occurred
217            */
218            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getDDLRecords(
219                    int start, int end)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _ddlRecordLocalService.getDDLRecords(start, end);
222            }
223    
224            /**
225            * Returns the number of d d l records.
226            *
227            * @return the number of d d l records
228            * @throws SystemException if a system exception occurred
229            */
230            public int getDDLRecordsCount()
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _ddlRecordLocalService.getDDLRecordsCount();
233            }
234    
235            /**
236            * Updates the d d l record in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
237            *
238            * @param ddlRecord the d d l record
239            * @return the d d l record that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateDDLRecord(
243                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _ddlRecordLocalService.updateDDLRecord(ddlRecord);
246            }
247    
248            /**
249            * Returns the Spring bean ID for this bean.
250            *
251            * @return the Spring bean ID for this bean
252            */
253            public java.lang.String getBeanIdentifier() {
254                    return _ddlRecordLocalService.getBeanIdentifier();
255            }
256    
257            /**
258            * Sets the Spring bean ID for this bean.
259            *
260            * @param beanIdentifier the Spring bean ID for this bean
261            */
262            public void setBeanIdentifier(java.lang.String beanIdentifier) {
263                    _ddlRecordLocalService.setBeanIdentifier(beanIdentifier);
264            }
265    
266            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
267                    long userId, long groupId, long recordSetId, int displayIndex,
268                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
269                    com.liferay.portal.service.ServiceContext serviceContext)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _ddlRecordLocalService.addRecord(userId, groupId, recordSetId,
273                            displayIndex, fields, serviceContext);
274            }
275    
276            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
277                    long userId, long groupId, long recordSetId, int displayIndex,
278                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
279                    com.liferay.portal.service.ServiceContext serviceContext)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    return _ddlRecordLocalService.addRecord(userId, groupId, recordSetId,
283                            displayIndex, fieldsMap, serviceContext);
284            }
285    
286            public void deleteRecord(
287                    com.liferay.portlet.dynamicdatalists.model.DDLRecord record)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _ddlRecordLocalService.deleteRecord(record);
291            }
292    
293            public void deleteRecord(long recordId)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _ddlRecordLocalService.deleteRecord(recordId);
297            }
298    
299            public void deleteRecords(long recordSetId)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    _ddlRecordLocalService.deleteRecords(recordSetId);
303            }
304    
305            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchRecord(
306                    long recordId)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _ddlRecordLocalService.fetchRecord(recordId);
309            }
310    
311            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getCompanyRecords(
312                    long companyId, int status, int scope, int start, int end,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _ddlRecordLocalService.getCompanyRecords(companyId, status,
316                            scope, start, end, orderByComparator);
317            }
318    
319            /**
320            * @deprecated {@link #getCompanyRecords(long, int, int, int, int,
321            OrderByComparator)}
322            */
323            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getCompanyRecords(
324                    long companyId, int scope, int start, int end,
325                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _ddlRecordLocalService.getCompanyRecords(companyId, scope,
328                            start, end, orderByComparator);
329            }
330    
331            /**
332            * @deprecated {@link #getCompanyRecordsCount(long, int, int)}
333            */
334            public int getCompanyRecordsCount(long companyId, int scope)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return _ddlRecordLocalService.getCompanyRecordsCount(companyId, scope);
337            }
338    
339            public int getCompanyRecordsCount(long companyId, int status, int scope)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return _ddlRecordLocalService.getCompanyRecordsCount(companyId, status,
342                            scope);
343            }
344    
345            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getLatestRecordVersion(
346                    long recordId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return _ddlRecordLocalService.getLatestRecordVersion(recordId);
350            }
351    
352            public java.lang.Long[] getMinAndMaxCompanyRecordIds(long companyId,
353                    int status, int scope)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return _ddlRecordLocalService.getMinAndMaxCompanyRecordIds(companyId,
356                            status, scope);
357            }
358    
359            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getMinAndMaxCompanyRecords(
360                    long companyId, int status, int scope, long minRecordId,
361                    long maxRecordId)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _ddlRecordLocalService.getMinAndMaxCompanyRecords(companyId,
364                            status, scope, minRecordId, maxRecordId);
365            }
366    
367            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
368                    long recordId)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return _ddlRecordLocalService.getRecord(recordId);
372            }
373    
374            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
375                    long recordSetId)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return _ddlRecordLocalService.getRecords(recordSetId);
378            }
379    
380            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
381                    long recordSetId, int status, int start, int end,
382                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _ddlRecordLocalService.getRecords(recordSetId, status, start,
385                            end, orderByComparator);
386            }
387    
388            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
389                    long recordSetId, long userId)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    return _ddlRecordLocalService.getRecords(recordSetId, userId);
392            }
393    
394            public int getRecordsCount(long recordSetId, int status)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _ddlRecordLocalService.getRecordsCount(recordSetId, status);
397            }
398    
399            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
400                    long recordVersionId)
401                    throws com.liferay.portal.kernel.exception.PortalException,
402                            com.liferay.portal.kernel.exception.SystemException {
403                    return _ddlRecordLocalService.getRecordVersion(recordVersionId);
404            }
405    
406            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
407                    long recordId, java.lang.String version)
408                    throws com.liferay.portal.kernel.exception.PortalException,
409                            com.liferay.portal.kernel.exception.SystemException {
410                    return _ddlRecordLocalService.getRecordVersion(recordId, version);
411            }
412    
413            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions(
414                    long recordId, int start, int end,
415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return _ddlRecordLocalService.getRecordVersions(recordId, start, end,
418                            orderByComparator);
419            }
420    
421            public int getRecordVersionsCount(long recordId)
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    return _ddlRecordLocalService.getRecordVersionsCount(recordId);
424            }
425    
426            public void revertRecordVersion(long userId, long recordId,
427                    java.lang.String version,
428                    com.liferay.portal.service.ServiceContext serviceContext)
429                    throws com.liferay.portal.kernel.exception.PortalException,
430                            com.liferay.portal.kernel.exception.SystemException {
431                    _ddlRecordLocalService.revertRecordVersion(userId, recordId, version,
432                            serviceContext);
433            }
434    
435            public com.liferay.portal.kernel.search.Hits search(
436                    com.liferay.portal.kernel.search.SearchContext searchContext)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return _ddlRecordLocalService.search(searchContext);
439            }
440    
441            public void updateAsset(long userId,
442                    com.liferay.portlet.dynamicdatalists.model.DDLRecord record,
443                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion,
444                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
445                    java.util.Locale locale)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    _ddlRecordLocalService.updateAsset(userId, record, recordVersion,
449                            assetCategoryIds, assetTagNames, locale);
450            }
451    
452            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
453                    long userId, long recordId, boolean majorVersion, int displayIndex,
454                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
455                    boolean mergeFields,
456                    com.liferay.portal.service.ServiceContext serviceContext)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    return _ddlRecordLocalService.updateRecord(userId, recordId,
460                            majorVersion, displayIndex, fields, mergeFields, serviceContext);
461            }
462    
463            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
464                    long userId, long recordId, int displayIndex,
465                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
466                    boolean mergeFields,
467                    com.liferay.portal.service.ServiceContext serviceContext)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException {
470                    return _ddlRecordLocalService.updateRecord(userId, recordId,
471                            displayIndex, fieldsMap, mergeFields, serviceContext);
472            }
473    
474            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateStatus(
475                    long userId, long recordVersionId, int status,
476                    com.liferay.portal.service.ServiceContext serviceContext)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    return _ddlRecordLocalService.updateStatus(userId, recordVersionId,
480                            status, serviceContext);
481            }
482    
483            /**
484             * @deprecated Renamed to {@link #getWrappedService}
485             */
486            public DDLRecordLocalService getWrappedDDLRecordLocalService() {
487                    return _ddlRecordLocalService;
488            }
489    
490            /**
491             * @deprecated Renamed to {@link #setWrappedService}
492             */
493            public void setWrappedDDLRecordLocalService(
494                    DDLRecordLocalService ddlRecordLocalService) {
495                    _ddlRecordLocalService = ddlRecordLocalService;
496            }
497    
498            public DDLRecordLocalService getWrappedService() {
499                    return _ddlRecordLocalService;
500            }
501    
502            public void setWrappedService(DDLRecordLocalService ddlRecordLocalService) {
503                    _ddlRecordLocalService = ddlRecordLocalService;
504            }
505    
506            private DDLRecordLocalService _ddlRecordLocalService;
507    }