Example usage for com.liferay.portal.kernel.service PhoneServiceUtil getPhone

List of usage examples for com.liferay.portal.kernel.service PhoneServiceUtil getPhone

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service PhoneServiceUtil getPhone.

Prototype

public static com.liferay.portal.kernel.model.Phone getPhone(long phoneId)
            throws com.liferay.portal.kernel.exception.PortalException 

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;/*from   www  .  j  a  v a  2s.c o  m*/

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

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