Example usage for com.liferay.portal.kernel.service LayoutSetBranchLocalServiceUtil getLayoutSetBranch

List of usage examples for com.liferay.portal.kernel.service LayoutSetBranchLocalServiceUtil getLayoutSetBranch

Introduction

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

Prototype

public static com.liferay.portal.kernel.model.LayoutSetBranch getLayoutSetBranch(long layoutSetBranchId)
        throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Returns the layout set branch with the primary key.

Usage

From source file:com.liferay.layout.admin.web.internal.asset.LayoutRevisionAssetRenderer.java

License:Open Source License

public LayoutRevisionAssetRenderer(LayoutRevision layoutRevision) {
    _layoutRevision = layoutRevision;//from   w  w w . j  a  v  a  2 s . co m

    try {
        _layoutBranch = layoutRevision.getLayoutBranch();

        _layoutSetBranch = LayoutSetBranchLocalServiceUtil
                .getLayoutSetBranch(_layoutRevision.getLayoutSetBranchId());
    } catch (Exception e) {
        throw new IllegalStateException(e);
    }
}