Class DependencyServiceImpl
java.lang.Object
org.craftercms.studio.impl.v2.service.dependency.DependencyServiceImpl
- All Implemented Interfaces:
DependencyService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDependentItems
(String siteId, List<String> paths) Get list of paths of content items that are dependant on given pathsgetHardDependencies
(String site, List<String> paths) Get a hard dependencies of a item.getSoftDependencies
(String siteId, List<String> paths) Get a soft dependencies of a list of items.
-
Constructor Details
-
DependencyServiceImpl
@ConstructorProperties("dependencyServiceInternal") public DependencyServiceImpl(DependencyServiceInternal dependencyServiceInternal)
-
-
Method Details
-
getSoftDependencies
public List<String> getSoftDependencies(String siteId, List<String> paths) throws ServiceLayerException Description copied from interface:DependencyService
Get a soft dependencies of a list of items. A soft dependency is: * an edited, shared (not item specific) dependency- Specified by:
getSoftDependencies
in interfaceDependencyService
- Parameters:
siteId
- 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
-
getDependentItems
public List<String> getDependentItems(String siteId, List<String> paths) throws SiteNotFoundException Description copied from interface:DependencyService
Get list of paths of content items that are dependant on given paths- Specified by:
getDependentItems
in interfaceDependencyService
- Parameters:
siteId
- site identifierpaths
- list of paths to get dependent items for- Returns:
- list of paths dependent on given paths
- Throws:
SiteNotFoundException
-
getHardDependencies
public List<String> getHardDependencies(String site, List<String> paths) throws ServiceLayerException Description copied from interface:DependencyService
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 interfaceDependencyService
- 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
-