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 Details

  • Constructor Details

    • RMMethodSecurityPostProcessor

      public RMMethodSecurityPostProcessor()
  • Method Details

    • 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 interface org.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.