Class FileImporterContext

java.lang.Object
org.nuxeo.ecm.platform.filemanager.api.FileImporterContext

public class FileImporterContext extends Object
Class containing everything needed to create or update a document from a Blob with the FileManager.
Since:
10.10
  • Field Details

    • session

      protected final CoreSession session
    • blob

      protected final Blob blob
    • parentPath

      protected final String parentPath
    • fileName

      protected String fileName
    • overwrite

      protected boolean overwrite
    • mimeTypeCheck

      protected boolean mimeTypeCheck
    • excludeOneToMany

      protected boolean excludeOneToMany
    • persistDocument

      protected boolean persistDocument
    • bypassAllowedSubtypeCheck

      protected boolean bypassAllowedSubtypeCheck
  • Constructor Details

  • Method Details

    • builder

      public static FileImporterContext.Builder builder(CoreSession session, Blob blob, String parentPath)
    • getSession

      public CoreSession getSession()
    • getBlob

      public Blob getBlob()
    • getParentPath

      public String getParentPath()
    • getFileName

      public String getFileName()
    • isOverwrite

      public boolean isOverwrite()
    • isMimeTypeCheck

      public boolean isMimeTypeCheck()
    • isExcludeOneToMany

      public boolean isExcludeOneToMany()
    • isPersistDocument

      public boolean isPersistDocument()
    • isBypassAllowedSubtypeCheck

      public boolean isBypassAllowedSubtypeCheck()
      Since:
      11.3