Examples of lookupUserByKey()


Examples of org.jahia.services.usermanager.JahiaUserManagerService.lookupUserByKey()

        Locale locale = (Locale) execution.getVariable("locale");

        String userKey = (String) execution.getVariable("user");
        JCRSessionFactory sessionFactory = JCRSessionFactory.getInstance();
        final JahiaUserManagerService userMgr = ServicesRegistry.getInstance().getJahiaUserManagerService();
        JahiaUser user = userMgr.lookupUserByKey(userKey);
        JahiaUser currentUser = sessionFactory.getCurrentUser();
        sessionFactory.setCurrentUser(user);
        if(logger.isDebugEnabled()) {
            for (String id : ids) {
                JCRNodeWrapper node = sessionFactory.getCurrentUserSession().getNodeByUUID(id);
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.