@Configuration public class ContentConfiguration extends Object implements BaseConfiguration
BaseConfiguration.ClusterDisabledCondition, BaseConfiguration.ClusterEnabledCondition, BaseConfiguration.PROPERTY_SOURCE_LOCATIONS
ADDONS_CONFIGURATION_COMPONENT_SCAN_PACKAGE, CLUSTER_ENABLE_PROPERTY_NAME, CONFIGURATION_ORDER_DELTA, CUSTOM_CONFIGURATION_COMPONENT_SCAN_PACKAGE, DEFAULT_WEB_APPLICATION_INITIALIZER_ORDER, ONE_CONFIGURATION_ORDER, PROPERTY_SOURCES_CUSTOM_APPLICATION_CONTEXT_INITIALIZER_ORDER, SECURITY_CONFIGURATION_ORDER, SECURITY_WEB_APPLICATION_INITIALIZER_ORDER, SESSION_WEB_APPLICATION_INITIALIZER_ORDER, VIS_CONFIGURATION_ORDER
Constructor and Description |
---|
ContentConfiguration() |
Modifier and Type | Method and Description |
---|---|
ContentManager |
contentManager(CurrentTenantService currentTenantService,
CurrentUserService currentUserService,
org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentProvider contentProvider,
Optional<List<InternalContentConfigurationConfigurer>> internalContentConfigurationConfigurers) |
DatabaseContentPersistence |
databaseContentPersistence(DataSource dataSource,
DatabaseType databaseType,
DatabaseMetadata databaseMetadata,
PrimaryKeyGenerator primaryKeyGenerator,
TimeProvider timeProvider) |
DatabaseContentProvider |
databaseContentProvider(DatabaseContentPersistence databaseContentPersistence) |
FilesystemContentProvider |
filesystemContentProvider(String rootFolder) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfigurationCustomisations, getObjectOrDefault
@Bean public ContentManager contentManager(CurrentTenantService currentTenantService, CurrentUserService currentUserService, org.springframework.transaction.PlatformTransactionManager transactionManager, ContentProvider contentProvider, Optional<List<InternalContentConfigurationConfigurer>> internalContentConfigurationConfigurers)
@Bean @Conditional(value=com.edorasware.config.content.ContentConfiguration.UseDatabaseContentProvider.class) public DatabaseContentPersistence databaseContentPersistence(DataSource dataSource, DatabaseType databaseType, DatabaseMetadata databaseMetadata, PrimaryKeyGenerator primaryKeyGenerator, TimeProvider timeProvider) throws Exception
Exception
@Bean @Conditional(value=com.edorasware.config.content.ContentConfiguration.UseDatabaseContentProvider.class) public DatabaseContentProvider databaseContentProvider(DatabaseContentPersistence databaseContentPersistence)
@Bean @Conditional(value=com.edorasware.config.content.ContentConfiguration.UseFileSystemContentProvider.class) public FilesystemContentProvider filesystemContentProvider(@Value(value="${content.provider.file.root-folder}") String rootFolder)
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.