com.atlassian.confluence.plugin.descriptor.web.conditions
Class ContentHasAnyPermissionsSetCondition

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

public class ContentHasAnyPermissionsSetCondition
extends BaseConfluenceCondition

This condition checks if there are any content permissions applied to the current page. It evaluates to true, if the page has either direct or inherited content permissions.


Field Summary
 
Fields inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
CONTEXT_KEY_HELPER
 
Constructor Summary
ContentHasAnyPermissionsSetCondition()
           
 
Method Summary
 void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
           
protected  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

ContentHasAnyPermissionsSetCondition

public ContentHasAnyPermissionsSetCondition()
Method Detail

shouldDisplay

protected boolean shouldDisplay(WebInterfaceContext context)
Specified by:
shouldDisplay in class BaseConfluenceCondition
Returns:
true if the page has either direct or inherited content permissions.

setContentPermissionManager

public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.