com.atlassian.gadgets.dashboard.spi.util
Class UserHasWritePermissionToDashboard

java.lang.Object
  extended by 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

Constructor Summary
UserHasWritePermissionToDashboard(DashboardPermissionService permissionService)
           
 
Method Summary
 void init(Map<String,String> params)
           
 boolean shouldDisplay(Map<String,Object> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserHasWritePermissionToDashboard

public UserHasWritePermissionToDashboard(DashboardPermissionService permissionService)
Method Detail

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.