Class RMMethodSecurityPostProcessor
- java.lang.Object
-
- org.alfresco.module.org_alfresco_module_rm.security.RMMethodSecurityPostProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
public class RMMethodSecurityPostProcessor extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
Records management method security post processor.Combines RM method security configuration with that of the core server before the security bean is instantiated.
- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROP_OBJECT_DEFINITION_SOURCE
static String
PROPERTY_PREFIX
static String
SECURITY_BEAN_POSTFIX
-
Constructor Summary
Constructors Constructor Description RMMethodSecurityPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
convertToMap(String stringValue)
Convert the lines of a string to a map, separating keys from values by the first "=" sign.void
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
void
setProperties(Properties properties)
void
setSecurityBeanNames(Set<String> securityBeanNames)
Set of security beans to apply RM configuration to.
-
-
-
Field Detail
-
PROP_OBJECT_DEFINITION_SOURCE
public static final String PROP_OBJECT_DEFINITION_SOURCE
- See Also:
- Constant Field Values
-
PROPERTY_PREFIX
public static final String PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
SECURITY_BEAN_POSTFIX
public static final String SECURITY_BEAN_POSTFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSecurityBeanNames
public void setSecurityBeanNames(Set<String> securityBeanNames)
Set of security beans to apply RM configuration to.Used in the case where the security bean does not follow the standard naming convention.
- Parameters:
securityBeanNames
- security bean names
-
setProperties
public void setProperties(Properties properties)
- Parameters:
properties
- configuration properties
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
- Specified by:
postProcessBeanFactory
in interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor
- See Also:
BeanFactoryPostProcessor.postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
-
convertToMap
protected Map<String,String> convertToMap(String stringValue)
Convert the lines of a string to a map, separating keys from values by the first "=" sign.- Parameters:
stringValue
- The multi-line string.- Returns:
- The resulting map.
- Throws:
org.alfresco.error.AlfrescoRuntimeException
- If a non-blank line does not contain an "=" sign.
-
-