public class CryptodocSwitchableApplicationContextFactory extends SwitchableApplicationContextFactory
SwitchableApplicationContextFactory that only allows the subsystem to be switched
if the current subsystem is the unencrypted content store. When an attempt is made to switch away
from any other store (e.g. the encrypted store) then nothing happens. This is achieved by returning
false for isUpdateable(String) calls when the current sourceBeanName is
that of the unencrypted content store's subsystem.| Modifier and Type | Class and Description |
|---|---|
protected class |
CryptodocSwitchableApplicationContextFactory.CryptoSwitchableState |
SwitchableApplicationContextFactory.SwitchableStateAbstractPropertyBackedBean.DefaultResolver, AbstractPropertyBackedBean.RuntimeStatesourceBeanNameDEFAULT_INSTANCE_NAME, lock, runtimeState| Constructor and Description |
|---|
CryptodocSwitchableApplicationContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected PropertyBackedBeanState |
createInitialState()
Creates the initial state.
|
String |
getEncryptedContentStoreBeanName() |
boolean |
isUpdateable(String name)
Checks if a property is updateable.
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
setEncryptedContentStoreBeanName(String encryptedContentStoreBeanName) |
void |
setUnencryptedContentStoreBeanName(String unencryptedContentStoreBeanName)
The bean name of the unencrypted ContentStore subsystem.
|
getApplicationContext, getCurrentSourceBeanName, setSourceBeanNameafterPropertiesSet, applyDefaultOverrides, destroy, destroy, doInit, getCategory, getDescription, getEncryptedPropertyDefaults, getId, getInstancePath, getParent, getProperty, getPropertyDefaults, getPropertyNames, getRegistry, getState, init, performEarlyPropertyChecks, removeProperties, removeProperty, resolveDefault, revert, setApplicationContext, setAutoStart, setBeanName, setCategory, setEarlyPropertyCheckers, setEncryptedPropertyDefaults, setInstancePath, setProperties, setProperty, setPropertyDefaults, setRegistry, setSaveSetProperty, start, start, stop, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getId, removeProperties, revert, setPropertiesgetProperty, getPropertyNames, removeProperty, setProperty, start, stoppublic CryptodocSwitchableApplicationContextFactory()
public boolean isUpdateable(String name)
AbstractPropertyBackedBeanisUpdateable in interface PropertyBackedBeanisUpdateable in class AbstractPropertyBackedBeanname - the property nametrue if the property is updateableprotected PropertyBackedBeanState createInitialState() throws IOException
AbstractPropertyBackedBeancreateInitialState in class SwitchableApplicationContextFactoryIOException - Signals that an I/O exception has occurred.public void setUnencryptedContentStoreBeanName(String unencryptedContentStoreBeanName)
unencryptedContentStoreBeanName - Stringpublic String getEncryptedContentStoreBeanName()
public void setEncryptedContentStoreBeanName(String encryptedContentStoreBeanName)
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
AbstractPropertyBackedBeanonApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>onApplicationEvent in class AbstractPropertyBackedBeanCopyright © 2005–2018 Alfresco Software. All rights reserved.