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     * Provides a wrapper for {@link DDLRecordService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see DDLRecordService
024     * @generated
025     */
026    public class DDLRecordServiceWrapper implements DDLRecordService,
027            ServiceWrapper<DDLRecordService> {
028            public DDLRecordServiceWrapper(DDLRecordService ddlRecordService) {
029                    _ddlRecordService = ddlRecordService;
030            }
031    
032            /**
033            * Returns the Spring bean ID for this bean.
034            *
035            * @return the Spring bean ID for this bean
036            */
037            @Override
038            public java.lang.String getBeanIdentifier() {
039                    return _ddlRecordService.getBeanIdentifier();
040            }
041    
042            /**
043            * Sets the Spring bean ID for this bean.
044            *
045            * @param beanIdentifier the Spring bean ID for this bean
046            */
047            @Override
048            public void setBeanIdentifier(java.lang.String beanIdentifier) {
049                    _ddlRecordService.setBeanIdentifier(beanIdentifier);
050            }
051    
052            @Override
053            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
054                    long groupId, long recordSetId, int displayIndex,
055                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
056                    com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return _ddlRecordService.addRecord(groupId, recordSetId, displayIndex,
060                            fields, serviceContext);
061            }
062    
063            @Override
064            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
065                    long groupId, long recordSetId, int displayIndex,
066                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _ddlRecordService.addRecord(groupId, recordSetId, displayIndex,
071                            fieldsMap, serviceContext);
072            }
073    
074            @Override
075            public com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteRecordLocale(
076                    long recordId, java.util.Locale locale,
077                    com.liferay.portal.service.ServiceContext serviceContext)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return _ddlRecordService.deleteRecordLocale(recordId, locale,
081                            serviceContext);
082            }
083    
084            @Override
085            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
086                    long recordId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    return _ddlRecordService.getRecord(recordId);
090            }
091    
092            @Override
093            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
094                    long recordId, boolean majorVersion, int displayIndex,
095                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
096                    boolean mergeFields,
097                    com.liferay.portal.service.ServiceContext serviceContext)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException {
100                    return _ddlRecordService.updateRecord(recordId, majorVersion,
101                            displayIndex, fields, mergeFields, serviceContext);
102            }
103    
104            @Override
105            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
106                    long recordId, int displayIndex,
107                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
108                    boolean mergeFields,
109                    com.liferay.portal.service.ServiceContext serviceContext)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return _ddlRecordService.updateRecord(recordId, displayIndex,
113                            fieldsMap, mergeFields, serviceContext);
114            }
115    
116            /**
117             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
118             */
119            public DDLRecordService getWrappedDDLRecordService() {
120                    return _ddlRecordService;
121            }
122    
123            /**
124             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
125             */
126            public void setWrappedDDLRecordService(DDLRecordService ddlRecordService) {
127                    _ddlRecordService = ddlRecordService;
128            }
129    
130            @Override
131            public DDLRecordService getWrappedService() {
132                    return _ddlRecordService;
133            }
134    
135            @Override
136            public void setWrappedService(DDLRecordService ddlRecordService) {
137                    _ddlRecordService = ddlRecordService;
138            }
139    
140            private DDLRecordService _ddlRecordService;
141    }