001    /**
002     * Copyright (c) 2000-2013 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            * Updates the d d l record in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
250            *
251            * @param ddlRecord the d d l record
252            * @param merge whether to merge the d d l record 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.
253            * @return the d d l record that was updated
254            * @throws SystemException if a system exception occurred
255            */
256            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateDDLRecord(
257                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord,
258                    boolean merge)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return _ddlRecordLocalService.updateDDLRecord(ddlRecord, merge);
261            }
262    
263            /**
264            * Returns the Spring bean ID for this bean.
265            *
266            * @return the Spring bean ID for this bean
267            */
268            public java.lang.String getBeanIdentifier() {
269                    return _ddlRecordLocalService.getBeanIdentifier();
270            }
271    
272            /**
273            * Sets the Spring bean ID for this bean.
274            *
275            * @param beanIdentifier the Spring bean ID for this bean
276            */
277            public void setBeanIdentifier(java.lang.String beanIdentifier) {
278                    _ddlRecordLocalService.setBeanIdentifier(beanIdentifier);
279            }
280    
281            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
282                    long userId, long groupId, long recordSetId, int displayIndex,
283                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
284                    com.liferay.portal.service.ServiceContext serviceContext)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    return _ddlRecordLocalService.addRecord(userId, groupId, recordSetId,
288                            displayIndex, fields, serviceContext);
289            }
290    
291            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
292                    long userId, long groupId, long recordSetId, int displayIndex,
293                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
294                    com.liferay.portal.service.ServiceContext serviceContext)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _ddlRecordLocalService.addRecord(userId, groupId, recordSetId,
298                            displayIndex, fieldsMap, serviceContext);
299            }
300    
301            public void deleteRecord(
302                    com.liferay.portlet.dynamicdatalists.model.DDLRecord record)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _ddlRecordLocalService.deleteRecord(record);
306            }
307    
308            public void deleteRecord(long recordId)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    _ddlRecordLocalService.deleteRecord(recordId);
312            }
313    
314            public void deleteRecords(long recordSetId)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    _ddlRecordLocalService.deleteRecords(recordSetId);
318            }
319    
320            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchRecord(
321                    long recordId)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return _ddlRecordLocalService.fetchRecord(recordId);
324            }
325    
326            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getLatestRecordVersion(
327                    long recordId)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    return _ddlRecordLocalService.getLatestRecordVersion(recordId);
331            }
332    
333            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
334                    long recordId)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    return _ddlRecordLocalService.getRecord(recordId);
338            }
339    
340            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
341                    long recordSetId)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _ddlRecordLocalService.getRecords(recordSetId);
344            }
345    
346            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
347                    long recordSetId, int status, int start, int end,
348                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _ddlRecordLocalService.getRecords(recordSetId, status, start,
351                            end, orderByComparator);
352            }
353    
354            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
355                    long recordSetId, long userId)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _ddlRecordLocalService.getRecords(recordSetId, userId);
358            }
359    
360            public int getRecordsCount(long recordSetId, int status)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return _ddlRecordLocalService.getRecordsCount(recordSetId, status);
363            }
364    
365            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
366                    long recordVersionId)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    return _ddlRecordLocalService.getRecordVersion(recordVersionId);
370            }
371    
372            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
373                    long recordId, java.lang.String version)
374                    throws com.liferay.portal.kernel.exception.PortalException,
375                            com.liferay.portal.kernel.exception.SystemException {
376                    return _ddlRecordLocalService.getRecordVersion(recordId, version);
377            }
378    
379            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions(
380                    long recordId, int start, int end,
381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _ddlRecordLocalService.getRecordVersions(recordId, start, end,
384                            orderByComparator);
385            }
386    
387            public int getRecordVersionsCount(long recordId)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _ddlRecordLocalService.getRecordVersionsCount(recordId);
390            }
391    
392            public void revertRecordVersion(long userId, long recordId,
393                    java.lang.String version,
394                    com.liferay.portal.service.ServiceContext serviceContext)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    _ddlRecordLocalService.revertRecordVersion(userId, recordId, version,
398                            serviceContext);
399            }
400    
401            public void updateAsset(long userId,
402                    com.liferay.portlet.dynamicdatalists.model.DDLRecord record,
403                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion,
404                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
405                    java.util.Locale locale)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    _ddlRecordLocalService.updateAsset(userId, record, recordVersion,
409                            assetCategoryIds, assetTagNames, locale);
410            }
411    
412            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
413                    long userId, long recordId, boolean majorVersion, int displayIndex,
414                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
415                    boolean mergeFields,
416                    com.liferay.portal.service.ServiceContext serviceContext)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException {
419                    return _ddlRecordLocalService.updateRecord(userId, recordId,
420                            majorVersion, displayIndex, fields, mergeFields, serviceContext);
421            }
422    
423            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
424                    long userId, long recordId, int displayIndex,
425                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
426                    boolean mergeFields,
427                    com.liferay.portal.service.ServiceContext serviceContext)
428                    throws com.liferay.portal.kernel.exception.PortalException,
429                            com.liferay.portal.kernel.exception.SystemException {
430                    return _ddlRecordLocalService.updateRecord(userId, recordId,
431                            displayIndex, fieldsMap, mergeFields, serviceContext);
432            }
433    
434            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateStatus(
435                    long userId, long recordVersionId, int status,
436                    com.liferay.portal.service.ServiceContext serviceContext)
437                    throws com.liferay.portal.kernel.exception.PortalException,
438                            com.liferay.portal.kernel.exception.SystemException {
439                    return _ddlRecordLocalService.updateStatus(userId, recordVersionId,
440                            status, serviceContext);
441            }
442    
443            /**
444             * @deprecated Renamed to {@link #getWrappedService}
445             */
446            public DDLRecordLocalService getWrappedDDLRecordLocalService() {
447                    return _ddlRecordLocalService;
448            }
449    
450            /**
451             * @deprecated Renamed to {@link #setWrappedService}
452             */
453            public void setWrappedDDLRecordLocalService(
454                    DDLRecordLocalService ddlRecordLocalService) {
455                    _ddlRecordLocalService = ddlRecordLocalService;
456            }
457    
458            public DDLRecordLocalService getWrappedService() {
459                    return _ddlRecordLocalService;
460            }
461    
462            public void setWrappedService(DDLRecordLocalService ddlRecordLocalService) {
463                    _ddlRecordLocalService = ddlRecordLocalService;
464            }
465    
466            private DDLRecordLocalService _ddlRecordLocalService;
467    }