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

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

Introduction

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

Prototype

boolean PERMISSIONS_CUSTOM_ATTRIBUTE_READ_CHECK_BY_DEFAULT

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

Click Source Link

Usage

From source file:com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.java

License:Open Source License

public Serializable getAttribute(String name) {
    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_READ_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isExportInProcess()) {
        secure = false;//from   ww w.j av  a2 s  . co m
    }

    return getAttribute(name, secure);
}

From source file:com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.java

License:Open Source License

public Map<String, Serializable> getAttributes() {
    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_READ_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isExportInProcess()) {
        secure = false;/*from   w  w  w  .  j av  a  2s .c om*/
    }

    return getAttributes(secure);
}

From source file:com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.java

License:Open Source License

public Map<String, Serializable> getAttributes(Collection<String> names) {
    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_READ_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isExportInProcess()) {
        secure = false;//  ww  w  .  jav a2 s .  c om
    }

    return getAttributes(names, secure);
}