Example usage for com.liferay.portal.util PropsValues MOBILE_DEVICE_RULES_PUBLISH_TO_LIVE_BY_DEFAULT

List of usage examples for com.liferay.portal.util PropsValues MOBILE_DEVICE_RULES_PUBLISH_TO_LIVE_BY_DEFAULT

Introduction

In this page you can find the example usage for com.liferay.portal.util PropsValues MOBILE_DEVICE_RULES_PUBLISH_TO_LIVE_BY_DEFAULT.

Prototype

boolean MOBILE_DEVICE_RULES_PUBLISH_TO_LIVE_BY_DEFAULT

To view the source code for com.liferay.portal.util PropsValues MOBILE_DEVICE_RULES_PUBLISH_TO_LIVE_BY_DEFAULT.

Click Source Link

Usage

From source file:com.liferay.mobile.device.rules.exportimport.data.handler.MDRPortletDataHandler.java

License:Open Source License

@Activate
protected void activate() {
    setDeletionSystemEventStagedModelTypes(new StagedModelType(MDRAction.class, Layout.class),
            new StagedModelType(MDRRule.class), new StagedModelType(MDRRuleGroup.class),
            new StagedModelType(MDRRuleGroupInstance.class, Layout.class));
    setExportControls(/*from  w  w  w.  j  a  va 2  s . com*/
            new PortletDataHandlerBoolean(NAMESPACE, "rules", true, false, null, MDRRule.class.getName()),
            new PortletDataHandlerBoolean(NAMESPACE, "actions", true, false, null, MDRAction.class.getName(),
                    Layout.class.getName()));
    setImportControls(getExportControls());
    setPublishToLiveByDefault(PropsValues.MOBILE_DEVICE_RULES_PUBLISH_TO_LIVE_BY_DEFAULT);
}