com.atlassian.gadgets.dashboard.spi.util
Class UserHasWritePermissionToDashboard
java.lang.Object
com.atlassian.gadgets.dashboard.spi.util.UserHasWritePermissionToDashboard
- All Implemented Interfaces:
- com.atlassian.plugin.web.Condition
public class UserHasWritePermissionToDashboard
- extends Object
- implements com.atlassian.plugin.web.Condition
A Condition
that can be used when creating web-items that allow the user to modify the dashboard in some
way, such as by adding a gadget to it.
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserHasWritePermissionToDashboard
public UserHasWritePermissionToDashboard(DashboardPermissionService permissionService)
shouldDisplay
public boolean shouldDisplay(Map<String,Object> context)
- Specified by:
shouldDisplay
in interface com.atlassian.plugin.web.Condition
init
public void init(Map<String,String> params)
throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interface com.atlassian.plugin.web.Condition
- Throws:
com.atlassian.plugin.PluginParseException
Copyright © 2011 Atlassian. All Rights Reserved.