public interface CentraSiteRepositoryFile extends CentraSiteRepositoryObject
PROJECTS_LOCATION, SUPPORTING_DOC_LOCATION
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Gets the content type of repository file.
|
java.lang.String |
getFileName()
Return the file name.
|
java.io.InputStream |
getInputStream()
Get the file content as input stream.
|
java.io.InputStream |
getTransformedContent()
Get the WebDAV content as InputStream.
|
java.io.InputStream |
getTransformedContent(java.lang.String displayURL)
Get the WebDAV content as InputStream for the given display URL.
|
void |
setFileName(java.lang.String fileName)
Sets the name of the file.
|
void |
setInputStream(java.io.InputStream inputContent)
Specify the content for the file as input stream.
|
exists, isFolder
getDescription, getDisplayURI, getName, getURI, isExternal, setContentType, setDescription, setName, setURI
delete, getAttributeLink, getAttributeValue, getAttributeValue, getAttributeValue, getId, getType, isModified, isReadOnly, save, setAttributeValue, setAttributeValue, setAttributeValue
void setFileName(java.lang.String fileName)
fileName
- The file name to setjava.lang.String getFileName()
void setInputStream(java.io.InputStream inputContent) throws CLLException
setInputStream
in interface CentraSiteFile
inputContent
- The InputStream
content to write to the fileCLLException
- If an error occurs while setting the input stream contentjava.io.InputStream getInputStream() throws CLLException
getInputStream
in interface CentraSiteFile
InputStream
content of the fileCLLException
- If an error occurs while getting the input stream contentjava.lang.String getContentType() throws CLLException
getContentType
in interface CentraSiteFile
CLLException
- In case of a failure to get the content type.java.io.InputStream getTransformedContent() throws CLLException
InputStream
CLLException
- In case a failure to fetch the transformed contentjava.io.InputStream getTransformedContent(java.lang.String displayURL) throws CLLException
displayURL
- The URL for which transformed content is requiredInputStream
CLLException
- In case a failure to fetch the transformed content