Examples of lookupGroup()


Examples of org.jahia.services.usermanager.JahiaGroupManagerService.lookupGroup()

        JahiaGroupManagerService grpManager = ServicesRegistry.getInstance().getJahiaGroupManagerService();
        JahiaUser jahiaUser = getJahiaUser();
        if (jahiaUser != null) {
            List<String> groups = grpManager.getUserMembership(jahiaUser);
            for (String groupname : groups) {
                JahiaGroup group = grpManager.lookupGroup(groupname);
                r.add(new Group(group));
            }
        }
        return r;
    }
View Full Code Here

Examples of org.jahia.services.usermanager.JahiaGroupManagerService.lookupGroup()

                return needPrivileged;
            }
        });

        JahiaGroupManagerService groupService = ServicesRegistry.getInstance().getJahiaGroupManagerService();
        final JahiaGroup priv = groupService.lookupGroup(site.getID(), JahiaGroupManagerService.SITE_PRIVILEGED_GROUPNAME);
        Principal p = null;
        if (principal.startsWith("u:")) {
            p = userManagerService.lookupUser(principal.substring(2));
        } else if (principal.length() > 2) {
            p = groupService.lookupGroup(site.getID(), principal.substring(2));
View Full Code Here

Examples of org.jahia.services.usermanager.JahiaGroupManagerService.lookupGroup()

        final JahiaGroup priv = groupService.lookupGroup(site.getID(), JahiaGroupManagerService.SITE_PRIVILEGED_GROUPNAME);
        Principal p = null;
        if (principal.startsWith("u:")) {
            p = userManagerService.lookupUser(principal.substring(2));
        } else if (principal.length() > 2) {
            p = groupService.lookupGroup(site.getID(), principal.substring(2));
        }
        if (p != null) {
            if (needPrivileged && !priv.isMember(p)) {
                logger.info(principal + " need privileged access");
                priv.addMember(p);
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.