public interface DependencyService
Modifier and Type | Method and Description |
---|---|
Map<String,List<CalculateDependenciesEntityTO>> |
calculateDependencies(String site,
List<String> paths)
Calculate dependencies for publishing
|
Set<String> |
calculateDependenciesPaths(String site,
List<String> paths)
Calculate dependencies paths for publishing
|
void |
deleteItemDependencies(String site,
String path)
Delete an item dependencies from the database.
|
void |
deleteSiteDependencies(String site)
Delete all dependencies from the database for a given site.
|
Set<String> |
getDeleteDependencies(String site,
List<String> paths) |
Set<String> |
getDeleteDependencies(String site,
String path) |
Set<String> |
getItemDependencies(String site,
String path,
int depth)
Get all item dependencies of an item.
|
Set<String> |
getItemsDependingOn(String site,
String path,
int depth)
Get all items that depend on this item.
|
Set<String> |
getItemSpecificDependencies(String site,
String path,
int depth)
Get item-specific dependencies of an item.
|
List<String> |
getPublishingDependencies(String site,
List<String> paths)
Get a all publishing dependencies of a list of items.
|
List<String> |
getPublishingDependencies(String site,
String path)
Get a all publishing dependencies of a list of items.
|
Set<String> |
moveDependencies(String site,
String oldPath,
String newPath)
Move an item and make sure dependency paths remain correct.
|
Set<String> |
upsertDependencies(String site,
List<String> paths)
Scan a list of items for direct dependencies and synchroniz
those to the depenencies database adding the new deps, updating
existing, and removing what was removed from the item.
|
Set<String> |
upsertDependencies(String site,
String path)
Scan item for direct dependencies and synchronize those to
the depenencies database adding the new deps, updating existing,
and removing what was removed from the item.
|
Set<String> upsertDependencies(String site, String path) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpath
- Path to item to scanSiteNotFoundException
- Site doesn't existContentNotFoundException
- Path doesn't existServiceLayerException
- Internal error, see exception detailsSet<String> upsertDependencies(String site, List<String> paths) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpaths
- List of paths to items to scanSiteNotFoundException
- Site doesn't existContentNotFoundException
- One or more paths doesn't exist
(database won't be updated for any of the items)ServiceLayerException
- Internal error, see exception detailsList<String> getPublishingDependencies(String site, String path) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpath
- Paths to item to retrieve deps forSiteNotFoundException
- Site doesn't existContentNotFoundException
- Path doesn't existServiceLayerException
- Internal error, see exception detailsList<String> getPublishingDependencies(String site, List<String> paths) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpaths
- List of paths to items to retrieve deps forSiteNotFoundException
- Site doesn't existContentNotFoundException
- One or more paths doesn't existServiceLayerException
- Internal error, see exception detailsSet<String> getItemSpecificDependencies(String site, String path, int depth) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpath
- Path to items to retrieve deps fordepth
- Depth of tree to traverse. Depth of -1 disables depth limitsSiteNotFoundException
- Site doesn't existContentNotFoundException
- Path doesn't existServiceLayerException
- Internal error, see exception detailsSet<String> getItemDependencies(String site, String path, int depth) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpath
- Path to items to retrieve deps fordepth
- Depth of tree to traverse. Depth of -1 disables depth limitsSiteNotFoundException
- Site doesn't existContentNotFoundException
- Path doesn't existServiceLayerException
- Internal error, see exception detailsSet<String> getItemsDependingOn(String site, String path, int depth) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpath
- Path to items to retrieve deps fordepth
- Depth of tree to traverse. Depth of -1 disables depth limitsSiteNotFoundException
- Site doesn't existContentNotFoundException
- Path doesn't existServiceLayerException
- Internal error, see exception detailsSet<String> moveDependencies(String site, String oldPath, String newPath) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onoldPath
- Path to item to movenewPath
- Path the item moves toSiteNotFoundException
- Site doesn't existContentNotFoundException
- Path doesn't existServiceLayerException
- Internal error, see exception detailsvoid deleteItemDependencies(String site, String path) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpath
- Path to items to retrieve deps forSiteNotFoundException
- Site doesn't existContentNotFoundException
- Path doesn't existServiceLayerException
- Internal error, see exception detailsvoid deleteSiteDependencies(String site) throws ServiceLayerException
site
- Site to operate onServiceLayerException
- Internal error, see exception detailsSet<String> getDeleteDependencies(String site, String path) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpath
- Path to item to retrieve delete dependencies forSiteNotFoundException
- Site doesn't existContentNotFoundException
- Content doesn't existServiceLayerException
- Internal errorSet<String> getDeleteDependencies(String site, List<String> paths) throws SiteNotFoundException, ContentNotFoundException, ServiceLayerException
site
- Site to operate onpaths
- Paths to items to retrieve delete dependencies forSiteNotFoundException
- Site doesn't existContentNotFoundException
- Content doesn't existServiceLayerException
- Internal errorMap<String,List<CalculateDependenciesEntityTO>> calculateDependencies(String site, List<String> paths) throws ServiceLayerException
site
- Site to operate onpaths
- List of items to calculate dependencies forSiteNotFoundException
- site does not existServiceLayerException
Set<String> calculateDependenciesPaths(String site, List<String> paths) throws ServiceLayerException
site
- site to usepaths
- list of items to calculate dependencies forServiceLayerException
Copyright © 2020 CrafterCMS. All rights reserved.