Class DependencyServiceInternalImpl
java.lang.Object
org.craftercms.studio.impl.v2.service.dependency.internal.DependencyServiceInternalImpl
- All Implemented Interfaces:
DependencyServiceInternal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDependenciesByType(String siteId, String path, String dependencyType) Get dependencies for content path by typegetDependentItems(String siteId, List<String> paths) Get list of paths of content items that are dependent on given pathsgetHardDependencies(String site, List<String> paths) Get a hard dependencies of a item.getItemSpecificDependencies(String siteId, String path) Get item specific dependencies for given pathgetItemSpecificDependencies(String siteId, List<String> paths) Get item specific dependencies for given pathgetSoftDependencies(String site, List<String> paths) Get a soft dependencies of a list of items.resolveDependencies(String siteId, String path) Resolves dependent files for given content of given pathvoidsetDependencyDao(DependencyDAO dependencyDao) voidsetDependencyResolver(DependencyResolver dependencyResolver) voidsetItemServiceInternal(ItemServiceInternal itemServiceInternal) voidsetServicesConfig(ServicesConfig servicesConfig) voidsetStudioConfiguration(StudioConfiguration studioConfiguration)
-
Constructor Details
-
DependencyServiceInternalImpl
public DependencyServiceInternalImpl()
-
-
Method Details
-
getSoftDependencies
public List<String> getSoftDependencies(String site, List<String> paths) throws ServiceLayerException Description copied from interface:DependencyServiceInternalGet a soft dependencies of a list of items. A soft dependency is: * an edited, shared (not item specific) dependency- Specified by:
getSoftDependenciesin interfaceDependencyServiceInternal- Parameters:
site- Site to operate onpaths- List of paths to items to retrieve deps for- Returns:
- list of soft dependencies
- Throws:
SiteNotFoundException- Site doesn't existServiceLayerException- Internal error, see exception details
-
getItemSpecificDependenciesPatterns
-
getHardDependencies
public List<String> getHardDependencies(String site, List<String> paths) throws ServiceLayerException Description copied from interface:DependencyServiceInternalGet a hard dependencies of a item. A hard dependency is: * Never-published item that this item depends on * Item-specific dependency that has been modified but not published- Specified by:
getHardDependenciesin interfaceDependencyServiceInternal- Parameters:
site- Site to operate onpaths- List of paths to items to retrieve deps for- Returns:
- list of hard dependencies
- Throws:
SiteNotFoundException- Site doesn't existServiceLayerException- Internal error, see exception details
-
getDependentItems
Description copied from interface:DependencyServiceInternalGet list of paths of content items that are dependent on given paths- Specified by:
getDependentItemsin interfaceDependencyServiceInternal- Parameters:
siteId- site identifierpaths- list of paths to get dependent items for- Returns:
- list of paths dependent on given paths
-
getItemSpecificDependencies
Description copied from interface:DependencyServiceInternalGet item specific dependencies for given path- Specified by:
getItemSpecificDependenciesin interfaceDependencyServiceInternal- Parameters:
siteId- site identifierpath- path to get item specific dependencies for- Returns:
- list of item specific dependencies
-
getItemSpecificDependencies
Description copied from interface:DependencyServiceInternalGet item specific dependencies for given path- Specified by:
getItemSpecificDependenciesin interfaceDependencyServiceInternal- Parameters:
siteId- site identifierpaths- path to get item specific dependencies for- Returns:
- list of item specific dependencies
-
resolveDependencies
Description copied from interface:DependencyServiceInternalResolves dependent files for given content of given path- Specified by:
resolveDependenciesin interfaceDependencyServiceInternal- Returns:
- set of paths of files that content is dependant on
-
getDependenciesByType
Description copied from interface:DependencyServiceInternalGet dependencies for content path by type- Specified by:
getDependenciesByTypein interfaceDependencyServiceInternal- Parameters:
siteId- site identifierpath- content pathdependencyType- dependency type- Returns:
- list of dependencies
-
getStudioConfiguration
-
setStudioConfiguration
-
getDependencyDao
-
setDependencyDao
-
getItemServiceInternal
-
setItemServiceInternal
-
getDependencyResolver
-
setDependencyResolver
-
getServicesConfig
-
setServicesConfig
-