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

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

Introduction

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

Prototype

public void setParameter(String param, Object value);

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   ww w  .ja v  a 2s .c o m

    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;
}