f-angi
9/29/2016 - 1:59 PM

Gets a page url from its plid

Gets a page url from its plid

public void aRequest(ActionResponse actionResponse, ActionRequest actionRequest) {
  
  String checkoutLayoutPlid = actionRequest.getPreferences().getValue("checkoutLayoutPlid", "");
  String checkoutUrl = "";
  if (StringUtils.isNotBlank(checkoutLayoutPlid)) {
      Layout checkoutLayout = LayoutLocalServiceUtil.getLayout(Long.valueOf(checkoutLayoutPlid));
      checkoutUrl = PortalUtil.getLayoutFriendlyURL(checkoutLayout, themeDisplay);
  }

}