Class FileUploadedRequest
- java.lang.Object
 - 
- de.xima.fc.gui.bean.designer.request.FileUploadedRequest
 
 
- 
- All Implemented Interfaces:
 IDesignerConversationRequest<Serializable>,ICrossViewScopeRequest<Serializable>,Serializable
public final class FileUploadedRequest extends Object
When a plain file was uploaded. Opening a file upload must be done synchronously in the frame where the user clicked.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FileUploadedRequest(EContentView contentView, EDesignerUploadFileSource fileSource, String fileName, byte[] fileContent, String contentType, boolean canAccessPdfImporter)A new POJO with the given data.FileUploadedRequest(String sourceTabId, EDesignerUploadFileSource fileSource, String fileName, byte[] fileContent, String contentType, boolean canAccessPdfImporter)A new POJO with the given data. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()byte[]getFileContent()StringgetFileName()EDesignerUploadFileSourcegetFileSource()Class<? extends Serializable>getResponseType()StringgetSourceTabId()booleanisCanAccessPdfImporter()- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.gui.bean.designer.request.IDesignerConversationRequest
getSourceTabView 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
FileUploadedRequest
public FileUploadedRequest(EContentView contentView, EDesignerUploadFileSource fileSource, String fileName, byte[] fileContent, String contentType, boolean canAccessPdfImporter)
A new POJO with the given data.- Parameters:
 contentView- Content view whoseEContentView.getId()will be returned byIDesignerConversationRequest.getSourceTabId().fileSource- Value returned bygetFileSource().fileName- Value returned bygetFileName().fileContent- Value returned bygetFileContent().contentType- Value returned bygetContentType().canAccessPdfImporter- Value returned byisCanAccessPdfImporter().
 
- 
FileUploadedRequest
public FileUploadedRequest(String sourceTabId, EDesignerUploadFileSource fileSource, String fileName, byte[] fileContent, String contentType, boolean canAccessPdfImporter)
A new POJO with the given data.- Parameters:
 sourceTabId- Value returned byIDesignerConversationRequest.getSourceTabId().fileSource- Value returned bygetFileSource().fileName- Value returned bygetFileName().fileContent- Value returned bygetFileContent().contentType- Value returned bygetContentType().canAccessPdfImporter- Value returned byisCanAccessPdfImporter().
 
 - 
 
- 
Method Detail
- 
getContentType
public String getContentType()
- Returns:
 - The content of the file.
 
 
- 
getFileContent
public byte[] getFileContent()
- Returns:
 - The content of the file.
 
 
- 
getFileName
public String getFileName()
- Returns:
 - The name of the uploaded file.
 
 
- 
getFileSource
public EDesignerUploadFileSource getFileSource()
- Returns:
 - The source where the file was uploaded, indicating what should be done with the file.
 
 
- 
getResponseType
public Class<? extends Serializable> getResponseType()
- Returns:
 - Type of the requested data.
 
 
- 
isCanAccessPdfImporter
public boolean isCanAccessPdfImporter()
- Returns:
 - Whether the PDF importer can be accessed, i.e. whether the user has permission to do so.
 
 
- 
getSourceTabId
public String getSourceTabId()
- Specified by:
 getSourceTabIdin interfaceIDesignerConversationRequest<T extends Serializable>- Returns:
 - ID of the tab (see 
TabModel.getId()) that issued the event. Empty string if the event was issued by the designer parent frame. 
 
 - 
 
 -