Class ContentTypesConfigImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v1.service.configuration.ContentTypesConfigImpl
-
- All Implemented Interfaces:
ContentTypesConfig
public class ContentTypesConfigImpl extends Object implements ContentTypesConfig
- Author:
- Dejan Brkic
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.cache.Cache<String,ContentTypeConfigTO>
cache
protected ConfigurationService
configurationService
protected ContentService
contentService
protected GeneralLockService
generalLockService
protected StudioConfiguration
studioConfiguration
-
Constructor Summary
Constructors Constructor Description ContentTypesConfigImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfigFileName()
String
getConfigPath()
ContentService
getContentService()
ContentTypeConfigTO
getContentTypeConfig(String site, String contentType)
get content type configuration for the given site and the content typeGeneralLockService
getGeneralLockService()
StudioConfiguration
getStudioConfiguration()
ContentTypeConfigTO
loadConfiguration(String site, String contentType)
load configuration from the noderRef givenprotected void
loadCopyDependencyPatterns(ContentTypeConfigTO config, List<org.dom4j.Node> copyDependencyNodes)
protected void
loadDeleteDependencies(ContentTypeConfigTO contentTypeConfig, List<org.dom4j.Node> nodes)
load delete dependencies mappingprotected void
loadRoles(ContentTypeConfigTO config, List<org.dom4j.Node> nodes)
load a list of allowed rolesContentTypeConfigTO
reloadConfiguration(String site, String contentType)
void
setCache(com.google.common.cache.Cache<String,ContentTypeConfigTO> cache)
void
setConfigurationService(ConfigurationService configurationService)
void
setContentService(ContentService contentService)
void
setGeneralLockService(GeneralLockService generalLockService)
void
setStudioConfiguration(StudioConfiguration studioConfiguration)
-
-
-
Field Detail
-
contentService
protected ContentService contentService
-
generalLockService
protected GeneralLockService generalLockService
-
studioConfiguration
protected StudioConfiguration studioConfiguration
-
configurationService
protected ConfigurationService configurationService
-
cache
protected com.google.common.cache.Cache<String,ContentTypeConfigTO> cache
-
-
Method Detail
-
getContentTypeConfig
public ContentTypeConfigTO getContentTypeConfig(String site, String contentType)
Description copied from interface:ContentTypesConfig
get content type configuration for the given site and the content type- Specified by:
getContentTypeConfig
in interfaceContentTypesConfig
- Returns:
- content type configuration
-
loadConfiguration
public ContentTypeConfigTO loadConfiguration(String site, String contentType)
Description copied from interface:ContentTypesConfig
load configuration from the noderRef given- Specified by:
loadConfiguration
in interfaceContentTypesConfig
- Returns:
- content type configuration
-
loadDeleteDependencies
protected void loadDeleteDependencies(ContentTypeConfigTO contentTypeConfig, List<org.dom4j.Node> nodes)
load delete dependencies mapping- Parameters:
contentTypeConfig
-nodes
-
-
loadRoles
protected void loadRoles(ContentTypeConfigTO config, List<org.dom4j.Node> nodes)
load a list of allowed roles- Parameters:
config
-nodes
-
-
loadCopyDependencyPatterns
protected void loadCopyDependencyPatterns(ContentTypeConfigTO config, List<org.dom4j.Node> copyDependencyNodes)
- Parameters:
config
-copyDependencyNodes
-
-
reloadConfiguration
public ContentTypeConfigTO reloadConfiguration(String site, String contentType)
- Specified by:
reloadConfiguration
in interfaceContentTypesConfig
-
getConfigPath
public String getConfigPath()
-
getConfigFileName
public String getConfigFileName()
-
getContentService
public ContentService getContentService()
-
setContentService
public void setContentService(ContentService contentService)
-
getGeneralLockService
public GeneralLockService getGeneralLockService()
-
setGeneralLockService
public void setGeneralLockService(GeneralLockService generalLockService)
-
getStudioConfiguration
public StudioConfiguration getStudioConfiguration()
-
setStudioConfiguration
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
setCache
public void setCache(com.google.common.cache.Cache<String,ContentTypeConfigTO> cache)
-
-