Example usage for com.liferay.portal.kernel.util PortalUtil isSystemGroup

List of usage examples for com.liferay.portal.kernel.util PortalUtil isSystemGroup

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PortalUtil isSystemGroup.

Prototype

public static boolean isSystemGroup(String groupName) 

Source Link

Usage

From source file:com.liferay.site.admin.web.internal.display.context.SiteAdminDisplayContext.java

License:Open Source License

public boolean hasDeleteGroupPermission(Group group) throws PortalException {

    ThemeDisplay themeDisplay = (ThemeDisplay) _request.getAttribute(WebKeys.THEME_DISPLAY);

    PermissionChecker permissionChecker = themeDisplay.getPermissionChecker();

    if (!group.isCompany() && GroupPermissionUtil.contains(permissionChecker, group, ActionKeys.DELETE)
            && !PortalUtil.isSystemGroup(group.getGroupKey())) {

        return true;
    }/*w ww  . ja  va2s.c o  m*/

    return false;
}