com.atlassian.plugin.web
Interface Condition

All Superinterfaces:
BaseCondition
All Known Implementing Classes:
AbstractCompositeCondition, AlwaysDisplayCondition, AndCompositeCondition, InvertedCondition, NeverDisplayCondition, OrCompositeCondition

public interface Condition
extends BaseCondition

Decides whether a web section or web item should be displayed


Method Summary
 void init(Map<String,String> params)
          Called after creation and autowiring.
 boolean shouldDisplay(Map<String,Object> context)
          Determine whether the web fragment should be displayed
 

Method Detail

init

void init(Map<String,String> params)
          throws com.atlassian.plugin.PluginParseException
Called after creation and autowiring.

Parameters:
params - The optional map of parameters specified in XML.
Throws:
com.atlassian.plugin.PluginParseException

shouldDisplay

boolean shouldDisplay(Map<String,Object> context)
Determine whether the web fragment should be displayed

Returns:
true if the user should see the fragment, false otherwise


Copyright © 2014 Atlassian. All rights reserved.