Example usage for com.liferay.portal.kernel.util GetterUtil getLongValues

List of usage examples for com.liferay.portal.kernel.util GetterUtil getLongValues

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util GetterUtil getLongValues.

Prototype

public static long[] getLongValues(String[] values, long[] defaultValue) 

Source Link

Document

Returns the String array values as a long array.

Usage

From source file:org.opencps.servicemgt.search.ServiceDisplayTerms.java

License:Open Source License

/**
 * @param fileTemplateIds//from   www  .  j a v  a 2 s .  c  o  m
 *            the fileTemplateIds to set
 */
public long[] setFileTemplateIds(PortletRequest portletRequest) {

    String[] strFileTemplateIds = ParamUtil.getParameterValues(portletRequest, TEMPLATE_FILE_IDS);

    return GetterUtil.getLongValues(strFileTemplateIds, new long[] {});
}