Class NonFinalVersionCondition

  • All Implemented Interfaces:
    com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition

    public class NonFinalVersionCondition
    extends Object
    implements com.atlassian.plugin.web.Condition
    Prevents display of web content for final Bamboo versions. Non final versions are detected by checking for presence of - SNAPSHOT - i - beta - rc - m in the version string.
    • Constructor Detail

      • NonFinalVersionCondition

        public NonFinalVersionCondition()
    • Method Detail

      • init

        public void init​(Map<String,​String> params)
                  throws com.atlassian.plugin.PluginParseException
        Specified by:
        init in interface com.atlassian.plugin.web.Condition
        Throws:
        com.atlassian.plugin.PluginParseException
      • shouldDisplay

        public boolean shouldDisplay​(Map<String,​Object> context)
        Specified by:
        shouldDisplay in interface com.atlassian.plugin.web.Condition