Package sk.iway.iwcm.update
Class DomainIdUpdateService
java.lang.Object
sk.iway.iwcm.update.DomainIdUpdateService
Update domainID in the database for various services
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static List<DocDetails>
getNewsDocToUpdate
(List<DocDetails> docs, Map<String, Integer> domainsMap, Map<String, PerexGroupsEntity> domainPerexGroupsMap, DocDetailsRepository ddr) Find all documents that contain !INCLUDE(/components/news/news-velocity.jsp) and update perexGroups and perexGroupsNot parameters in them to match the domain of the document.static void
Update exportDat domainId based on first group in exportDatstatic void
Update domainId for perexGroups and all dependencies (documents, galleries)static void
updatePerexGroupsInInclude
(Map<String, Integer> domainsMap, Map<String, PerexGroupsEntity> domainPerexGroupsMap, DocDetailsRepository ddr) Update perexGroups and perexGroupsNot parameters in !INCLUDE(/components/news/news-velocity.jsp) includes
-
Constructor Details
-
DomainIdUpdateService
public DomainIdUpdateService()
-
-
Method Details
-
updateExportDatDomainId
public static void updateExportDatDomainId()Update exportDat domainId based on first group in exportDat -
updatePerexGroupDomainId
public static void updatePerexGroupDomainId()Update domainId for perexGroups and all dependencies (documents, galleries) -
updatePerexGroupsInInclude
public static void updatePerexGroupsInInclude(Map<String, Integer> domainsMap, Map<String, PerexGroupsEntity> domainPerexGroupsMap, DocDetailsRepository ddr) Update perexGroups and perexGroupsNot parameters in !INCLUDE(/components/news/news-velocity.jsp) includes- Parameters:
domainsMap
-domainPerexGroupsMap
-ddr
-
-
getNewsDocToUpdate
protected static List<DocDetails> getNewsDocToUpdate(List<DocDetails> docs, Map<String, Integer> domainsMap, Map<String, PerexGroupsEntity> domainPerexGroupsMap, DocDetailsRepository ddr) Find all documents that contain !INCLUDE(/components/news/news-velocity.jsp) and update perexGroups and perexGroupsNot parameters in them to match the domain of the document.- Parameters:
docs
-domainsMap
-domainPerexGroupsMap
-ddr
-- Returns:
-