com.atlassian.confluence.plugin.descriptor.web.conditions.user
Class UserWatchingPageCondition

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

public class UserWatchingPageCondition
extends BaseConfluenceCondition

Returns true if the user has a watch specifically on the current page. That is, for a user with a space-wide watch this condition will return false.


Field Summary
 
Fields inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
CONTEXT_KEY_HELPER
 
Constructor Summary
UserWatchingPageCondition()
           
 
Method Summary
 void setNotificationManager(NotificationManager notificationManager)
           
 boolean shouldDisplay(WebInterfaceContext context)
           
 
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

UserWatchingPageCondition

public UserWatchingPageCondition()
Method Detail

shouldDisplay

public boolean shouldDisplay(WebInterfaceContext context)
Specified by:
shouldDisplay in class BaseConfluenceCondition

setNotificationManager

public void setNotificationManager(NotificationManager notificationManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.