@AccessControlled
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface DDLRecordService
extends com.liferay.portal.kernel.service.BaseService
DDLRecordServiceUtil
,
com.liferay.dynamic.data.lists.service.base.DDLRecordServiceBaseImpl
,
com.liferay.dynamic.data.lists.service.impl.DDLRecordServiceImpl
Modifier and Type | Method and Description |
---|---|
DDLRecord |
addRecord(long groupId,
long recordSetId,
int displayIndex,
DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a record referencing the record set.
|
DDLRecord |
addRecord(long groupId,
long recordSetId,
int displayIndex,
Fields fields,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
addRecord(long, long, int,
DDMFormValues, ServiceContext) |
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)
Deprecated.
As of 1.1.0, replaced by
addRecord(long, long, int,
DDMFormValues, ServiceContext) |
void |
deleteRecord(long recordId)
Deletes the record and its resources.
|
DDLRecord |
deleteRecordLocale(long recordId,
java.util.Locale locale,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
updateRecord(long, boolean,
int, DDMFormValues, ServiceContext) |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
DDLRecord |
getRecord(long recordId)
Returns the record with the ID.
|
void |
revertRecord(long recordId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Reverts the record to a given version.
|
void |
revertRecordVersion(long recordId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
revertRecord(long, String,
ServiceContext) |
DDLRecord |
updateRecord(long recordId,
boolean majorVersion,
int displayIndex,
DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates a record, replacing its display index and values.
|
DDLRecord |
updateRecord(long recordId,
boolean majorVersion,
int displayIndex,
Fields fields,
boolean mergeFields,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
updateRecord(long, boolean,
int, DDMFormValues, ServiceContext) |
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)
Deprecated.
As of 1.1.0, replaced by
updateRecord(long, boolean,
int, DDMFormValues, ServiceContext) |
DDLRecord addRecord(long groupId, long recordSetId, int displayIndex, DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the record's grouprecordSetId
- the primary key of the record setdisplayIndex
- the index position in which the record is displayed
in the spreadsheet viewddmFormValues
- 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.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated DDLRecord addRecord(long groupId, long recordSetId, int displayIndex, Fields fields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addRecord(long, long, int,
DDMFormValues, ServiceContext)
groupId
- the primary key of the record's grouprecordSetId
- the primary key of the record setdisplayIndex
- the index position in which the record is
displayed in the spreadsheet viewfields
- the record values. See Fields
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.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated 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
addRecord(long, long, int,
DDMFormValues, ServiceContext)
groupId
- the primary key of the record's grouprecordSetId
- the primary key of the record setdisplayIndex
- the index position in which the record is
displayed in the spreadsheet viewfieldsMap
- 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.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated DDLRecord deleteRecordLocale(long recordId, java.util.Locale locale, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateRecord(long, boolean,
int, DDMFormValues, ServiceContext)
recordId
- the primary key of the recordlocale
- the locale of the record values to be removedserviceContext
- the service context to be applied. This can
set the record modified date.com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) DDLRecord getRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
recordId
- the primary key of the recordcom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurredDDLRecord updateRecord(long recordId, boolean majorVersion, int displayIndex, DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
recordId
- the primary key of the recordmajorVersion
- 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 viewddmFormValues
- 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.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated DDLRecord updateRecord(long recordId, boolean majorVersion, int displayIndex, Fields fields, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateRecord(long, boolean,
int, DDMFormValues, ServiceContext)
recordId
- the primary key of the recordmajorVersion
- whether this update is a major change. Major
changes causes the increment of the major version number.displayIndex
- the index position in which the record is
displayed in the spreadsheet viewfields
- the record values. See Fields
in the
dynamic.data.mapping.api
module.mergeFields
- whether to merge the new fields with the existing
ones; otherwise replace the existing fieldsserviceContext
- the service context to be applied. This can
set the record modified date.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated 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
updateRecord(long, boolean,
int, DDMFormValues, ServiceContext)
recordId
- the primary key of the recorddisplayIndex
- the index position in which the record is
displayed in the spreadsheet viewfieldsMap
- 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 fieldsserviceContext
- the service context to be applied. This can
set the record modified date.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurredjava.lang.String getOSGiServiceIdentifier()
void deleteRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
recordId
- the primary key of the record to be deletedcom.liferay.portal.kernel.exception.PortalException
void revertRecord(long recordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
recordId
- the primary key of the recordversion
- the version to be revertedserviceContext
- the service context to be applied. This can set
the record modified date.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated void revertRecordVersion(long recordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
revertRecord(long, String,
ServiceContext)
com.liferay.portal.kernel.exception.PortalException