public class FCKFileHandler extends Object
| Constructor and Description |
|---|
FCKFileHandler(org.exoplatform.container.ExoContainer container)
Instantiates a new fCK file handler.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
createFileElement(Document document,
javax.jcr.Node child,
String fileType)
Creates the file element for connector response looks like that
<File
name="" fileType="" dateCreated="" dateModified="" creator="" size=""
url="" />. |
protected String |
getDocumentType(javax.jcr.Node node)
Gets the document type.
|
String |
getFileType(javax.jcr.Node node,
String resourceType)
Gets the file type.
|
protected String |
getFileURL(javax.jcr.Node file)
Gets the file url.
|
protected String |
getFlashType(javax.jcr.Node node)
Gets the flash type.
|
protected String |
getImageType(javax.jcr.Node node)
Gets the image type.
|
protected String |
getLinkType(javax.jcr.Node node)
Gets the link type.
|
public FCKFileHandler(org.exoplatform.container.ExoContainer container)
container - the containerpublic String getFileType(javax.jcr.Node node, String resourceType) throws Exception
node - the noderesourceType - the resource typeException - the exceptionprotected String getFileURL(javax.jcr.Node file) throws Exception
file - the fileException - the exceptionpublic Element createFileElement(Document document, javax.jcr.Node child, String fileType) throws Exception
<File
name="" fileType="" dateCreated="" dateModified="" creator="" size=""
url="" />.document - the documentchild - the childfileType - the file typeException - the exceptionprotected String getDocumentType(javax.jcr.Node node) throws Exception
node - the nodeException - the exceptionprotected String getImageType(javax.jcr.Node node) throws Exception
node - the nodeException - the exceptionprotected String getFlashType(javax.jcr.Node node) throws Exception
node - the nodeException - the exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.