Class UserPortalFileDataBean
- java.lang.Object
-
- de.xima.fc.user_portal.bean.common.UserPortalFileDataBean
-
- All Implemented Interfaces:
Serializable
@Named @RequestScoped public class UserPortalFileDataBean extends Object implements Serializable
Bean for accessing the binary data of file providing resources.- Since:
- 8.2.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPortalFileDataBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.primefaces.model.StreamedContent
getAttachmentStreamedContent(UserPortalFileModel fileModel)
byte[]
getFileData(Path file)
org.primefaces.model.StreamedContent
getUserPortalFileRequestStreamedContent()
Gets the streamed content for a user portal file identified by the resourceUuid and portalUuid request parameters.org.primefaces.model.StreamedContent
getUserPortalFileStreamedContent(de.xima.fc.api.rest.pub.client.user_portal.model.BaseUserPortalFileResource fileResource, UUID portalUuid)
boolean
isNativeEnabled()
Whether the REST API client uses the native HTTP transport method for sending HTTP requests.boolean
isWebSocketEnabled()
Whether the REST API client uses the WebSocket transport method for sending HTTP requests.
-
-
-
Method Detail
-
getAttachmentStreamedContent
public org.primefaces.model.StreamedContent getAttachmentStreamedContent(UserPortalFileModel fileModel)
-
getUserPortalFileRequestStreamedContent
public org.primefaces.model.StreamedContent getUserPortalFileRequestStreamedContent()
Gets the streamed content for a user portal file identified by the resourceUuid and portalUuid request parameters.- Returns:
- The streamed content for the file.
-
getUserPortalFileStreamedContent
public org.primefaces.model.StreamedContent getUserPortalFileStreamedContent(de.xima.fc.api.rest.pub.client.user_portal.model.BaseUserPortalFileResource fileResource, UUID portalUuid)
-
isNativeEnabled
public boolean isNativeEnabled()
Whether the REST API client uses the native HTTP transport method for sending HTTP requests.- Returns:
- Whether the native HTTP transport method is used.
-
isWebSocketEnabled
public boolean isWebSocketEnabled()
Whether the REST API client uses the WebSocket transport method for sending HTTP requests.- Returns:
- Whether the WebSocket transport method is used.
-
getFileData
public byte[] getFileData(Path file)
-
-