public interface CentraSiteFile extends CentraSiteObject
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Gets the file content type.
|
java.lang.String |
getDescription()
Returns the file description.
|
java.lang.String |
getDisplayURI()
Return the URI which is displayed to the user.
|
java.io.InputStream |
getInputStream()
Gets the file's input stream content.
|
java.lang.String |
getName()
Return the file or folder name.
|
java.lang.String |
getURI()
Returns the URI where the file is stored.
|
boolean |
isExternal()
Checks if the file is stored in repository or external.
|
void |
setContentType(java.lang.String contentType)
Sets the content type of the file.
|
void |
setDescription(java.lang.String description)
Set the description for the file.
|
void |
setInputStream(java.io.InputStream inputStream)
Sets the input stream content for the file.
|
void |
setName(java.lang.String name)
Set the name of the file or folder name.
|
void |
setURI(java.lang.String uri)
Sets the repository relative path in case it refers to CentraSiteRepositoryObject other wise external URL.
|
delete, getAttributeLink, getAttributeValue, getAttributeValue, getAttributeValue, getId, getType, isModified, isReadOnly, save, setAttributeValue, setAttributeValue, setAttributeValue
java.lang.String getURI()
void setURI(java.lang.String uri) throws CLLException
uri
- Repository relative path in case it refers to CentraSiteRepositoryObject otherwise external URL.CLLException
- If an error occurs while setting the URIvoid setName(java.lang.String name)
name
- Name of the file or folder name to be setjava.lang.String getName() throws CLLException
CLLException
- If an error occurs while fetching the namevoid setDescription(java.lang.String description)
description
- description for the file.java.lang.String getDescription()
boolean isExternal()
java.lang.String getDisplayURI() throws CLLException
CLLException
- If an error occurs while fetching the informationvoid setInputStream(java.io.InputStream inputStream) throws CLLException
inputStream
- The InputStream
content to setCLLException
- If an error occurs while setting the contentjava.io.InputStream getInputStream() throws CLLException
InputStream
contentCLLException
- If an error occurs while getting the input stream contentvoid setContentType(java.lang.String contentType) throws CLLException
contentType
- The content type to set. Ex: text/xml, text/html, etc.,CLLException
- If an error occurs while setting the content typejava.lang.String getContentType() throws CLLException
CLLException
- If an error occurs while fetching the information