Example usage for com.liferay.portal.kernel.dao.search ResultRow setRestricted

List of usage examples for com.liferay.portal.kernel.dao.search ResultRow setRestricted

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.dao.search ResultRow setRestricted.

Prototype

public void setRestricted(boolean restricted);

Source Link

Usage

From source file:com.liferay.taglib.ui.SearchContainerRowParameterTag.java

License:Open Source License

@Override
public int doStartTag() throws JspException {
    SearchContainerRowTag<R> searchContainerRowTag = (SearchContainerRowTag<R>) findAncestorWithClass(this,
            SearchContainerRowTag.class);

    if (searchContainerRowTag == null) {
        throw new JspTagException("Requires liferay-ui:search-container-row");
    }/*from w w w.j a  v a 2 s  . c om*/

    ResultRow row = searchContainerRowTag.getRow();

    if (_name.equals("className")) {
        row.setClassName(_name);
    } else if (_name.equals("classHoverName")) {
        row.setClassHoverName((String) _value);
    } else if (_name.equals("restricted")) {
        row.setRestricted(GetterUtil.getBoolean((String) _value, false));
    } else {
        row.setParameter(_name, _value);
    }

    return EVAL_BODY_INCLUDE;
}