/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.dynamic.data.lists.service; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.service.ServiceWrapper; /** * Provides a wrapper for {@link DDLRecordService}. * * @author Brian Wing Shun Chan * @see DDLRecordService * @generated */ @ProviderType public class DDLRecordServiceWrapper implements DDLRecordService, ServiceWrapper<DDLRecordService> { public DDLRecordServiceWrapper(DDLRecordService ddlRecordService) { _ddlRecordService = ddlRecordService; } /** * Adds a record referencing the record set. * * @param groupId the primary key of the record's group * @param recordSetId the primary key of the record set * @param displayIndex the index position in which the record is displayed in the spreadsheet view * @param ddmFormValues the record values. See <code>DDMFormValues</code> in the <code>dynamic.data.mapping.api</code> module. * @param serviceContext the service context to be applied. This can set the UUID, guest permissions, and group permissions for the record. * @return the record * @throws PortalException if a portal exception occurred */ @Override public com.liferay.dynamic.data.lists.model.DDLRecord addRecord( long groupId, long recordSetId, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddlRecordService.addRecord(groupId, recordSetId, displayIndex, ddmFormValues, serviceContext); } /** * Adds a record referencing the record set. * * @param groupId the primary key of the record's group * @param recordSetId the primary key of the record set * @param displayIndex the index position in which the record is displayed in the spreadsheet view * @param fields the record values. See <code>Fields</code> in the <code>dynamic.data.mapping.api</code> module. * @param serviceContext the service context to be applied. This can set the UUID, guest permissions, and group permissions for the record. * @return the record * @throws PortalException if a portal exception occurred * @deprecated As of 1.1.0, replaced by {@link #addRecord(long, long, int, DDMFormValues, ServiceContext)} */ @Deprecated @Override public com.liferay.dynamic.data.lists.model.DDLRecord addRecord( long groupId, long recordSetId, int displayIndex, com.liferay.dynamic.data.mapping.storage.Fields fields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddlRecordService.addRecord(groupId, recordSetId, displayIndex, fields, serviceContext); } /** * Adds a record referencing the record set. * * @param groupId the primary key of the record's group * @param recordSetId the primary key of the record set * @param displayIndex the index position in which the record is displayed in the spreadsheet view * @param fieldsMap the record values. The fieldsMap is a map of field names and its Serializable values. * @param serviceContext the service context to be applied. This can set the UUID, guest permissions, and group permissions for the record. * @return the record * @throws PortalException if a portal exception occurred * @deprecated As of 1.1.0, replaced by {@link #addRecord(long, long, int, DDMFormValues, ServiceContext)} */ @Deprecated @Override public com.liferay.dynamic.data.lists.model.DDLRecord addRecord( long groupId, long recordSetId, int displayIndex, java.util.Map<java.lang.String, java.io.Serializable> fieldsMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddlRecordService.addRecord(groupId, recordSetId, displayIndex, fieldsMap, serviceContext); } /** * Disassociates the locale from the record. * * @param recordId the primary key of the record * @param locale the locale of the record values to be removed * @param serviceContext the service context to be applied. This can set the record modified date. * @return the affected record * @throws PortalException * @deprecated As of 1.1.0, replaced by {@link #updateRecord(long, boolean, int, DDMFormValues, ServiceContext)} */ @Deprecated @Override public com.liferay.dynamic.data.lists.model.DDLRecord deleteRecordLocale( long recordId, java.util.Locale locale, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddlRecordService.deleteRecordLocale(recordId, locale, serviceContext); } /** * Returns the record with the ID. * * @param recordId the primary key of the record * @return the record with the ID * @throws PortalException if a portal exception occurred */ @Override public com.liferay.dynamic.data.lists.model.DDLRecord getRecord( long recordId) throws com.liferay.portal.kernel.exception.PortalException { return _ddlRecordService.getRecord(recordId); } /** * Updates a record, replacing its display index and values. * * @param recordId the primary key of the record * @param majorVersion whether this update is a major change. A major change increments the record's major version number. * @param displayIndex the index position in which the record is displayed in the spreadsheet view * @param ddmFormValues the record values. See <code>DDMFormValues</code> in the <code>dynamic.data.mapping.api</code> module. * @param serviceContext the service context to be applied. This can set the record modified date. * @return the record * @throws PortalException if a portal exception occurred */ @Override public com.liferay.dynamic.data.lists.model.DDLRecord updateRecord( long recordId, boolean majorVersion, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddlRecordService.updateRecord(recordId, majorVersion, displayIndex, ddmFormValues, serviceContext); } /** * Updates a record, replacing its display index and values. * * @param recordId the primary key of the record * @param majorVersion whether this update is a major change. Major changes causes the increment of the major version number. * @param displayIndex the index position in which the record is displayed in the spreadsheet view * @param fields the record values. See <code>Fields</code> in the <code>dynamic.data.mapping.api</code> module. * @param mergeFields whether to merge the new fields with the existing ones; otherwise replace the existing fields * @param serviceContext the service context to be applied. This can set the record modified date. * @return the record * @throws PortalException if a portal exception occurred * @deprecated As of 1.1.0, replaced by {@link #updateRecord(long, boolean, int, DDMFormValues, ServiceContext)} */ @Deprecated @Override public com.liferay.dynamic.data.lists.model.DDLRecord updateRecord( long recordId, boolean majorVersion, int displayIndex, com.liferay.dynamic.data.mapping.storage.Fields fields, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddlRecordService.updateRecord(recordId, majorVersion, displayIndex, fields, mergeFields, serviceContext); } /** * Updates a record, replacing its display index and values. * * @param recordId the primary key of the record * @param displayIndex the index position in which the record is displayed in the spreadsheet view * @param fieldsMap the record values. The fieldsMap is a map of field names and its Serializable values. * @param mergeFields whether to merge the new fields with the existing ones; otherwise replace the existing fields * @param serviceContext the service context to be applied. This can set the record modified date. * @return the record * @throws PortalException if a portal exception occurred * @deprecated As of 1.1.0, replaced by {@link #updateRecord(long, boolean, int, DDMFormValues, ServiceContext)} */ @Deprecated @Override public com.liferay.dynamic.data.lists.model.DDLRecord updateRecord( long recordId, int displayIndex, java.util.Map<java.lang.String, java.io.Serializable> fieldsMap, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddlRecordService.updateRecord(recordId, displayIndex, fieldsMap, mergeFields, serviceContext); } /** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ @Override public java.lang.String getOSGiServiceIdentifier() { return _ddlRecordService.getOSGiServiceIdentifier(); } /** * Returns all the records matching the record set ID * * @param recordSetId the record's record set ID * @return the matching records * @throws PortalException if a portal exception occurred */ @Override public java.util.List<com.liferay.dynamic.data.lists.model.DDLRecord> getRecords( long recordSetId) throws com.liferay.portal.kernel.exception.PortalException { return _ddlRecordService.getRecords(recordSetId); } /** * Deletes the record and its resources. * * @param recordId the primary key of the record to be deleted * @throws PortalException */ @Override public void deleteRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException { _ddlRecordService.deleteRecord(recordId); } /** * Reverts the record to a given version. * * @param recordId the primary key of the record * @param version the version to be reverted * @param serviceContext the service context to be applied. This can set the record modified date. * @throws PortalException if a portal exception occurred */ @Override public void revertRecord(long recordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { _ddlRecordService.revertRecord(recordId, version, serviceContext); } /** * @deprecated As of 1.1.0, replaced by {@link #revertRecord(long, String, ServiceContext)} */ @Deprecated @Override public void revertRecordVersion(long recordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { _ddlRecordService.revertRecordVersion(recordId, version, serviceContext); } @Override public DDLRecordService getWrappedService() { return _ddlRecordService; } @Override public void setWrappedService(DDLRecordService ddlRecordService) { _ddlRecordService = ddlRecordService; } private DDLRecordService _ddlRecordService; }