Class SettingsConfiguredDownloadPolicyProvider

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean

    public class SettingsConfiguredDownloadPolicyProvider
    extends Object
    implements org.springframework.beans.factory.FactoryBean
    Allows to configure the DownloadPolicy used by Confluence to be selected via the global system setting 'attachmentSecurityLevel'. The default DownloadPolicy will be DownloadPolicy.Smart. If setup has not been completed then DownloadPolicy.Smart is used.
    Since:
    5.2
    • Constructor Detail

      • SettingsConfiguredDownloadPolicyProvider

        public SettingsConfiguredDownloadPolicyProvider​(SettingsManager settingsManager)
    • Method Detail

      • getObject

        public Object getObject()
                         throws Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean
        Throws:
        Exception
      • getObjectType

        public Class getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean