com.atlassian.plugin.web.conditions
Class AbstractCompositeCondition

java.lang.Object
  extended by com.atlassian.plugin.web.conditions.AbstractCompositeCondition
All Implemented Interfaces:
Condition
Direct Known Subclasses:
AndCompositeCondition, OrCompositeCondition

public abstract class AbstractCompositeCondition
extends Object
implements Condition


Field Summary
protected  List<Condition> conditions
           
 
Constructor Summary
AbstractCompositeCondition()
           
 
Method Summary
 void addCondition(Condition condition)
           
 void init(Map<String,String> params)
          Called after creation and autowiring.
abstract  boolean shouldDisplay(Map<String,Object> context)
          Determine whether the web fragment should be displayed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conditions

protected List<Condition> conditions
Constructor Detail

AbstractCompositeCondition

public AbstractCompositeCondition()
Method Detail

addCondition

public void addCondition(Condition condition)

init

public void init(Map<String,String> params)
          throws PluginParseException
Description copied from interface: Condition
Called after creation and autowiring.

Specified by:
init in interface Condition
Parameters:
params - The optional map of parameters specified in XML.
Throws:
PluginParseException

shouldDisplay

public abstract boolean shouldDisplay(Map<String,Object> context)
Description copied from interface: Condition
Determine whether the web fragment should be displayed

Specified by:
shouldDisplay in interface Condition
Returns:
true if the user should see the fragment, false otherwise


Copyright © 2010 Atlassian. All Rights Reserved.