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 pathvoid
setDependencyDao
(DependencyDAO dependencyDao) void
setDependencyResolver
(DependencyResolver dependencyResolver) void
setItemServiceInternal
(ItemServiceInternal itemServiceInternal) void
setServicesConfig
(ServicesConfig servicesConfig) void
setStudioConfiguration
(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:DependencyServiceInternal
Get a soft dependencies of a list of items. A soft dependency is: * an edited, shared (not item specific) dependency- Specified by:
getSoftDependencies
in 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:DependencyServiceInternal
Get 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:
getHardDependencies
in 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:DependencyServiceInternal
Get list of paths of content items that are dependent on given paths- Specified by:
getDependentItems
in 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:DependencyServiceInternal
Get item specific dependencies for given path- Specified by:
getItemSpecificDependencies
in interfaceDependencyServiceInternal
- Parameters:
siteId
- site identifierpath
- path to get item specific dependencies for- Returns:
- list of item specific dependencies
-
getItemSpecificDependencies
Description copied from interface:DependencyServiceInternal
Get item specific dependencies for given path- Specified by:
getItemSpecificDependencies
in interfaceDependencyServiceInternal
- Parameters:
siteId
- site identifierpaths
- path to get item specific dependencies for- Returns:
- list of item specific dependencies
-
resolveDependencies
Description copied from interface:DependencyServiceInternal
Resolves dependent files for given content of given path- Specified by:
resolveDependencies
in interfaceDependencyServiceInternal
- Returns:
- set of paths of files that content is dependant on
-
getDependenciesByType
Description copied from interface:DependencyServiceInternal
Get dependencies for content path by type- Specified by:
getDependenciesByType
in interfaceDependencyServiceInternal
- Parameters:
siteId
- site identifierpath
- content pathdependencyType
- dependency type- Returns:
- list of dependencies
-
getStudioConfiguration
-
setStudioConfiguration
-
getDependencyDao
-
setDependencyDao
-
getItemServiceInternal
-
setItemServiceInternal
-
getDependencyResolver
-
setDependencyResolver
-
getServicesConfig
-
setServicesConfig
-