Class LocalContentServiceConfig

  • All Implemented Interfaces:
    com.qfs.content.cfg.IContentServiceConfig, com.qfs.server.cfg.content.IActivePivotContentServiceConfig

    @Import({com.qfs.contentserver.cfg.reporting.ReportingPluginsConfig.class,com.activeviam.reporting.rest.cfg.ReportingAppConfig.class,com.activeviam.reporting.rest.cfg.ReportingRestServicesConfig.class,com.qfs.contentserver.cfg.scheduling.SchedulingPluginsConfig.class,com.activeviam.scheduling.contentservice.cfg.ContentServiceSchedulingConfig.class,com.qfs.server.cfg.i18n.impl.LocalI18nConfig.class})
    @Profile("local-content")
    @PropertySource("${hibernate.env.properties.file.path:classpath:hibernate.properties}")
    @Configuration
    public class LocalContentServiceConfig
    extends Object
    implements com.qfs.server.cfg.content.IActivePivotContentServiceConfig
    Spring configuration of the Content Service backed by a local Content Server.
    Author:
    ActiveViam
    • Constructor Detail

      • LocalContentServiceConfig

        public LocalContentServiceConfig()
    • Method Detail

      • jsonFileToContentTree

        protected static com.qfs.content.snapshot.impl.SnapshotContentTree jsonFileToContentTree​(InputStream inputStream)
        Converts the JSON file at the input path to an IContentTree.
        Parameters:
        inputStream - The path of the JSON file to read.
        Returns:
        The corresponding content tree.
      • activePivotContentService

        @Bean
        public com.qfs.pivot.content.IActivePivotContentService activePivotContentService()
        Service used to store the ActivePivot descriptions and the entitlements (i.e. context values, calculated members and KPIs).
        Specified by:
        activePivotContentService in interface com.qfs.server.cfg.content.IActivePivotContentServiceConfig
        Returns:
        the content service used by the Sandbox application
      • contentService

        @Bean
        public com.qfs.content.service.IContentService contentService()
        Specified by:
        contentService in interface com.qfs.server.cfg.content.IActivePivotContentServiceConfig
        Specified by:
        contentService in interface com.qfs.content.cfg.IContentServiceConfig
      • riskHibernateProperties

        @Bean
        public Properties riskHibernateProperties()
        Generates the Hibernate properties from file HIBERNATE_PROPERTIES_FILE Gives possibility to override CONNECTION_URL_PROPERTY value coming from command line -Dhibernate.connection.url=value
        Returns:
        The hibernate properties, from the default URL or the overridden one.