Package org.craftercms.studio.api.v2.dal
Interface DependencyDAO
-
public interface DependencyDAO
- Author:
- Dejan Brkic
-
-
Field Summary
Fields Modifier and Type Field Description static String
SOURCE_PATH_COLUMN_NAME
static String
TARGET_PATH_COLUMN_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Dependency>
getDependenciesByType(String siteId, String sourcePath, String dependencyType)
Get dependencies for content path by typeList<String>
getDependentItems(String siteId, List<String> paths)
Get items depending on given pathsList<Map<String,String>>
getHardDependenciesForList(String site, Set<String> paths, List<String> itemSpecificDependenciesPatterns, long modifiedMask, long newMask)
Get hard dependencies from DB for list of content pathsList<String>
getItemSpecificDependencies(String siteId, List<String> paths, List<String> regex)
Get item specific dependencies for given pathsList<Map<String,String>>
getSoftDependenciesForList(String site, Set<String> paths, List<String> itemSpecificDependenciesPatterns, long modifiedMask, long newMask)
Get soft dependencies from DB for list of content paths
-
-
-
Field Detail
-
SOURCE_PATH_COLUMN_NAME
static final String SOURCE_PATH_COLUMN_NAME
- See Also:
- Constant Field Values
-
TARGET_PATH_COLUMN_NAME
static final String TARGET_PATH_COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
List<String> getDependentItems(@Param("siteId") String siteId, @Param("paths") List<String> paths)
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
-
-