List of usage examples for com.liferay.portal.kernel.security.permission ActionKeys MOVE_THREAD
String MOVE_THREAD
To view the source code for com.liferay.portal.kernel.security.permission ActionKeys MOVE_THREAD.
Click Source Link
From source file:com.liferay.message.boards.internal.upgrade.v1_0_1.UpgradeUnsupportedGuestPermissions.java
License:Open Source License
@Override public void upgrade(DBProcessContext dbProcessContext) throws UpgradeException { _removeResourceActions(MBCategory.class.getName(), ActionKeys.DELETE); _removeResourceActions(MBCategory.class.getName(), ActionKeys.MOVE_THREAD); _removeResourceActions(MBCategory.class.getName(), ActionKeys.PERMISSIONS); _removeResourceActions(MBMessage.class.getName(), ActionKeys.DELETE); _removeResourceActions(MBMessage.class.getName(), ActionKeys.PERMISSIONS); _removeResourceActions(MBPermission.RESOURCE_NAME, ActionKeys.LOCK_THREAD); _removeResourceActions(MBPermission.RESOURCE_NAME, ActionKeys.MOVE_THREAD); _removeResourceActions(MBThread.class.getName(), ActionKeys.DELETE); }
From source file:com.liferay.message.boards.web.internal.portlet.configuration.icon.MoveThreadPortletConfigurationIcon.java
License:Open Source License
@Override public boolean isShow(PortletRequest portletRequest) { try {// w w w. j av a 2 s. c o m MBCategory category = ActionUtil.getCategory(portletRequest); ThemeDisplay themeDisplay = (ThemeDisplay) portletRequest.getAttribute(WebKeys.THEME_DISPLAY); if (MBCategoryPermission.contains(themeDisplay.getPermissionChecker(), themeDisplay.getScopeGroupId(), getCategoryId(category), ActionKeys.MOVE_THREAD)) { return true; } } catch (Exception e) { } return false; }