Class ContentHasAnyPermissionsSetCondition
java.lang.Object
com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
com.atlassian.confluence.plugin.descriptor.web.conditions.ContentHasAnyPermissionsSetCondition
- All Implemented Interfaces:
com.atlassian.plugin.web.api.baseconditions.BaseCondition
,com.atlassian.plugin.web.Condition
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setContentPermissionManager
(ContentPermissionManager contentPermissionManager) protected boolean
shouldDisplay
(WebInterfaceContext context) Methods inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
init, shouldDisplay
-
Constructor Details
-
ContentHasAnyPermissionsSetCondition
public ContentHasAnyPermissionsSetCondition()
-
-
Method Details
-
shouldDisplay
- Specified by:
shouldDisplay
in classBaseConfluenceCondition
- Returns:
- true if the page has either direct or inherited content permissions.
-
setContentPermissionManager
-