Class TenantConfigurationServiceImpl
- java.lang.Object
-
- org.craftercms.social.services.system.impl.TenantConfigurationServiceImpl
-
- All Implemented Interfaces:
TenantConfigurationService
public class TenantConfigurationServiceImpl extends Object implements TenantConfigurationService
-
-
Field Summary
-
Fields inherited from interface org.craftercms.social.services.system.TenantConfigurationService
HIDDEN_UGC_STATUS
-
-
Constructor Summary
Constructors Constructor Description TenantConfigurationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Map<String,Object>>
getAllPreferences()
<T> T
getProperty(String contextId, String propertyName)
void
loadDefaults()
void
reloadTenant(String contextId)
void
setContextPreferencesRepository(ContextPreferencesRepository contextPreferencesRepository)
void
setContextPreferencesServiceImpl(ContextPreferencesService contextPreferencesService)
void
setDefaultLocations(List<org.springframework.core.io.Resource> defaultLocations)
void
setTenantConfigCache(com.google.common.cache.Cache<String,Map<String,Object>> tenantConfigCache)
-
-
-
Method Detail
-
getProperty
public <T> T getProperty(String contextId, String propertyName)
- Specified by:
getProperty
in interfaceTenantConfigurationService
-
reloadTenant
public void reloadTenant(String contextId)
- Specified by:
reloadTenant
in interfaceTenantConfigurationService
-
loadDefaults
public void loadDefaults() throws org.craftercms.commons.mongo.MongoDataException, SocialException
- Throws:
org.craftercms.commons.mongo.MongoDataException
SocialException
-
getAllPreferences
protected List<Map<String,Object>> getAllPreferences() throws SocialException
- Throws:
SocialException
-
setTenantConfigCache
public void setTenantConfigCache(com.google.common.cache.Cache<String,Map<String,Object>> tenantConfigCache)
-
setDefaultLocations
public void setDefaultLocations(List<org.springframework.core.io.Resource> defaultLocations)
-
setContextPreferencesServiceImpl
public void setContextPreferencesServiceImpl(ContextPreferencesService contextPreferencesService)
-
setContextPreferencesRepository
public void setContextPreferencesRepository(ContextPreferencesRepository contextPreferencesRepository)
-
-