com.atlassian.confluence.plugins.whatsnew.conditions
Class ShowWhatsNewCondition

java.lang.Object
  extended by com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
      extended by com.atlassian.confluence.plugins.whatsnew.conditions.ShowWhatsNewCondition
All Implemented Interfaces:
com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition

public class ShowWhatsNewCondition
extends BaseConfluenceCondition

Displays a What's New web-fragment if: 1. the user isn't currently on a login or logout screen 2. the screen is the first non-login screen of the user's session 3. the user has not flagged that they don't want to see What's New


Field Summary
 
Fields inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
CONTEXT_KEY_HELPER
 
Constructor Summary
ShowWhatsNewCondition()
           
 
Method Summary
 void setWhatsNewManager(WhatsNewManager whatsNewManager)
           
 boolean shouldDisplay(WebInterfaceContext context)
          Display if the user hasn't specified to not show for the current minor Confluence version.
 
Methods inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
init, shouldDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowWhatsNewCondition

public ShowWhatsNewCondition()
Method Detail

shouldDisplay

public boolean shouldDisplay(WebInterfaceContext context)
Display if the user hasn't specified to not show for the current minor Confluence version.

Specified by:
shouldDisplay in class BaseConfluenceCondition

setWhatsNewManager

public void setWhatsNewManager(WhatsNewManager whatsNewManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.