Package org.craftercms.studio.api.v2.dal
Interface DependencyDAO
public interface DependencyDAO
- Author:
- Dejan Brkic
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetDependenciesByType(String siteId, String sourcePath, String dependencyType) Get dependencies for content path by typegetDependentItems(String siteId, List<String> paths) Get items depending on given pathsgetHardDependenciesForList(String site, Set<String> paths, List<String> itemSpecificDependenciesPatterns, long modifiedMask, long newMask) Get hard dependencies from DB for list of content pathsGet item specific dependencies for given pathsgetSoftDependenciesForList(String site, Set<String> paths, List<String> itemSpecificDependenciesPatterns, long modifiedMask, long newMask) Get soft dependencies from DB for list of content paths
-
Field Details
-
SOURCE_PATH_COLUMN_NAME
- See Also:
-
TARGET_PATH_COLUMN_NAME
- See Also:
-
-
Method Details
-
getSoftDependenciesForList
List<Map<String,String>> getSoftDependenciesForList(@Param("site") String site, @Param("paths") Set<String> paths, @Param("regex") List<String> itemSpecificDependenciesPatterns, @Param("modifiedMask") long modifiedMask, @Param("newMask") long newMask) Get soft dependencies from DB for list of content paths- Parameters:
site- site identifierpaths- list of content pathsitemSpecificDependenciesPatterns- list of patterns that define item specific dependenciesmodifiedMask- state bit mask for modified itemnewMask- state bit mask for new item- Returns:
- List of soft dependencies
-
getHardDependenciesForList
List<Map<String,String>> getHardDependenciesForList(@Param("site") String site, @Param("paths") Set<String> paths, @Param("regex") List<String> itemSpecificDependenciesPatterns, @Param("modifiedMask") long modifiedMask, @Param("newMask") long newMask) Get hard dependencies from DB for list of content paths- Parameters:
site- site identifierpaths- list of content pathsitemSpecificDependenciesPatterns- list of patterns that define item specific dependenciesmodifiedMask- state bit map for modified itemnewMask- state bit map for new item- Returns:
- List of hard dependencies
-
getDependentItems
Get items depending on given paths- Parameters:
siteId- site identifierpaths- list of content paths- Returns:
- List of items depending on given paths
-
getItemSpecificDependencies
List<String> getItemSpecificDependencies(@Param("siteId") String siteId, @Param("paths") List<String> paths, @Param("regex") List<String> regex) Get item specific dependencies for given paths- Parameters:
siteId- site identifierpaths- list of content pathsregex- list of patterns that define item specific dependencies- Returns:
- list of item specific dependencies
-
getDependenciesByType
List<Dependency> getDependenciesByType(@Param("siteId") String siteId, @Param("sourcePath") String sourcePath, @Param("type") String dependencyType) Get dependencies for content path by type- Parameters:
siteId- site identifiersourcePath- content pathdependencyType- dependency type- Returns:
- list of dependencies
-