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

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

Introduction

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

Prototype

String WEBSITE

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

Click Source Link

Usage

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

License:Open Source License

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

    Website website = null;//from w w w  .ja  v  a 2 s. co  m

    if (websiteId > 0) {
        website = WebsiteServiceUtil.getWebsite(websiteId);
    }

    request.setAttribute(WebKeys.WEBSITE, website);
}