Class DDLRecordServiceWrapper

java.lang.Object
com.liferay.dynamic.data.lists.service.DDLRecordServiceWrapper
All Implemented Interfaces:
DDLRecordService, com.liferay.portal.kernel.service.BaseService, com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>

public class DDLRecordServiceWrapper extends Object implements DDLRecordService, com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>
Provides a wrapper for DDLRecordService.
See Also:
Generated:
  • Constructor Details

    • DDLRecordServiceWrapper

      public DDLRecordServiceWrapper()
    • DDLRecordServiceWrapper

      public DDLRecordServiceWrapper(DDLRecordService ddlRecordService)
  • Method Details

    • addRecord

      public 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
      Adds a record referencing the record set.
      Specified by:
      addRecord in interface DDLRecordService
      Parameters:
      groupId - the primary key of the record's group
      recordSetId - the primary key of the record set
      displayIndex - the index position in which the record is displayed in the spreadsheet view
      ddmFormValues - the record values. See DDMFormValues in the dynamic.data.mapping.api module.
      serviceContext - the service context to be applied. This can set the UUID, guest permissions, and group permissions for the record.
      Returns:
      the record
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • addRecord

      public DDLRecord addRecord(long groupId, long recordSetId, int displayIndex, Map<String,Serializable> fieldsMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Adds a record referencing the record set.
      Specified by:
      addRecord in interface DDLRecordService
      Parameters:
      groupId - the primary key of the record's group
      recordSetId - the primary key of the record set
      displayIndex - the index position in which the record is displayed in the spreadsheet view
      fieldsMap - the record values. The fieldsMap is a map of field names and its serializable values.
      serviceContext - the service context to be applied. This can set the UUID, guest permissions, and group permissions for the record.
      Returns:
      the record
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • deleteRecord

      public void deleteRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the record and its resources.
      Specified by:
      deleteRecord in interface DDLRecordService
      Parameters:
      recordId - the primary key of the record to be deleted
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface DDLRecordService
      Returns:
      the OSGi service identifier
    • getRecord

      public DDLRecord getRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the record with the ID.
      Specified by:
      getRecord in interface DDLRecordService
      Parameters:
      recordId - the primary key of the record
      Returns:
      the record with the ID
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • getRecords

      public List<DDLRecord> getRecords(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
      Returns all the records matching the record set ID
      Specified by:
      getRecords in interface DDLRecordService
      Parameters:
      recordSetId - the record's record set ID
      Returns:
      the matching records
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • revertRecord

      public void revertRecord(long recordId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Reverts the record to a given version.
      Specified by:
      revertRecord in interface DDLRecordService
      Parameters:
      recordId - the primary key of the record
      version - the version to be reverted
      serviceContext - the service context to be applied. This can set the record modified date.
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • updateRecord

      public 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
      Updates a record, replacing its display index and values.
      Specified by:
      updateRecord in interface DDLRecordService
      Parameters:
      recordId - the primary key of the record
      majorVersion - whether this update is a major change. A major change increments the record's major version number.
      displayIndex - the index position in which the record is displayed in the spreadsheet view
      ddmFormValues - the record values. See DDMFormValues in the dynamic.data.mapping.api module.
      serviceContext - the service context to be applied. This can set the record modified date.
      Returns:
      the record
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • updateRecord

      public DDLRecord updateRecord(long recordId, int displayIndex, Map<String,Serializable> fieldsMap, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Updates a record, replacing its display index and values.
      Specified by:
      updateRecord in interface DDLRecordService
      Parameters:
      recordId - the primary key of the record
      displayIndex - the index position in which the record is displayed in the spreadsheet view
      fieldsMap - the record values. The fieldsMap is a map of field names and its serializable values.
      mergeFields - whether to merge the new fields with the existing ones; otherwise replace the existing fields
      serviceContext - the service context to be applied. This can set the record modified date.
      Returns:
      the record
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • getWrappedService

      public DDLRecordService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>
    • setWrappedService

      public void setWrappedService(DDLRecordService ddlRecordService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>