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

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

Introduction

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

Prototype

boolean PERMISSIONS_CUSTOM_ATTRIBUTE_WRITE_CHECK_BY_DEFAULT

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

Click Source Link

Usage

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

License:Open Source License

public void addAttribute(String name) throws PortalException {
    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_WRITE_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isImportInProcess()) {
        secure = false;//from  w w w. j a  v  a  2 s .  c o  m
    }

    addAttribute(name, ExpandoColumnConstants.STRING, null, secure);
}

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

License:Open Source License

public void addAttribute(String name, int type) throws PortalException {
    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_WRITE_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isImportInProcess()) {
        secure = false;//  w  ww.j  a v a2 s .  c o  m
    }

    addAttribute(name, type, null, secure);
}

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

License:Open Source License

public void addAttribute(String name, int type, Serializable defaultValue) throws PortalException {

    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_WRITE_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isImportInProcess()) {
        secure = false;//  w w  w .  j a v  a 2 s.  c  om
    }

    addAttribute(name, type, defaultValue, secure);
}

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

License:Open Source License

public void setAttribute(String name, Serializable value) {
    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_WRITE_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isImportInProcess()) {
        secure = false;//from   w w  w. j  a  v a 2 s . c o  m
    }

    setAttribute(name, value, secure);
}

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

License:Open Source License

public void setAttributeProperties(String name, UnicodeProperties properties) {

    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_WRITE_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isImportInProcess()) {
        secure = false;/*w ww .  j a  v a2s  .  c om*/
    }

    setAttributeProperties(name, properties, secure);
}

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

License:Open Source License

public void setAttributes(Map<String, Serializable> attributes) {
    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_WRITE_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isImportInProcess()) {
        secure = false;//from www .jav  a 2  s  .com
    }

    setAttributes(attributes, secure);
}

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

License:Open Source License

public void setAttributes(ServiceContext serviceContext) {
    boolean secure = PropsValues.PERMISSIONS_CUSTOM_ATTRIBUTE_WRITE_CHECK_BY_DEFAULT;

    if (ImportExportThreadLocal.isImportInProcess()) {
        secure = false;//from ww w .  j a  v a 2s  .  co m
    }

    setAttributes(serviceContext, secure);
}