List of usage examples for com.liferay.portal.kernel.security.permission ActionKeys VIEW_SITE_ADMINISTRATION
String VIEW_SITE_ADMINISTRATION
To view the source code for com.liferay.portal.kernel.security.permission ActionKeys VIEW_SITE_ADMINISTRATION.
Click Source Link
From source file:com.liferay.product.navigation.site.administration.internal.display.context.SiteAdministrationPanelCategoryDisplayContext.java
License:Open Source License
public boolean isShowSiteAdministration() throws PortalException { Group group = getGroup();/* w ww .j a va2s . c o m*/ if (group == null) { return false; } if (GroupPermissionUtil.contains(_themeDisplay.getPermissionChecker(), group, ActionKeys.VIEW_SITE_ADMINISTRATION)) { return true; } return false; }
From source file:com.liferay.roles.admin.web.internal.portlet.RolesAdminPortlet.java
License:Open Source License
protected void updateViewControlPanelPermission(Role role, long scopeGroupId, String portletId, int scope, String[] groupIds) throws Exception { PanelCategoryHelper panelCategoryHelper = new PanelCategoryHelper(_panelAppRegistry, _panelCategoryRegistry);/* ww w.j a v a 2 s. co m*/ String selResource = null; String actionId = null; if (panelCategoryHelper.containsPortlet(portletId, PanelCategoryKeys.CONTROL_PANEL) && (role.getType() == RoleConstants.TYPE_REGULAR)) { selResource = PortletKeys.PORTAL; actionId = ActionKeys.VIEW_CONTROL_PANEL; } else if (panelCategoryHelper.containsPortlet(portletId, PanelCategoryKeys.SITE_ADMINISTRATION)) { selResource = Group.class.getName(); actionId = ActionKeys.VIEW_SITE_ADMINISTRATION; } if (selResource != null) { updateAction(role, scopeGroupId, selResource, actionId, true, scope, groupIds); } }