Liferay 6.2-ce-ga5

com.liferay.portal.editor.fckeditor.receiver.impl
Class BaseFileEntryCommandReceiver

java.lang.Object
  extended by com.liferay.portal.editor.fckeditor.receiver.impl.BaseCommandReceiver
      extended by com.liferay.portal.editor.fckeditor.receiver.impl.DocumentCommandReceiver
          extended by com.liferay.portal.editor.fckeditor.receiver.impl.BaseFileEntryCommandReceiver
All Implemented Interfaces:
CommandReceiver
Direct Known Subclasses:
AudioCommandReceiver, VideoCommandReceiver

public abstract class BaseFileEntryCommandReceiver
extends DocumentCommandReceiver


Constructor Summary
BaseFileEntryCommandReceiver()
           
 
Method Summary
protected  String fileUpload(CommandArgument commandArgument, String fileName, InputStream inputStream, String contentType, long size)
           
protected  Element getFileElement(CommandArgument commandArgument, Element fileElement, FileEntry fileEntry)
           
protected  List<Element> getFileElements(CommandArgument commandArgument, Document document, Folder folder)
           
protected abstract  String[] getFileEntryMimeTypes()
           
protected abstract  String getUnavaiablePreviewErrorMessage()
           
protected abstract  int getXugglerDisabledFileUploadReturnValue()
           
protected abstract  boolean hasFileEntryPreview(FileVersion fileVersion)
           
 
Methods inherited from class com.liferay.portal.editor.fckeditor.receiver.impl.DocumentCommandReceiver
createFolder, getFolders, getFoldersAndFiles, isStagedData
 
Methods inherited from class com.liferay.portal.editor.fckeditor.receiver.impl.BaseCommandReceiver
createFolder, fileUpload, getFolders, getFoldersAndFiles, getPath, getRootFolders, getSize, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseFileEntryCommandReceiver

public BaseFileEntryCommandReceiver()
Method Detail

fileUpload

protected String fileUpload(CommandArgument commandArgument,
                            String fileName,
                            InputStream inputStream,
                            String contentType,
                            long size)
Overrides:
fileUpload in class DocumentCommandReceiver

getFileElement

protected Element getFileElement(CommandArgument commandArgument,
                                 Element fileElement,
                                 FileEntry fileEntry)
                          throws Exception
Overrides:
getFileElement in class DocumentCommandReceiver
Throws:
Exception

getFileElements

protected List<Element> getFileElements(CommandArgument commandArgument,
                                        Document document,
                                        Folder folder)
                                 throws Exception
Overrides:
getFileElements in class DocumentCommandReceiver
Throws:
Exception

getFileEntryMimeTypes

protected abstract String[] getFileEntryMimeTypes()

getUnavaiablePreviewErrorMessage

protected abstract String getUnavaiablePreviewErrorMessage()

getXugglerDisabledFileUploadReturnValue

protected abstract int getXugglerDisabledFileUploadReturnValue()

hasFileEntryPreview

protected abstract boolean hasFileEntryPreview(FileVersion fileVersion)

Liferay 6.2-ce-ga5