Class RegexDependencyResolver
- java.lang.Object
-
- org.craftercms.studio.impl.v1.service.dependency.RegexDependencyResolver
-
- All Implemented Interfaces:
DependencyResolver
public class RegexDependencyResolver extends Object implements DependencyResolver
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationService
configurationService
protected ContentService
contentService
protected StudioConfiguration
studioConfiguration
-
Fields inherited from interface org.craftercms.studio.api.v1.service.dependency.DependencyResolver
XML_CONFIGURATION_DEPENDENCY_TYPE, XML_CONFIGURATION_DEPENDENCY_TYPES, XML_CONFIGURATION_EXCLUDES, XML_CONFIGURATION_FIND_REGEX, XML_CONFIGURATION_INCLUDES, XML_CONFIGURATION_ITEM_TYPE, XML_CONFIGURATION_MATCH, XML_CONFIGURATION_NAME, XML_CONFIGURATION_PATH_PATTERN, XML_CONFIGURATION_PATTERN, XML_CONFIGURATION_REPLACE, XML_CONFIGURATION_ROOT_ELEMENT, XML_CONFIGURATION_SPLIT, XML_CONFIGURATION_TRANSFORM, XML_CONFIGURATION_TRANSFORMS
-
-
Constructor Summary
Constructors Constructor Description RegexDependencyResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfigFileName()
ConfigurationService
getConfigurationService()
ContentService
getContentService()
String
getDefaultConfigFileName()
String
getDefaultConfigPath()
StudioConfiguration
getStudioConfiguration()
Map<String,Set<String>>
resolve(String site, String path)
Resolves dependent files for given content of given pathvoid
setConfigurationService(ConfigurationService configurationService)
void
setContentService(ContentService contentService)
void
setStudioConfiguration(StudioConfiguration studioConfiguration)
-
-
-
Field Detail
-
contentService
protected ContentService contentService
-
studioConfiguration
protected StudioConfiguration studioConfiguration
-
configurationService
protected ConfigurationService configurationService
-
-
Method Detail
-
resolve
public Map<String,Set<String>> resolve(String site, String path)
Description copied from interface:DependencyResolver
Resolves dependent files for given content of given path- Specified by:
resolve
in interfaceDependencyResolver
- Parameters:
site
- site identifierpath
- path of the item- Returns:
- set of paths of files that content is dependant on
-
getConfigFileName
public String getConfigFileName()
-
getDefaultConfigPath
public String getDefaultConfigPath()
-
getDefaultConfigFileName
public String getDefaultConfigFileName()
-
getContentService
public ContentService getContentService()
-
setContentService
public void setContentService(ContentService contentService)
-
getStudioConfiguration
public StudioConfiguration getStudioConfiguration()
-
setStudioConfiguration
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
-
getConfigurationService
public ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
-