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(java.util.Map params)
          Called after creation and autowiring.
 boolean shouldDisplay(java.util.Map context)
          Determine whether the web fragment should be displayed
 

Method Detail

init

void init(java.util.Map params)
          throws PluginParseException
Called after creation and autowiring.

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

shouldDisplay

boolean shouldDisplay(java.util.Map context)
Determine whether the web fragment should be displayed

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


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.