com.atlassian.jira.dashboard.permission
Class JiraPermissionService

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

public class JiraPermissionService
extends java.lang.Object
implements com.atlassian.gadgets.spi.PermissionService

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 canConfigureDirectory(java.lang.String username)
           
 boolean isReadableBy(com.atlassian.gadgets.dashboard.DashboardId dashboardId, java.lang.String username)
           
 boolean isWritableBy(com.atlassian.gadgets.dashboard.DashboardId dashboardId, java.lang.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
                            java.lang.String username)
Specified by:
isReadableBy in interface com.atlassian.gadgets.spi.PermissionService

isWritableBy

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

canConfigureDirectory

public boolean canConfigureDirectory(@Nullable
                                     java.lang.String username)
Specified by:
canConfigureDirectory in interface com.atlassian.gadgets.spi.PermissionService

setAllowEditingOfDefaultDashboard

public static void setAllowEditingOfDefaultDashboard(boolean allow)


Copyright © 2002-2010 Atlassian. All Rights Reserved.