List of usage examples for com.liferay.portal.kernel.security.permission ActionKeys IMPORT
String IMPORT
To view the source code for com.liferay.portal.kernel.security.permission ActionKeys IMPORT.
Click Source Link
From source file:com.liferay.wiki.service.impl.WikiNodeServiceImpl.java
License:Open Source License
@Override public void importPages(long nodeId, String importer, InputStream[] inputStreams, Map<String, String[]> options) throws PortalException { WikiNodePermissionChecker.check(getPermissionChecker(), nodeId, ActionKeys.IMPORT); wikiNodeLocalService.importPages(getUserId(), nodeId, importer, inputStreams, options); }
From source file:com.liferay.wiki.web.internal.portlet.configuration.icon.ImportPagesPortletConfigurationIcon.java
License:Open Source License
@Override public boolean isShow(PortletRequest portletRequest) { ThemeDisplay themeDisplay = (ThemeDisplay) portletRequest.getAttribute(WebKeys.THEME_DISPLAY); try {/* w w w.j a va2 s .com*/ WikiNode node = ActionUtil.getNode(portletRequest); return WikiNodePermissionChecker.contains(themeDisplay.getPermissionChecker(), node, ActionKeys.IMPORT); } catch (Exception e) { } return false; }