com.atlassian.confluence.core
Class DefaultInheritedContentPermissionManager

java.lang.Object
  extended bycom.atlassian.confluence.core.DefaultInheritedContentPermissionManager
All Implemented Interfaces:
InheritedContentPermissionManager

public class DefaultInheritedContentPermissionManager
extends Object
implements InheritedContentPermissionManager


Constructor Summary
DefaultInheritedContentPermissionManager()
           
 
Method Summary
protected  boolean cannotHaveInheritedPermissions(ContentEntityObject contentEntityObject)
          Check (for speed) whether we should even bother to query for possible inherited permissions.
 List getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
           
 void setContentPermissionSetDao(ContentPermissionSetDao contentPermissionSetDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultInheritedContentPermissionManager

public DefaultInheritedContentPermissionManager()
Method Detail

getInheritedContentPermissionSets

public List getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
Specified by:
getInheritedContentPermissionSets in interface InheritedContentPermissionManager
Returns:
a list of ContentPermissionSets 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)


Confluence is developed by Atlassian.