Class ImportSettings

    • Constructor Detail

      • ImportSettings

        public ImportSettings​(String pathToImport,
                              UserDetail user,
                              String componentId,
                              String folderId,
                              boolean draftUsed,
                              boolean poiUsed,
                              int method)
    • Method Detail

      • getPathToImport

        public String getPathToImport()
      • setPathToImport

        public void setPathToImport​(String path)
      • getComponentId

        public String getComponentId()
      • getFolderId

        public String getFolderId()
      • setFolderId

        public void setFolderId​(String folderId)
      • isDraftUsed

        public boolean isDraftUsed()
      • isPoiUsed

        public boolean isPoiUsed()
      • setVersioningUsed

        public void setVersioningUsed​(boolean versioningUsed)
      • isVersioningUsed

        public boolean isVersioningUsed()
      • setFrom

        public void setFrom​(int from)
      • getMethod

        public int getMethod()
      • isPublicationMergeEnabled

        public boolean isPublicationMergeEnabled()
      • mustCreateOnePublicationForAllFiles

        public boolean mustCreateOnePublicationForAllFiles()
        Indicates that it must be created one publication for all files.

        PLEASE notice that the creation of one publication for all files is compatible only with getMethod() returning FROM_DRAGNDROP. The code has to be adjusted for other processes.

        Returns:
        true if one publication only must be created.
      • getPublicationForAllFiles

        public PublicationDetail getPublicationForAllFiles()
        Gets the instance of PublicationDetail that stores the following data in case of creation of one publication for all imported files:
        • the name of the publication. If it exists then the method mustCreateOnePublicationForAllFiles() will indicate that all files will be attached to a same publication
        • the description of a publication
        • the keywords of a publication
        Returns:
        a string that represents the publication description.
      • getPublicationName

        public String getPublicationName​(String filename)
      • setVersionType

        public void setVersionType​(int versionType)
      • getVersionType

        public int getVersionType()
      • getContentLanguage

        public String getContentLanguage()
      • setContentLanguage

        public void setContentLanguage​(String contentLanguage)
      • getTargetValidatorIds

        public String getTargetValidatorIds()
      • setTargetValidatorIds

        public void setTargetValidatorIds​(String targetValidatorIds)
      • useFileDates

        public boolean useFileDates()