com.atlassian.confluence.core
Class CachingContentPermissionManager

java.lang.Object
  extended by com.atlassian.confluence.core.DefaultContentEntityManager
      extended by com.atlassian.confluence.core.DefaultContentPermissionManager
          extended by com.atlassian.confluence.core.CachingContentPermissionManager
All Implemented Interfaces:
ContentEntityManager, ContentPermissionManager

public class CachingContentPermissionManager
extends DefaultContentPermissionManager


Field Summary
 
Fields inherited from class com.atlassian.confluence.core.DefaultContentPermissionManager
contentPermissionDao, pageManager
 
Fields inherited from class com.atlassian.confluence.core.DefaultContentEntityManager
contentEntityObjectDao, eventManager, indexer, linkManager
 
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager
ITERATE_ALL
 
Constructor Summary
CachingContentPermissionManager()
           
 
Method Summary
 void addContentPermission(ContentPermission permission, ContentEntityObject content)
          all the inherited permissions cached for each descendent of this page need to be wiped out.
 Cache getCache()
           
 List getInheritedContentPermissions(ContentEntityObject contentEntityObject)
          returns all inherited content permission objects attached to the ancestors of this entity object, that is, all view permissions but *not* edit permissions.
 void onContentContextChanged(ContentEntityObject contentEntityObject)
          Method to notify the permission manager that the 'context' of the content has changed.
 void removeContentPermission(ContentPermission permission)
          all the inherited permissions cached for each descendent of this page need to be wiped out.
 void setCacheManager(CacheManager cacheManager)
           
 
Methods inherited from class com.atlassian.confluence.core.DefaultContentPermissionManager
cannotHaveInheritedPermissions, getContentUserPermission, getInheritedContentUserPermissions, getInheritedViewContentPermissions, getPermittedChildren, getViewContentPermissions, hasContentLevelPermission, saveContentPermission, setContentPermissionDao, setPageManager
 
Methods inherited from class com.atlassian.confluence.core.DefaultContentEntityManager
getAllCurrentEntities, getById, getEntitiesModifiedSince, getEventManager, getLockedBySpace, getNextVersion, getOtherVersion, getPageDao, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesByType, getRecentlyModifiedEntitiesForUser, getVersionHistorySummaries, publishCreateEvent, publishRemoveEvent, publishUpdateEvent, refreshContentEntity, removeContentEntity, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, setContentEntityObjectDao, setEventManager, setIndexer, setLabelManager, setLinkManager, updateContentLinkingTo, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingContentPermissionManager

public CachingContentPermissionManager()
Method Detail

addContentPermission

public void addContentPermission(ContentPermission permission,
                                 ContentEntityObject content)
all the inherited permissions cached for each descendent of this page need to be wiped out. this needs to happen before we add the permission (else the page would be added and its descendents _indexed_ against wrong inherited permissions)

Specified by:
addContentPermission in interface ContentPermissionManager
Overrides:
addContentPermission in class DefaultContentPermissionManager
Parameters:
permission -
content -

removeContentPermission

public void removeContentPermission(ContentPermission permission)
all the inherited permissions cached for each descendent of this page need to be wiped out. this needs to happen before we add the permission (else the page would be added and its descendents _indexed_ against wrong inherited permissions)

Specified by:
removeContentPermission in interface ContentPermissionManager
Overrides:
removeContentPermission in class DefaultContentPermissionManager
Parameters:
permission -

getInheritedContentPermissions

public List getInheritedContentPermissions(ContentEntityObject contentEntityObject)
Description copied from class: DefaultContentPermissionManager
returns all inherited content permission objects attached to the ancestors of this entity object, that is, all view permissions but *not* edit permissions.

Specified by:
getInheritedContentPermissions in interface ContentPermissionManager
Overrides:
getInheritedContentPermissions in class DefaultContentPermissionManager

onContentContextChanged

public void onContentContextChanged(ContentEntityObject contentEntityObject)
Description copied from interface: ContentPermissionManager
Method to notify the permission manager that the 'context' of the content has changed. For example when a Page hierarchy is moved from a parent page to another.

Specified by:
onContentContextChanged in interface ContentPermissionManager
Overrides:
onContentContextChanged in class DefaultContentPermissionManager
Parameters:
contentEntityObject - the content for which the context changed.

getCache

public Cache getCache()

setCacheManager

public void setCacheManager(CacheManager cacheManager)


Confluence is developed by Atlassian.