Class DarkFeatureFunction
- java.lang.Object
 - 
- com.atlassian.confluence.plugins.soy.DarkFeatureFunction
 
 
- 
- All Implemented Interfaces:
 com.atlassian.soy.renderer.SoyClientFunction,com.atlassian.soy.renderer.SoyFunction,com.atlassian.soy.renderer.SoyServerFunction<Boolean>
public class DarkFeatureFunction extends Object implements com.atlassian.soy.renderer.SoyServerFunction<Boolean>, com.atlassian.soy.renderer.SoyClientFunction
Soy function to check whether a specific dark feature is enabled.NOTE: To be used carefully - it's usually best to isolate a dark feature in a plugin, and only deliver web resources based on the dark feature condition.
 
- 
- 
Constructor Summary
Constructors Constructor Description DarkFeatureFunction() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanapply(Object... args)com.atlassian.soy.renderer.JsExpressiongenerate(com.atlassian.soy.renderer.JsExpression... args)StringgetName()Set<Integer>validArgSizes() 
 - 
 
- 
- 
Method Detail
- 
getName
public String getName()
- Specified by:
 getNamein interfacecom.atlassian.soy.renderer.SoyFunction
 
- 
apply
public Boolean apply(Object... args)
- Specified by:
 applyin interfacecom.atlassian.soy.renderer.SoyServerFunction<Boolean>
 
- 
validArgSizes
public Set<Integer> validArgSizes()
- Specified by:
 validArgSizesin interfacecom.atlassian.soy.renderer.SoyFunction
 
- 
generate
public com.atlassian.soy.renderer.JsExpression generate(com.atlassian.soy.renderer.JsExpression... args)
- Specified by:
 generatein interfacecom.atlassian.soy.renderer.SoyClientFunction
 
 - 
 
 -