Interface DependencyServiceInternal
- All Known Implementing Classes:
DependencyServiceInternalImpl
public interface DependencyServiceInternal
-
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 site, String path) Resolves dependent files for given content of given path
-
Method Details
-
getSoftDependencies
List<String> getSoftDependencies(String site, List<String> paths) throws SiteNotFoundException, ServiceLayerException Get a soft dependencies of a list of items. A soft dependency is: * an edited, shared (not item specific) dependency- 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
-
getHardDependencies
List<String> getHardDependencies(String site, List<String> paths) throws SiteNotFoundException, ServiceLayerException 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- 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
Get list of paths of content items that are dependent on given paths- Parameters:
siteId
- site identifierpaths
- list of paths to get dependent items for- Returns:
- list of paths dependent on given paths
-
getItemSpecificDependencies
Get item specific dependencies for given path- Parameters:
siteId
- site identifierpath
- path to get item specific dependencies for- Returns:
- list of item specific dependencies
-
getItemSpecificDependencies
Get item specific dependencies for given path- Parameters:
siteId
- site identifierpaths
- path to get item specific dependencies for- Returns:
- list of item specific dependencies
-
resolveDependencies
Resolves dependent files for given content of given path- Parameters:
site
-path
-- Returns:
- set of paths of files that content is dependant on
-
getDependenciesByType
Get dependencies for content path by type- Parameters:
siteId
- site identifierpath
- content pathdependencyType
- dependency type- Returns:
- list of dependencies
-