Class DDLRecordServiceUtil

java.lang.Object
com.liferay.dynamic.data.lists.service.DDLRecordServiceUtil

public class DDLRecordServiceUtil extends Object
Provides the remote service utility for DDLRecord. This utility wraps com.liferay.dynamic.data.lists.service.impl.DDLRecordServiceImpl and is an access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static DDLRecord
    addRecord(long groupId, long recordSetId, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    Adds a record referencing the record set.
    static DDLRecord
    addRecord(long groupId, long recordSetId, int displayIndex, Map<String,Serializable> fieldsMap, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    Adds a record referencing the record set.
    static void
    deleteRecord(long recordId)
    Deletes the record and its resources.
    static String
    Returns the OSGi service identifier.
    static DDLRecord
    getRecord(long recordId)
    Returns the record with the ID.
    static List<DDLRecord>
    getRecords(long recordSetId)
    Returns all the records matching the record set ID
     
    static void
    revertRecord(long recordId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    Reverts the record to a given version.
    static DDLRecord
    updateRecord(long recordId, boolean majorVersion, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    Updates a record, replacing its display index and values.
    static DDLRecord
    updateRecord(long recordId, int displayIndex, Map<String,Serializable> fieldsMap, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    Updates a record, replacing its display index and values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DDLRecordServiceUtil

      public DDLRecordServiceUtil()
  • Method Details

    • addRecord

      public static 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.
      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:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
    • addRecord

      public static 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.
      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:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
    • deleteRecord

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

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getRecord

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

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

      public static 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.
      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:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
    • updateRecord

      public static 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.
      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:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
    • updateRecord

      public static 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.
      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:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
    • getService

      public static DDLRecordService getService()