Example usage for com.liferay.portal.kernel.model LayoutSet isLayoutSetPrototypeLinkActive

List of usage examples for com.liferay.portal.kernel.model LayoutSet isLayoutSetPrototypeLinkActive

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.model LayoutSet isLayoutSetPrototypeLinkActive.

Prototype

public boolean isLayoutSetPrototypeLinkActive();

Source Link

Usage

From source file:com.liferay.layout.admin.web.internal.product.navigation.control.menu.InformationMessagesProductNavigationControlMenuEntry.java

License:Open Source License

protected boolean isModifiedLayout(ThemeDisplay themeDisplay) throws PortalException {

    Layout layout = themeDisplay.getLayout();

    LayoutSet layoutSet = layout.getLayoutSet();

    if (!layoutSet.isLayoutSetPrototypeLinkActive() || !SitesUtil.isLayoutModifiedSinceLastMerge(layout)) {

        return false;
    }/*from   w  w  w  .  ja v a  2s.com*/

    if (!hasUpdateLayoutPermission(themeDisplay)) {
        return false;
    }

    return true;
}