com.atlassian.plugin.web.conditions
Class AlwaysDisplayCondition

java.lang.Object
  extended by com.atlassian.plugin.web.conditions.AlwaysDisplayCondition
All Implemented Interfaces:
Condition

public class AlwaysDisplayCondition
extends Object
implements Condition

Always show a web link. Not really useful for anything except testing


Constructor Summary
AlwaysDisplayCondition()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysDisplayCondition

public AlwaysDisplayCondition()
Method Detail

init

public void init(Map<String,String> params)
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.

shouldDisplay

public 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 © 2011 Atlassian. All Rights Reserved.