Class FileCreateRequest

java.lang.Object
com.gentics.contentnode.rest.model.request.FileCreateRequest

public class FileCreateRequest extends Object
Request to create a file from a URL
  • Field Details

    • overwriteExisting

      protected boolean overwriteExisting
    • folderId

      protected int folderId
    • nodeId

      protected int nodeId
    • name

      protected String name
    • description

      protected String description
    • sourceURL

      protected String sourceURL
    • niceURL

      protected String niceURL
    • alternateURLs

      protected Set<String> alternateURLs
    • properties

      protected Map<String,String> properties
  • Constructor Details

    • FileCreateRequest

      public FileCreateRequest()
      Create empty instance
  • Method Details

    • isOverwriteExisting

      public boolean isOverwriteExisting()
      True to overwrite existing files with the same name in the folder
      Returns:
      true to overwrite
    • setOverwriteExisting

      public void setOverwriteExisting(boolean overwriteExisting)
      Get flag for overwriting existing files
      Parameters:
      overwriteExisting - true to overwrite
    • getFolderId

      public int getFolderId()
      Target folder ID
      Returns:
      folder ID
    • setFolderId

      public void setFolderId(int folderId)
      Set the target folder ID
      Parameters:
      folderId - folder ID
    • getNodeId

      public int getNodeId()
      Target node ID for uploading files in channels
      Returns:
      node ID
    • setNodeId

      public void setNodeId(int nodeId)
      Set the node ID
      Parameters:
      nodeId - node ID
    • getName

      public String getName()
      Name of the file
      Returns:
      filename
    • setName

      public void setName(String name)
      Set the filename
      Parameters:
      name - filename
    • getDescription

      public String getDescription()
      Description of the file
      Returns:
      file description
    • setDescription

      public void setDescription(String description)
      Set the file description
      Parameters:
      description - file description
    • getSourceURL

      public String getSourceURL()
      Source URL of the file
      Returns:
      source URL
    • setSourceURL

      public void setSourceURL(String sourceURL)
      Set the source URL
      Parameters:
      sourceURL - source URL
    • getNiceURL

      public String getNiceURL()
      Nice URL of the file
      Returns:
      nice URL
    • setNiceURL

      public void setNiceURL(String niceURL)
      Set the nice URL
      Parameters:
      niceURL - nice URL
    • getAlternateURLs

      public Set<String> getAlternateURLs()
      Alternate URLs of the file
      Returns:
      alternate URLs
    • setAlternateURLs

      public void setAlternateURLs(Set<String> alternateURLs)
      Set the alternate URLs.
      Parameters:
      alternateURLs - alternate URLs
    • getProperties

      public Map<String,String> getProperties()
      The additional properties of the file
      Returns:
      additional properties
    • setProperties

      public void setProperties(Map<String,String> properties)
      Set the additional properties
      Parameters:
      properties - additional properties