com.softwareag.centrasite.api.csom.repository
Interface CentraSiteRepositoryFile

All Superinterfaces:
CentraSiteFile, CentraSiteObject, CentraSiteRepositoryObject

public interface CentraSiteRepositoryFile
extends CentraSiteRepositoryObject

CentraSiteRepositoryFile represents a file in CentraSite Repository


Field Summary
 
Fields inherited from interface com.softwareag.centrasite.api.csom.repository.CentraSiteRepositoryObject
SUPPORTING_DOC_LOCATION
 
Method Summary
 java.lang.String getContentType()
          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
 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
 
Methods inherited from interface com.softwareag.centrasite.api.csom.repository.CentraSiteRepositoryObject
exists, isFolder
 
Methods inherited from interface com.softwareag.centrasite.api.csom.repository.CentraSiteFile
getDescription, getDisplayURI, getName, getURI, isExternal, setDescription, setName, setURI
 
Methods inherited from interface com.softwareag.centrasite.api.csom.CentraSiteObject
delete, getAttributeLink, getAttributeValue, getAttributeValue, getAttributeValue, getId, getType, isModified, isReadOnly, save, setAttributeValue, setAttributeValue, setAttributeValue
 

Method Detail

setFileName

void setFileName(java.lang.String fileName)
Sets the name of the file


getFileName

java.lang.String getFileName()
Return the file name

Returns:
file name

setInputStream

void setInputStream(java.io.InputStream inputContent)
                    throws CLLException
Specify the content for the file as input stream

Parameters:
inputContent - need to write into the file
Throws:
CLLException

getInputStream

java.io.InputStream getInputStream()
                                   throws CLLException
Get the file content as input stream

Returns:
the content of file
Throws:
CLLException

getContentType

java.lang.String getContentType()
                                throws CLLException
content type of repository file

Returns:
content type i.e text/xml, text/html
Throws:
CLLException - in case of failed to get the content type.

getTransformedContent

java.io.InputStream getTransformedContent()
                                          throws CLLException
Get the webdav content as InputStream

Returns:
the Transformed webdav content
Throws:
CLLException - In case failed to fetch Transformed content

getTransformedContent

java.io.InputStream getTransformedContent(java.lang.String displayURL)
                                          throws CLLException
Get the webdav content as InputStream

Returns:
the Transformed webdav content
Throws:
CLLException - In case failed to fetch Transformed content