Package org.jtalks.jcommune.plugin.api.web.velocity.tool

Examples of org.jtalks.jcommune.plugin.api.web.velocity.tool.PermissionTool


        Map<String, Object> model = new HashMap<>();
        model.put("request", request);
        model.put("dateTool", new JodaDateTimeTool(request));
        model.put("esc", new EscapeTool());
        JCUser currentUser = ReadOnlySecurityService.getInstance().getCurrentUser();
        PermissionTool tool = new PermissionTool(applicationContext);
        model.put("currentUser", currentUser);
        model.put("messages", getLocalizedMessagesBundle(currentUser));
        model.put("permissionTool", tool);
        return model;
    }
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.plugin.api.web.velocity.tool.PermissionTool

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.