@ParametersAreNonnullByDefault public class CachingInheritedContentPermissionManager extends Object implements InheritedContentPermissionManager
InheritedContentPermissionManager
which caches the permissions in a transactional VCache.Modifier and Type | Class and Description |
---|---|
class |
CachingInheritedContentPermissionManager.ContentPermissionEventListener |
Constructor and Description |
---|
CachingInheritedContentPermissionManager(InheritedContentPermissionManager permissionManagerDelegate,
PageDao pageDao,
com.atlassian.vcache.VCacheFactory cacheFactory,
ContentPermissionSetDao contentPermissionSetDao,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<ContentPermissionSet> |
getInheritedContentPermissionSets(ContentEntityObject contentEntityObject) |
com.google.common.collect.ImmutableList<ContentPermissionSet> |
getInheritedContentPermissionSetsIncludeEdit(ContentEntityObject contentEntityObject) |
void |
registerListener() |
void |
unregisterListener() |
public CachingInheritedContentPermissionManager(InheritedContentPermissionManager permissionManagerDelegate, PageDao pageDao, com.atlassian.vcache.VCacheFactory cacheFactory, ContentPermissionSetDao contentPermissionSetDao, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
@Nonnull public com.google.common.collect.ImmutableList<ContentPermissionSet> getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
getInheritedContentPermissionSets
in interface InheritedContentPermissionManager
ContentPermissionSet
s of type
ContentPermission.VIEW_PERMISSION
of all ancestors of contentEntityObject@Nonnull public com.google.common.collect.ImmutableList<ContentPermissionSet> getInheritedContentPermissionSetsIncludeEdit(ContentEntityObject contentEntityObject)
getInheritedContentPermissionSetsIncludeEdit
in interface InheritedContentPermissionManager
contentEntityObject
- content to get inherited permissions forContentPermission.EDIT_PERMISSION
@PostConstruct public void registerListener()
@PreDestroy public void unregisterListener() throws Exception
Exception
Copyright © 2003–2016 Atlassian. All rights reserved.