Class SpacePermissionManagerFactory
- java.lang.Object
-
- com.atlassian.confluence.impl.security.SpacePermissionManagerFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<SpacePermissionManagerInternal>
public class SpacePermissionManagerFactory extends Object implements org.springframework.beans.factory.FactoryBean<SpacePermissionManagerInternal>
This factory creates a space permissions manager with the right caching.- Since:
- 5.9
-
-
Constructor Summary
Constructors Constructor Description SpacePermissionManagerFactory(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, CoarseGrainedCachingSpacePermissionManager coarseGrainedCachingSpacePermissionManager, CachingSpacePermissionManager cachingSpacePermissionManager, DarkFeaturesManager darkFeaturesManager, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpacePermissionManagerInternal
getObject()
Class
getObjectType()
boolean
isSingleton()
void
onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
void
onSiteDarkFeatureDisabledEvent(SiteDarkFeatureDisabledEvent event)
void
onSiteDarkFeatureEnabledEvent(SiteDarkFeatureEnabledEvent event)
void
registerForEvents()
void
unregisterForEvents()
-
-
-
Constructor Detail
-
SpacePermissionManagerFactory
public SpacePermissionManagerFactory(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, CoarseGrainedCachingSpacePermissionManager coarseGrainedCachingSpacePermissionManager, CachingSpacePermissionManager cachingSpacePermissionManager, DarkFeaturesManager darkFeaturesManager, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
-
-
Method Detail
-
registerForEvents
@PostConstruct public void registerForEvents()
-
unregisterForEvents
@PreDestroy public void unregisterForEvents()
-
onSiteDarkFeatureEnabledEvent
@EventListener public void onSiteDarkFeatureEnabledEvent(SiteDarkFeatureEnabledEvent event)
-
onSiteDarkFeatureDisabledEvent
@EventListener public void onSiteDarkFeatureDisabledEvent(SiteDarkFeatureDisabledEvent event)
-
onApplicationStartedEvent
@EventListener public void onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
-
getObject
public SpacePermissionManagerInternal getObject() throws Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<SpacePermissionManagerInternal>
- Throws:
Exception
-
getObjectType
public Class getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<SpacePermissionManagerInternal>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<SpacePermissionManagerInternal>
-
-