Class FileCreateRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.FileCreateRequest
Request to create a file from a URL
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlternate URLs of the fileDescription of the fileintTarget folder IDgetName()Name of the fileNice URL of the fileintTarget node ID for uploading files in channelsThe additional properties of the fileSource URL of the filebooleanTrue to overwrite existing files with the same name in the foldervoidsetAlternateURLs(Set<String> alternateURLs) Set the alternate URLs.voidsetDescription(String description) Set the file descriptionvoidsetFolderId(int folderId) Set the target folder IDvoidSet the filenamevoidsetNiceURL(String niceURL) Set the nice URLvoidsetNodeId(int nodeId) Set the node IDvoidsetOverwriteExisting(boolean overwriteExisting) Get flag for overwriting existing filesvoidsetProperties(Map<String, String> properties) Set the additional propertiesvoidsetSourceURL(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
-