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

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

Introduction

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

Prototype

String ADD_TAG

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

Click Source Link

Usage

From source file:com.liferay.asset.tags.admin.web.internal.display.context.AssetTagsDisplayContext.java

License:Open Source License

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

    if (AssetTagsPermission.contains(themeDisplay.getPermissionChecker(), AssetTagsPermission.RESOURCE_NAME,
            AssetTagsAdminPortletKeys.ASSET_TAGS_ADMIN, themeDisplay.getSiteGroupId(), ActionKeys.ADD_TAG)) {

        return true;
    }/*from   ww  w  .  ja v  a2  s. c om*/

    return false;
}