Class ImportServiceImpl

    • Constructor Detail

      • ImportServiceImpl

        public ImportServiceImpl()
    • Method Detail

      • loadConfiguration

        protected org.dom4j.Document loadConfiguration​(String configLocation)
      • writeContentInTransaction

        protected void writeContentInTransaction​(String site,
                                                 Set<String> importedPaths,
                                                 List<String> importedFullPaths,
                                                 String fileRoot,
                                                 String targetRoot,
                                                 String parentPath,
                                                 String name,
                                                 boolean overWrite,
                                                 String user)
        write content
        Parameters:
        site -
        importedPaths -
        importedFullPaths -
        fileRoot -
        parentPath -
        name -
        overWrite -
        user -
      • writeContent

        protected void writeContent​(String site,
                                    Set<String> importedPaths,
                                    List<String> importedFullPaths,
                                    String fileRoot,
                                    String targetRoot,
                                    String parentPath,
                                    String name,
                                    boolean overWrite)
        write content
        Parameters:
        site -
        importedPaths -
        importedFullPaths -
        fileRoot -
        parentPath -
        name -
        overWrite -
      • pause

        protected void pause()
        pause the process if it reached the interval
      • createFiles

        protected void createFiles​(String site,
                                   Set<String> importedPaths,
                                   List<String> importedFullPaths,
                                   List<org.dom4j.Node> nodes,
                                   String fileRoot,
                                   String targetRoot,
                                   String parentPath,
                                   boolean overWrite,
                                   String user)
        create files from a list
        Parameters:
        site -
        importedPaths -
        importedFullPaths -
        nodes -
        fileRoot -
        targetRoot - the target location root
        parentPath - the target location to import to
        overWrite -
        user -
      • publish

        protected void publish​(String site,
                               String publishChannelGroup,
                               String targetRoot,
                               List<String> fullPaths,
                               int chunkSize)
        publish items
        Parameters:
        site -
        publishChannelGroup -
        targetRoot -
        fullPaths -
        chunkSize -
      • submitToGoLive

        protected void submitToGoLive​(String site,
                                      String publishChannelGroup,
                                      List<String> importedFullPaths)
        submit imported items to go live
        Parameters:
        site -
        publishChannelGroup -
        importedFullPaths -
      • setSiteService

        public void setSiteService​(SiteService siteService)
      • setSecurityService

        public void setSecurityService​(SecurityService securityService)
      • setContentRepository

        public void setContentRepository​(ContentRepository contentRepository)
      • setContentService

        public void setContentService​(ContentService contentService)
      • setDmPublishService

        public void setDmPublishService​(DmPublishService dmPublishService)
      • setStudioConfiguration

        public void setStudioConfiguration​(StudioConfiguration studioConfiguration)
      • setItemServiceInternal

        public void setItemServiceInternal​(ItemServiceInternal itemServiceInternal)
      • getAssignee

        public String getAssignee()
      • getXmlChainName

        public String getXmlChainName()
      • getAssetChainName

        public String getAssetChainName()