List of usage examples for com.liferay.portal.kernel.security.permission ActionKeys ADD_VOCABULARY
String ADD_VOCABULARY
To view the source code for com.liferay.portal.kernel.security.permission ActionKeys ADD_VOCABULARY.
Click Source Link
From source file:com.liferay.asset.categories.admin.web.internal.display.context.AssetCategoriesDisplayContext.java
License:Open Source License
public boolean isShowVocabulariesAddButton() { ThemeDisplay themeDisplay = (ThemeDisplay) _request.getAttribute(WebKeys.THEME_DISPLAY); if (AssetCategoriesPermission.contains(themeDisplay.getPermissionChecker(), AssetCategoriesPermission.RESOURCE_NAME, AssetCategoriesAdminPortletKeys.ASSET_CATEGORIES_ADMIN, themeDisplay.getSiteGroupId(), ActionKeys.ADD_VOCABULARY)) { return true; }//from w w w . java 2 s. c o m return false; }