@AccessControlled @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface DDLRecordService extends BaseService
DDLRecordServiceUtil| Modifier and Type | Method and Description |
|---|---|
DDLRecord |
addRecord(long groupId,
long recordSetId,
int displayIndex,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
Adds a record referencing the record set.
|
void |
deleteRecord(long recordId)
Deletes the record and its resources.
|
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
DDLRecord |
getRecord(long recordId)
Returns the record with the ID.
|
java.util.List<DDLRecord> |
getRecords(long recordSetId)
Returns all the records matching the record set ID
|
void |
revertRecord(long recordId,
java.lang.String version,
ServiceContext serviceContext)
Reverts the record to a given version.
|
DDLRecord |
updateRecord(long recordId,
boolean majorVersion,
int displayIndex,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
Updates a record, replacing its display index and values.
|
DDLRecord addRecord(long groupId, long recordSetId, int displayIndex, DDMFormValues ddmFormValues, ServiceContext serviceContext) throws 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.PortalException - if a portal exception occurredvoid deleteRecord(long recordId)
throws PortalException
recordId - the primary key of the record to be deletedPortalExceptionjava.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) DDLRecord getRecord(long recordId) throws PortalException
recordId - the primary key of the recordPortalException - if a portal exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDLRecord> getRecords(long recordSetId) throws PortalException
recordSetId - the record's record set IDPortalException - if a portal exception occurredvoid revertRecord(long recordId,
java.lang.String version,
ServiceContext serviceContext)
throws 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.PortalException - if a portal exception occurredDDLRecord updateRecord(long recordId, boolean majorVersion, int displayIndex, DDMFormValues ddmFormValues, ServiceContext serviceContext) throws 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.PortalException - if a portal exception occurred