Class FileUploadedRequest
java.lang.Object
de.xima.fc.gui.bean.designer.request.FileUploadedRequest
- All Implemented Interfaces:
IDesignerConversationRequest<Serializable>
,ICrossViewScopeRequest<Serializable>
,Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionFileUploadedRequest
(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
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 Details
-
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 Details
-
getContentType
- Returns:
- The content of the file.
-
getFileContent
public byte[] getFileContent()- Returns:
- The content of the file.
-
getFileName
- Returns:
- The name of the uploaded file.
-
getFileSource
- Returns:
- The source where the file was uploaded, indicating what should be done with the file.
-
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
- Specified by:
getSourceTabId
in 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.
-