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

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

Introduction

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

Prototype

boolean MESSAGE_BOARDS_PUBLISH_TO_LIVE_BY_DEFAULT

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

Click Source Link

Usage

From source file:com.liferay.message.boards.web.exportimport.data.handler.MBPortletDataHandler.java

License:Open Source License

@Activate
protected void activate() {
    setDeletionSystemEventStagedModelTypes(new StagedModelType(MBBan.class),
            new StagedModelType(MBCategory.class), new StagedModelType(MBMessage.class),
            new StagedModelType(MBThread.class), new StagedModelType(MBThreadFlag.class));
    setExportControls(//from   w ww.  j av a  2 s  . c  o  m
            new PortletDataHandlerBoolean(NAMESPACE, "categories", true, false, null,
                    MBCategory.class.getName()),
            new PortletDataHandlerBoolean(NAMESPACE, "messages", true, false, null, MBMessage.class.getName()),
            new PortletDataHandlerBoolean(NAMESPACE, "thread-flags", true, false, null,
                    MBThreadFlag.class.getName()),
            new PortletDataHandlerBoolean(NAMESPACE, "user-bans", true, false, null, MBBan.class.getName()));
    setImportControls(getExportControls());
    setPublishToLiveByDefault(PropsValues.MESSAGE_BOARDS_PUBLISH_TO_LIVE_BY_DEFAULT);
}

From source file:com.liferay.message.boards.web.internal.exportimport.data.handler.MBPortletDataHandler.java

License:Open Source License

@Activate
protected void activate() {
    setDeletionSystemEventStagedModelTypes(new StagedModelType(MBBan.class),
            new StagedModelType(MBCategory.class), new StagedModelType(MBMessage.class),
            new StagedModelType(MBThread.class), new StagedModelType(MBThreadFlag.class));
    setExportControls(/*from  w  w  w .  j av a  2s .  co  m*/
            new PortletDataHandlerBoolean(NAMESPACE, "categories", true, false, null,
                    MBCategory.class.getName()),
            new PortletDataHandlerBoolean(NAMESPACE, "messages", true, false, null, MBMessage.class.getName(),
                    StagedModelType.REFERRER_CLASS_NAME_ALL),
            new PortletDataHandlerBoolean(NAMESPACE, "thread-flags", true, false, null,
                    MBThreadFlag.class.getName()),
            new PortletDataHandlerBoolean(NAMESPACE, "user-bans", true, false, null, MBBan.class.getName()));
    setImportControls(getExportControls());
    setPublishToLiveByDefault(PropsValues.MESSAGE_BOARDS_PUBLISH_TO_LIVE_BY_DEFAULT);
}

From source file:com.liferay.portlet.messageboards.lar.MBPortletDataHandlerImpl.java

License:Open Source License

@Override
public boolean isPublishToLiveByDefault() {
    return PropsValues.MESSAGE_BOARDS_PUBLISH_TO_LIVE_BY_DEFAULT;
}