use of com.liferay.portlet.dynamicdatalists.model.DDLRecord in project liferay-ide by liferay.
the class EditRecordAction method updateRecord.
protected DDLRecord updateRecord(ActionRequest actionRequest) throws Exception {
UploadPortletRequest uploadPortletRequest = PortalUtil.getUploadPortletRequest(actionRequest);
ServiceContext serviceContext = ServiceContextFactory.getInstance(DDLRecord.class.getName(), uploadPortletRequest);
long recordId = ParamUtil.getLong(serviceContext, "recordId");
long recordSetId = ParamUtil.getLong(serviceContext, "recordSetId");
return DDLUtil.updateRecord(recordId, recordSetId, true, serviceContext);
}
Aggregations