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 Summary
Fields Modifier and Type Field Description protected Set<String>
alternateURLs
protected String
description
protected int
folderId
protected String
name
protected String
niceURL
protected int
nodeId
protected boolean
overwriteExisting
protected Map<String,String>
properties
protected String
sourceURL
-
Constructor Summary
Constructors Constructor Description FileCreateRequest()
Create empty instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAlternateURLs()
Alternate URLs of the fileString
getDescription()
Description of the fileint
getFolderId()
Target folder IDString
getName()
Name of the fileString
getNiceURL()
Nice URL of the fileint
getNodeId()
Target node ID for uploading files in channelsMap<String,String>
getProperties()
The additional properties of the fileString
getSourceURL()
Source URL of the fileboolean
isOverwriteExisting()
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
setName(String name)
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
-
-
-
Method Detail
-
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
-
-