com.atlassian.confluence.core
Class CachingContentPermissionManager
java.lang.Object
com.atlassian.confluence.core.DefaultContentEntityManager
com.atlassian.confluence.core.DefaultContentPermissionManager
com.atlassian.confluence.core.CachingContentPermissionManager
- All Implemented Interfaces:
- ContentEntityManager, ContentPermissionManager
public class CachingContentPermissionManager
- extends DefaultContentPermissionManager
| 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 |
CachingContentPermissionManager
public CachingContentPermissionManager()
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)