Example usage for com.liferay.portal.kernel.security.permission ActionKeys ADD_LAYOUT_PROTOTYPE

List of usage examples for com.liferay.portal.kernel.security.permission ActionKeys ADD_LAYOUT_PROTOTYPE

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.security.permission ActionKeys ADD_LAYOUT_PROTOTYPE.

Prototype

String ADD_LAYOUT_PROTOTYPE

To view the source code for com.liferay.portal.kernel.security.permission ActionKeys ADD_LAYOUT_PROTOTYPE.

Click Source Link

Usage

From source file:com.liferay.layout.prototype.web.internal.display.context.LayoutPrototypeDisplayContext.java

License:Open Source License

public boolean isShowAddButton() {
    ThemeDisplay themeDisplay = (ThemeDisplay) _request.getAttribute(WebKeys.THEME_DISPLAY);

    if (PortalPermissionUtil.contains(themeDisplay.getPermissionChecker(), ActionKeys.ADD_LAYOUT_PROTOTYPE)) {

        return true;
    }/*from  www. j  a v  a 2 s.  c  om*/

    return false;
}