Example usage for com.liferay.portal.kernel.util WebKeys PHONE

List of usage examples for com.liferay.portal.kernel.util WebKeys PHONE

Introduction

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

Prototype

String PHONE

To view the source code for com.liferay.portal.kernel.util WebKeys PHONE.

Click Source Link

Usage

From source file:com.liferay.users.admin.web.internal.portlet.action.ActionUtil.java

License:Open Source License

public static void getPhone(HttpServletRequest request) throws Exception {
    long phoneId = ParamUtil.getLong(request, "phoneId");

    Phone phone = null;//ww  w  .j  a va 2  s .  c  o m

    if (phoneId > 0) {
        phone = PhoneServiceUtil.getPhone(phoneId);
    }

    request.setAttribute(WebKeys.PHONE, phone);
}