Interface DependencyService
-
- All Known Implementing Classes:
DependencyServiceImpl
public interface DependencyService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
getDependentItems(String siteId, String path)
Get list of paths of content items that are dependant on given pathList<String>
getDependentItems(String siteId, List<String> paths)
Get list of paths of content items that are dependant on given pathsList<String>
getHardDependencies(String site, String path)
Get a hard dependencies of a item.List<String>
getHardDependencies(String site, List<String> paths)
Get a hard dependencies of a item.List<String>
getSoftDependencies(String site, String path)
Get a soft dependencies of a item.List<String>
getSoftDependencies(String site, List<String> paths)
Get a soft dependencies of a list of items.
-
-
-
Method Detail
-
getSoftDependencies
List<String> getSoftDependencies(String site, String path) throws SiteNotFoundException, ServiceLayerException
Get a soft dependencies of a item. A soft dependency is: * an edited, shared (not item specific) dependency- Parameters:
site
- Site to operate onpath
- Paths to item to retrieve deps for- Returns:
- list of soft dependencies
- Throws:
SiteNotFoundException
- Site doesn't existServiceLayerException
- Internal error, see exception 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, String path) 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 onpath
- Paths to item to retrieve deps for- Returns:
- list of hard 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
List<String> getDependentItems(String siteId, String path)
Get list of paths of content items that are dependant on given path- Parameters:
siteId
- site identifierpath
- path to get dependent items for- Returns:
- list of paths dependent on given
-
-