com.atlassian.plugin.web
Interface Condition

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

public interface Condition

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 PluginParseException
Called after creation and autowiring.

Parameters:
params - The optional map of parameters specified in XML.
Throws:
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 © 2011 Atlassian. All Rights Reserved.