Examples of UserACL


Examples of org.exoplatform.portal.config.UserACL

        String remoteUser = pcontext.getRemoteUser();
        if (remoteUser == null) {
            return false;
        }

        UserACL userACL = this.getApplicationComponent(UserACL.class);
        if (userACL.isUserInGroup(userACL.getAdminGroups())) {
            return true;
        }

        OrganizationService orgService = this.getApplicationComponent(OrganizationService.class);
        try {
            Collection<?> groups = orgService.getGroupHandler().findGroupByMembership(remoteUser, userACL.getMakableMT());
            return groups != null && groups.size() > 0;
        } catch (Exception ex) {
            return false;
        }
    }
View Full Code Here

Examples of org.exoplatform.portal.config.UserACL

            String groupName = event.getRequestContext().getRequestParameter(OBJECTID);
            SiteKey siteKey = SiteKey.group(groupName);

            // check edit permission, ensure that user has edit permission on that
            // navigation
            UserACL userACL = uicomp.getApplicationComponent(UserACL.class);
            if (!userACL.hasEditPermissionOnNavigation(siteKey)) {
                uiApplication
                        .addMessage(new ApplicationMessage("UIGroupNavigationManagement.msg.Invalid-editPermission", null));
                return;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.