public class

ContentHasAnyPermissionsSetCondition

extends BaseConfluenceCondition
java.lang.Object
   ↳ com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
     ↳ com.atlassian.confluence.plugin.descriptor.web.conditions.ContentHasAnyPermissionsSetCondition

Class Overview

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.

Summary

Public Constructors
ContentHasAnyPermissionsSetCondition()
Public Methods
void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
Protected Methods
boolean shouldDisplay(WebInterfaceContext context)
[Expand]
Inherited Methods
From class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Public Constructors

public ContentHasAnyPermissionsSetCondition ()

Public Methods

public void setContentPermissionManager (ContentPermissionManager contentPermissionManager)

Protected Methods

protected boolean shouldDisplay (WebInterfaceContext context)

Returns
  • true if the page is not null and has either direct or inherited content permissions.