public interface DependencyDAO
Modifier and Type | Field and Description |
---|---|
static String |
EDITED_STATES_PARAM |
static String |
NEW_PATH_PARAM |
static String |
NEW_STATES_PARAM |
static String |
OLD_PATH_PARAM |
static String |
PATH_PARAM |
static String |
PATHS_PARAM |
static String |
REGEX_PARAM |
static String |
SITE_ID_PARAM |
static String |
SITE_PARAM |
static String |
SORUCE_PATH_COLUMN_NAME |
static String |
TARGET_PATH_COLUMN_NAME |
Modifier and Type | Method and Description |
---|---|
List<String> |
getDependentItems(String siteId,
List<String> paths)
Get items depending on given paths
|
List<Map<String,String>> |
getHardDependenciesForList(String site,
Set<String> paths,
List<String> itemSpecificDependenciesPatterns,
Collection<State> editedStates,
List<State> newStates)
Get hard dependencies from DB for list of content paths
|
List<String> |
getItemSpecificDependencies(String siteId,
List<String> paths,
List<String> regex)
Get item specific dependencies for given paths
|
List<Map<String,String>> |
getSoftDependenciesForList(String site,
Set<String> paths,
List<String> itemSpecificDependenciesPatterns,
Collection<State> editedStates)
Get soft dependencies from DB for list of content paths
|
static final String SITE_PARAM
static final String SITE_ID_PARAM
static final String PATH_PARAM
static final String PATHS_PARAM
static final String OLD_PATH_PARAM
static final String NEW_PATH_PARAM
static final String REGEX_PARAM
static final String EDITED_STATES_PARAM
static final String NEW_STATES_PARAM
static final String SORUCE_PATH_COLUMN_NAME
static final String TARGET_PATH_COLUMN_NAME
List<Map<String,String>> getSoftDependenciesForList(@Param(value="site") String site, @Param(value="paths") Set<String> paths, @Param(value="regex") List<String> itemSpecificDependenciesPatterns, @Param(value="editedStates") Collection<State> editedStates)
site
- site identifierpaths
- list of content pathsitemSpecificDependenciesPatterns
- list of patterns that define item specific dependencieseditedStates
- list of edited statesList<Map<String,String>> getHardDependenciesForList(@Param(value="site") String site, @Param(value="paths") Set<String> paths, @Param(value="regex") List<String> itemSpecificDependenciesPatterns, @Param(value="editedStates") Collection<State> editedStates, @Param(value="newStates") List<State> newStates)
site
- site identifierpaths
- list of content pathsitemSpecificDependenciesPatterns
- list of patterns that define item specific dependencieseditedStates
- list of edited statesnewStates
- list of new statesList<String> getDependentItems(@Param(value="siteId") String siteId, @Param(value="paths") List<String> paths)
siteId
- site identifierpaths
- list of content pathsList<String> getItemSpecificDependencies(@Param(value="siteId") String siteId, @Param(value="paths") List<String> paths, @Param(value="regex") List<String> regex)
siteId
- site identifierpaths
- list of content pathsregex
- list of patterns that define item specific dependenciesCopyright © 2020 CrafterCMS. All rights reserved.