Class CryptodocSwitchableApplicationContextFactory
- java.lang.Object
-
- org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean
-
- org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory
-
- org.alfresco.repo.management.subsystems.CryptodocSwitchableApplicationContextFactory
-
- All Implemented Interfaces:
EventListener,ApplicationContextFactory,PropertyBackedBean,PropertyBackedBeanState,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
public class CryptodocSwitchableApplicationContextFactory extends SwitchableApplicationContextFactory
SwitchableApplicationContextFactorythat only allows the subsystem to be switched from unencrypted to encrypted, or if the two subsystems have the same ecrypted state. Switching back to unencrypted from encrypted content store is not allowed.- Author:
- Matt Ward
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classCryptodocSwitchableApplicationContextFactory.CryptoSwitchableState-
Nested classes/interfaces inherited from class org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory
SwitchableApplicationContextFactory.SwitchableState
-
Nested classes/interfaces inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean
AbstractPropertyBackedBean.DefaultResolver, AbstractPropertyBackedBean.RuntimeState
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory
SOURCE_BEAN_PROPERTY, sourceBeanName
-
Fields inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean
DEFAULT_INSTANCE_NAME, lock, runtimeState
-
-
Constructor Summary
Constructors Constructor Description CryptodocSwitchableApplicationContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyBackedBeanStatecreateInitialState()Creates the initial state.voidonApplicationEvent(org.springframework.context.ApplicationEvent event)-
Methods inherited from class org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory
getApplicationContext, getCurrentSourceBeanName, setSourceBeanName
-
Methods inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean
afterPropertiesSet, applyDefaultOverrides, destroy, destroy, doInit, getCategory, getDescription, getEncryptedPropertyDefaults, getId, getInstancePath, getParent, getProperty, getPropertyDefaults, getPropertyNames, getRegistry, getState, init, isUpdateable, performEarlyPropertyChecks, removeProperties, removeProperty, resolveDefault, revert, setApplicationContext, setAutoStart, setBeanName, setCategory, setEarlyPropertyCheckers, setEncryptedPropertyDefaults, setInstancePath, setProperties, setProperty, setPropertyDefaults, setRegistry, setSaveSetProperty, start, start, stop, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.management.subsystems.PropertyBackedBean
getDescription, getId, isUpdateable, removeProperties, revert, setProperties
-
Methods inherited from interface org.alfresco.repo.management.subsystems.PropertyBackedBeanState
getProperty, getPropertyNames, removeProperty, setProperty, start, stop
-
-
-
-
Method Detail
-
createInitialState
protected PropertyBackedBeanState createInitialState() throws IOException
Description copied from class:AbstractPropertyBackedBeanCreates the initial state.- Overrides:
createInitialStatein classSwitchableApplicationContextFactory- Returns:
- the property backed bean state
- Throws:
IOException- Signals that an I/O exception has occurred.
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Description copied from class:AbstractPropertyBackedBean- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>- Overrides:
onApplicationEventin classAbstractPropertyBackedBean
-
-