Package com.atlassian.labs.speakeasy.model

Examples of com.atlassian.labs.speakeasy.model.UserPlugins


        webResourceManager.requireResource("com.atlassian.auiplugin:ajs");
        webResourceManager.requireResourcesForContext("speakeasy.user-profile");
        boolean devMode = speakeasyService.canAuthorExtensions(user);

        final UserPlugins plugins = speakeasyService.getRemotePluginList(user);
        render("templates/user" + (useUserProfileDecorator ? "-with-decorator" : "") + ".vm", ImmutableMap.<String, Object>builder().
                put("accessList", speakeasyService.getRemotePluginList(user)).
                put("user", user).
                put("req", req).
                put("baseUrl", applicationProperties.getBaseUrl()).
                put("contextPath", req.getContextPath()).
                put("enabledPlugins", filter(plugins.getPlugins(), new EnabledPluginsFilter())).
                put("availablePlugins", filter(plugins.getPlugins(), new AvailablePluginsFilter())).
                put("rowRenderer", new RowRenderer(req.getContextPath(), plugin)).
                put("jsdocRenderer", new JsDocRenderer(plugin, commonJsModulesAccessor.getAllPublicCommonJsModules())).
                put("staticResourcesPrefix", webResourceManager.getStaticResourcePrefix(UrlMode.RELATIVE)).
                put("product", productAccessor.getSdkName()).
                put("devmode", devMode).
View Full Code Here


    @Produces("application/json")
    public Response enableAccess(@PathParam("pluginKey") String pluginKey) throws UnauthorizedAccessException
    {
        String user = userManager.getRemoteUsername();
        List<String> affectedKeys = speakeasyService.enableExtension(pluginKey, user);
        UserPlugins entity = speakeasyService.getRemotePluginList(user, pluginKey);
        entity.setUpdated(affectedKeys);
        return Response.ok().entity(entity).build();
    }
View Full Code Here

    public Response disableAccess(@PathParam("pluginKey") String pluginKey) throws UnauthorizedAccessException
    {
        String user = userManager.getRemoteUsername();
        String affectedKey = speakeasyService.disableExtension(pluginKey, user);

        UserPlugins entity = speakeasyService.getRemotePluginList(user, pluginKey);
        if (affectedKey != null)
        {
            entity.setUpdated(asList(affectedKey));
        }
        return Response.ok().entity(entity).build();
    }
View Full Code Here

TOP

Related Classes of com.atlassian.labs.speakeasy.model.UserPlugins

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.