Class FileCreateRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.FileCreateRequest
Request to create a file from a URL
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAlternate URLs of the fileDescription of the fileint
Target folder IDgetName()
Name of the fileNice URL of the fileint
Target node ID for uploading files in channelsThe additional properties of the fileSource URL of the fileboolean
True to overwrite existing files with the same name in the foldervoid
setAlternateURLs
(Set<String> alternateURLs) Set the alternate URLs.void
setDescription
(String description) Set the file descriptionvoid
setFolderId
(int folderId) Set the target folder IDvoid
Set the filenamevoid
setNiceURL
(String niceURL) Set the nice URLvoid
setNodeId
(int nodeId) Set the node IDvoid
setOverwriteExisting
(boolean overwriteExisting) Get flag for overwriting existing filesvoid
setProperties
(Map<String, String> properties) Set the additional propertiesvoid
setSourceURL
(String sourceURL) Set the source URL
-
Field Details
-
overwriteExisting
protected boolean overwriteExisting -
folderId
protected int folderId -
nodeId
protected int nodeId -
name
-
description
-
sourceURL
-
niceURL
-
alternateURLs
-
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
Name of the file- Returns:
- filename
-
setName
Set the filename- Parameters:
name
- filename
-
getDescription
Description of the file- Returns:
- file description
-
setDescription
Set the file description- Parameters:
description
- file description
-
getSourceURL
Source URL of the file- Returns:
- source URL
-
setSourceURL
Set the source URL- Parameters:
sourceURL
- source URL
-
getNiceURL
Nice URL of the file- Returns:
- nice URL
-
setNiceURL
Set the nice URL- Parameters:
niceURL
- nice URL
-
getAlternateURLs
Alternate URLs of the file- Returns:
- alternate URLs
-
setAlternateURLs
Set the alternate URLs.- Parameters:
alternateURLs
- alternate URLs
-
getProperties
The additional properties of the file- Returns:
- additional properties
-
setProperties
Set the additional properties- Parameters:
properties
- additional properties
-