Example usage for com.liferay.portal.kernel.service LayoutSetLocalServiceUtil updateSettings

List of usage examples for com.liferay.portal.kernel.service LayoutSetLocalServiceUtil updateSettings

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service LayoutSetLocalServiceUtil updateSettings.

Prototype

public static com.liferay.portal.kernel.model.LayoutSet updateSettings(long groupId, boolean privateLayout,
            String settings) throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Usage

From source file:com.liferay.exportimport.test.ExportImportDateUtilTest.java

License:Open Source License

protected void updateLastPublishDate(LayoutSet layoutSet, Date lastPublishDate) throws Exception {

    UnicodeProperties settingsProperties = layoutSet.getSettingsProperties();

    settingsProperties.setProperty("last-publish-date", String.valueOf(lastPublishDate.getTime()));

    LayoutSetLocalServiceUtil.updateSettings(layoutSet.getGroupId(), layoutSet.isPrivateLayout(),
            settingsProperties.toString());
}