Package com.activeviam.risk.ref.cfg.impl
Class LocalContentServiceConfig
- java.lang.Object
-
- com.activeviam.risk.ref.cfg.impl.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
-
-
Field Summary
Fields Modifier and Type Field Description static String
CALCULATED_MEMBER_ROLE_PROPERTY
The name of the property which contains the role allowed to add new calculated members in the configuration service.static String
CONNECTION_URL_PROPERTY
static String
FILE_BASED_IMPL
static String
HIBERNATE_PROPERTIES_FILE
static String
IN_MEMORY_IMPL
static String
KPI_ROLE_PROPERTY
The name of the property which contains the role allowed to add new KPIs in the configuration service.protected static org.slf4j.Logger
LOGGER
static String
RESOURCE_DIR_VARIABLE
static String
SPRING_PROFILE
-
Constructor Summary
Constructors Constructor Description LocalContentServiceConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.qfs.pivot.content.IActivePivotContentService
activePivotContentService()
Service used to store the ActivePivot descriptions and the entitlements (i.e.com.qfs.content.service.IContentService
contentService()
protected static com.qfs.content.snapshot.impl.SnapshotContentTree
jsonFileToContentTree(InputStream inputStream)
Converts the JSON file at the input path to anIContentTree
.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
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
SPRING_PROFILE
public static final String SPRING_PROFILE
- See Also:
- Constant Field Values
-
HIBERNATE_PROPERTIES_FILE
public static final String HIBERNATE_PROPERTIES_FILE
- See Also:
- Constant Field Values
-
CALCULATED_MEMBER_ROLE_PROPERTY
public static final String CALCULATED_MEMBER_ROLE_PROPERTY
The name of the property which contains the role allowed to add new calculated members in the configuration service.- See Also:
- Constant Field Values
-
KPI_ROLE_PROPERTY
public static final String KPI_ROLE_PROPERTY
The name of the property which contains the role allowed to add new KPIs in the configuration service.- See Also:
- Constant Field Values
-
CONNECTION_URL_PROPERTY
public static final String CONNECTION_URL_PROPERTY
- See Also:
- Constant Field Values
-
RESOURCE_DIR_VARIABLE
public static final String RESOURCE_DIR_VARIABLE
- See Also:
- Constant Field Values
-
FILE_BASED_IMPL
public static final String FILE_BASED_IMPL
- See Also:
- Constant Field Values
-
IN_MEMORY_IMPL
public static final String IN_MEMORY_IMPL
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
andKPIs
).- Specified by:
activePivotContentService
in interfacecom.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 interfacecom.qfs.server.cfg.content.IActivePivotContentServiceConfig
- Specified by:
contentService
in interfacecom.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.
-
jsonFileToContentTree
protected static com.qfs.content.snapshot.impl.SnapshotContentTree jsonFileToContentTree(InputStream inputStream)
Converts the JSON file at the input path to anIContentTree
.- Parameters:
inputStream
- The path of the JSON file to read.- Returns:
- The corresponding content tree.
-
-