com.atlassian.jira.dashboard.permission
Class JiraPermissionService

java.lang.Object
  extended by com.atlassian.jira.dashboard.permission.JiraPermissionService
All Implemented Interfaces:
com.atlassian.gadgets.dashboard.spi.DashboardPermissionService

public class JiraPermissionService
extends Object
implements com.atlassian.gadgets.dashboard.spi.DashboardPermissionService

Defines who has permission to read/update dashboards as well as adding gadgets to the external gadget directory.

Since:
v4.0

Constructor Summary
JiraPermissionService(UserUtil userUtil, PortalPageService portalPageService, PermissionManager permissionManager)
           
 
Method Summary
 boolean isReadableBy(com.atlassian.gadgets.dashboard.DashboardId dashboardId, String username)
           
 boolean isWritableBy(com.atlassian.gadgets.dashboard.DashboardId dashboardId, String username)
           
static void setAllowEditingOfDefaultDashboard(boolean allow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraPermissionService

public JiraPermissionService(UserUtil userUtil,
                             PortalPageService portalPageService,
                             PermissionManager permissionManager)
Method Detail

isReadableBy

public boolean isReadableBy(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
                            @Nullable
                            String username)
Specified by:
isReadableBy in interface com.atlassian.gadgets.dashboard.spi.DashboardPermissionService

isWritableBy

public boolean isWritableBy(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
                            @Nullable
                            String username)
Specified by:
isWritableBy in interface com.atlassian.gadgets.dashboard.spi.DashboardPermissionService

setAllowEditingOfDefaultDashboard

public static void setAllowEditingOfDefaultDashboard(boolean allow)


Copyright © 2002-2012 Atlassian. All Rights Reserved.