Class ContentTypesConfigImpl
java.lang.Object
org.craftercms.studio.impl.v1.service.configuration.ContentTypesConfigImpl
- All Implemented Interfaces:
ContentTypesConfig
- Author:
- Dejan Brkic
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.common.cache.Cache<String, ContentTypeConfigTO> protected ConfigurationServiceprotected ContentServiceprotected GeneralLockServiceprotected StudioConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Valid ContentTypeConfigTOgetContentTypeConfig(String site, String contentType) get content type configuration for the given site and the content type@Valid ContentTypeConfigTOloadConfiguration(String site, String contentType) load configuration from the noderRef givenprotected voidloadCopyDependencyPatterns(ContentTypeConfigTO config, List<org.dom4j.Node> copyDependencyNodes) protected voidloadDeleteDependencies(ContentTypeConfigTO contentTypeConfig, List<org.dom4j.Node> nodes) load delete dependencies mappingprotected voidloadRoles(ContentTypeConfigTO config, List<org.dom4j.Node> nodes) load a list of allowed roles@Valid ContentTypeConfigTOreloadConfiguration(String site, String contentType) voidsetCache(com.google.common.cache.Cache<String, ContentTypeConfigTO> cache) voidsetConfigurationService(ConfigurationService configurationService) voidsetContentService(ContentService contentService) voidsetGeneralLockService(GeneralLockService generalLockService) voidsetStudioConfiguration(StudioConfiguration studioConfiguration)
-
Field Details
-
contentService
-
generalLockService
-
studioConfiguration
-
configurationService
-
cache
-
-
Constructor Details
-
ContentTypesConfigImpl
public ContentTypesConfigImpl()
-
-
Method Details
-
getContentTypeConfig
Description copied from interface:ContentTypesConfigget content type configuration for the given site and the content type- Specified by:
getContentTypeConfigin interfaceContentTypesConfig- Parameters:
site-contentType-- Returns:
- content type configuration
-
loadConfiguration
Description copied from interface:ContentTypesConfigload configuration from the noderRef given- Specified by:
loadConfigurationin interfaceContentTypesConfig- Parameters:
site-contentType-- Returns:
- content type configuration
-
loadDeleteDependencies
protected void loadDeleteDependencies(ContentTypeConfigTO contentTypeConfig, List<org.dom4j.Node> nodes) load delete dependencies mapping- Parameters:
contentTypeConfig-nodes-
-
loadRoles
load a list of allowed roles- Parameters:
config-nodes-
-
loadCopyDependencyPatterns
protected void loadCopyDependencyPatterns(ContentTypeConfigTO config, List<org.dom4j.Node> copyDependencyNodes) - Parameters:
config-copyDependencyNodes-
-
reloadConfiguration
- Specified by:
reloadConfigurationin interfaceContentTypesConfig
-
getConfigPath
-
getConfigFileName
-
getContentService
-
setContentService
-
getGeneralLockService
-
setGeneralLockService
-
getStudioConfiguration
-
setStudioConfiguration
-
setConfigurationService
-
setCache
-