public class DefaultInheritedContentPermissionManager extends Object implements InheritedContentPermissionManager
Constructor and Description |
---|
DefaultInheritedContentPermissionManager() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
cannotHaveInheritedPermissions(ContentEntityObject contentEntityObject)
Check (for speed) whether we should even bother to query for possible inherited permissions.
|
List<ContentPermissionSet> |
getInheritedContentPermissionSets(ContentEntityObject contentEntityObject) |
List<ContentPermissionSet> |
getInheritedContentPermissionSetsIncludeEdit(ContentEntityObject contentEntityObject) |
void |
setContentPermissionSetDao(ContentPermissionSetDao contentPermissionSetDao) |
public DefaultInheritedContentPermissionManager()
public List<ContentPermissionSet> getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
getInheritedContentPermissionSets
in interface InheritedContentPermissionManager
ContentPermissionSet
s of type
ContentPermission.VIEW_PERMISSION
of all ancestors of contentEntityObjectpublic List<ContentPermissionSet> getInheritedContentPermissionSetsIncludeEdit(ContentEntityObject contentEntityObject)
getInheritedContentPermissionSetsIncludeEdit
in interface InheritedContentPermissionManager
contentEntityObject
- content to get inherited permissions forContentPermission.EDIT_PERMISSION
protected boolean cannotHaveInheritedPermissions(ContentEntityObject contentEntityObject)
At the moment this simply checks if the CEO is hierarchical AND has a parent - could be optimised further in the future.
public void setContentPermissionSetDao(ContentPermissionSetDao contentPermissionSetDao)
Copyright © 2003–2016 Atlassian. All rights reserved.