com.atlassian.confluence.core
Class DefaultInheritedContentPermissionManager
java.lang.Object
com.atlassian.confluence.core.DefaultInheritedContentPermissionManager
- All Implemented Interfaces:
- InheritedContentPermissionManager
public class DefaultInheritedContentPermissionManager
- extends Object
- implements InheritedContentPermissionManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultInheritedContentPermissionManager
public DefaultInheritedContentPermissionManager()
getInheritedContentPermissionSets
public List<ContentPermissionSet> getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
- Specified by:
getInheritedContentPermissionSets
in interface InheritedContentPermissionManager
- Returns:
- a list of
ContentPermissionSet
s of type
ContentPermission.VIEW_PERMISSION
of all ancestors of contentEntityObject
cannotHaveInheritedPermissions
protected boolean cannotHaveInheritedPermissions(ContentEntityObject contentEntityObject)
- Check (for speed) whether we should even bother to query for possible inherited permissions.
At the moment this simply checks if the CEO is hierarchical AND has a parent - could be optimised further in the future.
- Returns:
- TRUE if this object cannot have inherited permissions, FALSE is the object could have inherited permissions
setContentPermissionSetDao
public void setContentPermissionSetDao(ContentPermissionSetDao contentPermissionSetDao)