Package org.pentaho.platform.api.engine

Examples of org.pentaho.platform.api.engine.IUserDetailsRoleListService


        context.put("solution",requestParams.getParameter("solution"));
        context.put("path", requestParams.getParameter("path"));
        context.put("file", requestParams.getParameter("file"));
       
        // The first method works in 3.6, for 3.5 it's a different method. We'll try both
        IUserDetailsRoleListService service = PentahoSystem.get(IUserDetailsRoleListService.class);
        if (service == null) {
            // TODO - Remove this block of code once we drop support for older versions than SUGAR
            service = PentahoSystem.getUserDetailsRoleListService();
        }

        String userName = userSession.getName();
        if (!userName.equals("anonymousUser")) {
            context.put("roles", service.getRolesForUser(userName));
        }

        JSONObject params = new JSONObject();

        Iterator it = requestParams.getParameterNames();
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.engine.IUserDetailsRoleListService

Copyright © 2018 www.massapicom. 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.