Class DependencyServiceInternalImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v2.service.dependency.internal.DependencyServiceInternalImpl
-
- All Implemented Interfaces:
DependencyServiceInternal
public class DependencyServiceInternalImpl extends Object implements DependencyServiceInternal
-
-
Constructor Summary
Constructors Constructor Description DependencyServiceInternalImpl()
-
Method Summary
-
-
-
Method Detail
-
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
-
getHardDependencies
public List<String> getHardDependencies(String site, String path) 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 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
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
public List<String> getDependentItems(String siteId, List<String> paths)
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
public List<String> getItemSpecificDependencies(String siteId, String path)
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
public List<String> getItemSpecificDependencies(String siteId, List<String> paths)
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
public Map<String,Set<String>> resolveDependencies(String siteId, String path)
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
public List<Dependency> getDependenciesByType(String siteId, String path, String dependencyType)
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
-
getSiteService
public SiteService getSiteService()
-
setSiteService
public void setSiteService(SiteService siteService)
-
getStudioConfiguration
public StudioConfiguration getStudioConfiguration()
-
setStudioConfiguration
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
-
getDependencyDao
public DependencyDAO getDependencyDao()
-
setDependencyDao
public void setDependencyDao(DependencyDAO dependencyDao)
-
getItemServiceInternal
public ItemServiceInternal getItemServiceInternal()
-
setItemServiceInternal
public void setItemServiceInternal(ItemServiceInternal itemServiceInternal)
-
getDependencyResolver
public DependencyResolver getDependencyResolver()
-
setDependencyResolver
public void setDependencyResolver(DependencyResolver dependencyResolver)
-
getServicesConfig
public ServicesConfig getServicesConfig()
-
setServicesConfig
public void setServicesConfig(ServicesConfig servicesConfig)
-
-