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

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

Introduction

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

Prototype

boolean DL_FILE_ENTRY_BUFFERED_INCREMENT_ENABLED

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

Click Source Link

Usage

From source file:com.liferay.document.library.web.internal.display.context.logic.DLPortletInstanceSettingsHelper.java

License:Open Source License

private String[] _getAllEntryColumns() {
    String allEntryColumns = "name,size,status";

    if (PropsValues.DL_FILE_ENTRY_BUFFERED_INCREMENT_ENABLED) {
        allEntryColumns += ",downloads";
    }//from   www  .j  ava  2s  .c  o m

    if (isShowActions()) {
        allEntryColumns += ",action";
    }

    allEntryColumns += ",modified-date,create-date";

    return StringUtil.split(allEntryColumns);
}

From source file:com.liferay.document.library.web.internal.display.context.logic.DLPortletInstanceSettingsHelper.java

License:Open Source License

private String[] _getAllFileEntryColumns() {
    String allFileEntryColumns = "name,size";

    if (PropsValues.DL_FILE_ENTRY_BUFFERED_INCREMENT_ENABLED) {
        allFileEntryColumns += ",downloads";
    }/*from w  w  w .  ja va 2  s  .c  o m*/

    allFileEntryColumns += ",locked";

    if (isShowActions()) {
        allFileEntryColumns += ",action";
    }

    return StringUtil.split(allFileEntryColumns);
}