Class DomainIdUpdateService

java.lang.Object
sk.iway.iwcm.update.DomainIdUpdateService

public class DomainIdUpdateService extends Object
Update domainID in the database for various services
  • 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: