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

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

Introduction

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

Prototype

boolean DL_PUBLISH_TO_LIVE_BY_DEFAULT

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

Click Source Link

Usage

From source file:com.liferay.document.library.web.internal.lar.DLPortletDataHandler.java

License:Open Source License

@Activate
protected void activate() {
    setDataLocalized(true);//from   w  ww  .  j  av  a  2  s.c  o m
    setDataPortletPreferences("rootFolderId");
    setDeletionSystemEventStagedModelTypes(new StagedModelType(DLFileEntryType.class),
            new StagedModelType(DLFileShortcut.class), new StagedModelType(DLFileEntryConstants.getClassName()),
            new StagedModelType(DLFolderConstants.getClassName()),
            new StagedModelType(Repository.class.getName(), StagedModelType.REFERRER_CLASS_NAME_ALL));
    setExportControls(
            new PortletDataHandlerBoolean(NAMESPACE, "repositories", true, false, null,
                    Repository.class.getName(), StagedModelType.REFERRER_CLASS_NAME_ALL),
            new PortletDataHandlerBoolean(NAMESPACE, "folders", true, false, null,
                    DLFolderConstants.getClassName()),
            new PortletDataHandlerBoolean(NAMESPACE, "documents", true, false,
                    new PortletDataHandlerControl[] {
                            new PortletDataHandlerBoolean(NAMESPACE, "previews-and-thumbnails") },
                    DLFileEntryConstants.getClassName()),
            new PortletDataHandlerBoolean(NAMESPACE, "document-types", true, false, null,
                    DLFileEntryType.class.getName()),
            new PortletDataHandlerBoolean(NAMESPACE, "shortcuts", true, false, null,
                    DLFileShortcutConstants.getClassName()));
    setPublishToLiveByDefault(PropsValues.DL_PUBLISH_TO_LIVE_BY_DEFAULT);
    setRank(90);
}

From source file:com.liferay.document.library.web.internal.lar.IGDisplayPortletDataHandler.java

License:Open Source License

@Activate
protected void activate() {
    setDataLevel(DataLevel.PORTLET_INSTANCE);
    setDataPortletPreferences("rootFolderId");
    setExportControls(new PortletDataHandlerControl[0]);
    setPublishToLiveByDefault(PropsValues.DL_PUBLISH_TO_LIVE_BY_DEFAULT);
}

From source file:com.liferay.document.library.web.lar.DLPortletDataHandler.java

License:Open Source License

@Activate
protected void activate() {
    setDataLocalized(true);/*from w  w  w .  j a v a 2  s.  c  o  m*/
    setDataPortletPreferences("rootFolderId");
    setDeletionSystemEventStagedModelTypes(new StagedModelType(DLFileEntryType.class),
            new StagedModelType(DLFileRank.class), new StagedModelType(DLFileShortcut.class),
            new StagedModelType(DLFileEntryConstants.getClassName()),
            new StagedModelType(DLFolderConstants.getClassName()), new StagedModelType(Repository.class));
    setExportControls(
            new PortletDataHandlerBoolean(NAMESPACE, "repositories", true, false, null,
                    Repository.class.getName(), StagedModelType.REFERRER_CLASS_NAME_ALL),
            new PortletDataHandlerBoolean(NAMESPACE, "folders", true, false, null,
                    DLFolderConstants.getClassName()),
            new PortletDataHandlerBoolean(NAMESPACE, "documents", true, false,
                    new PortletDataHandlerControl[] {
                            new PortletDataHandlerBoolean(NAMESPACE, "previews-and-thumbnails") },
                    DLFileEntryConstants.getClassName()),
            new PortletDataHandlerBoolean(NAMESPACE, "document-types", true, false, null,
                    DLFileEntryType.class.getName()),
            new PortletDataHandlerBoolean(NAMESPACE, "shortcuts", true, false, null,
                    DLFileShortcutConstants.getClassName()));
    setPublishToLiveByDefault(PropsValues.DL_PUBLISH_TO_LIVE_BY_DEFAULT);
    setRank(90);
}

From source file:com.liferay.portlet.documentlibrary.lar.DLDisplayPortletDataHandlerImpl.java

License:Open Source License

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