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
SwitchableApplicationContextFactory that 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 ClassesModifier and TypeClassDescriptionprotected classNested classes/interfaces inherited from class org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory
SwitchableApplicationContextFactory.SwitchableStateNested 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, sourceBeanNameFields inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean
DEFAULT_INSTANCE_NAME, lock, runtimeState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertyBackedBeanStateCreates the initial state.voidonApplicationEvent(org.springframework.context.ApplicationEvent event) Methods inherited from class org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory
getApplicationContext, getCurrentSourceBeanName, setSourceBeanNameMethods 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, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface org.alfresco.repo.management.subsystems.PropertyBackedBean
getDescription, getId, isUpdateable, removeProperties, revert, setPropertiesMethods inherited from interface org.alfresco.repo.management.subsystems.PropertyBackedBeanState
getProperty, getPropertyNames, removeProperty, setProperty, start, stop
-
Constructor Details
-
CryptodocSwitchableApplicationContextFactory
public CryptodocSwitchableApplicationContextFactory()
-
-
Method Details
-
createInitialState
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
-