Search in sources :

Example 1 with DDLRecord

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);
}
Also used : ServiceContext(com.liferay.portal.service.ServiceContext) UploadPortletRequest(com.liferay.portal.kernel.upload.UploadPortletRequest) DDLRecord(com.liferay.portlet.dynamicdatalists.model.DDLRecord)

Aggregations

UploadPortletRequest (com.liferay.portal.kernel.upload.UploadPortletRequest)1 ServiceContext (com.liferay.portal.service.ServiceContext)1 DDLRecord (com.liferay.portlet.dynamicdatalists.model.DDLRecord)1