com.atlassian.jira.plugin.webfragment.conditions
Class AbstractWebCondition

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.conditions.AbstractWebCondition
All Implemented Interfaces:
com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition
Direct Known Subclasses:
AbstractIssueWebCondition, AbstractPermissionCondition, UserIsAdminCondition

@PublicSpi
public abstract class AbstractWebCondition
extends Object
implements com.atlassian.plugin.web.Condition

Convenient abstraction for Conditions that are aware of JIRA's authentication and project- or issue-related contexts. These can be used in action configurations to guard conditionally displayed content.

Since:
v6.0

Constructor Summary
AbstractWebCondition()
           
 
Method Summary
 void init(Map<String,String> params)
           
abstract  boolean shouldDisplay(ApplicationUser user, JiraHelper jiraHelper)
           
 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

AbstractWebCondition

public AbstractWebCondition()
Method Detail

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

shouldDisplay

public boolean shouldDisplay(Map<String,Object> context)
Specified by:
shouldDisplay in interface com.atlassian.plugin.web.Condition

shouldDisplay

public abstract boolean shouldDisplay(ApplicationUser user,
                                      JiraHelper jiraHelper)


Copyright © 2002-2014 Atlassian. All Rights Reserved.