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.SwitchableState
AbstractPropertyBackedBean.DefaultResolver, AbstractPropertyBackedBean.RuntimeState
sourceBeanName
DEFAULT_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, setSourceBeanName
afterPropertiesSet, 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, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getId, removeProperties, revert, setProperties
getProperty, getPropertyNames, removeProperty, setProperty, start, stop
public CryptodocSwitchableApplicationContextFactory()
public boolean isUpdateable(String name)
AbstractPropertyBackedBean
isUpdateable
in interface PropertyBackedBean
isUpdateable
in class AbstractPropertyBackedBean
name
- the property nametrue
if the property is updateableprotected PropertyBackedBeanState createInitialState() throws IOException
AbstractPropertyBackedBean
createInitialState
in class SwitchableApplicationContextFactory
IOException
- 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)
AbstractPropertyBackedBean
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
onApplicationEvent
in class AbstractPropertyBackedBean
Copyright © 2005–2017 Alfresco Software. All rights reserved.