com.atlassian.jira.dashboard.permission
Class JiraPermissionService
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JiraPermissionService
public JiraPermissionService(UserUtil userUtil,
PortalPageService portalPageService,
PermissionManager permissionManager)
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-2011 Atlassian. All Rights Reserved.