com.atlassian.confluence.plugin.descriptor.web.conditions
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.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentHasAnyPermissionsSetCondition
public ContentHasAnyPermissionsSetCondition()
shouldDisplay
protected boolean shouldDisplay(WebInterfaceContext context)
- Specified by:
shouldDisplay in class BaseConfluenceCondition
- Returns:
- true if the page is not null and has either direct or
inherited content permissions.
setContentPermissionManager
public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
Copyright © 2003-2012 Atlassian. All Rights Reserved.