Class UserPortalFileDataBean
java.lang.Object
de.xima.fc.user_portal.bean.common.UserPortalFileDataBean
- All Implemented Interfaces:
Serializable
Bean for accessing the binary data of file providing resources.
- Since:
- 8.2.0
- Author:
- XIMA Media GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.primefaces.model.StreamedContentgetAttachmentStreamedContent(UserPortalFileModel fileModel) byte[]getFileData(Path file) org.primefaces.model.StreamedContentGets the streamed content for a user portal file identified by the resourceUuid and portalUuid request parameters.org.primefaces.model.StreamedContentgetUserPortalFileStreamedContent(BaseUserPortalFileResource fileResource, UUID portalUuid) booleanWhether the REST API client uses the native HTTP transport method for sending HTTP requests.booleanWhether the REST API client uses the WebSocket transport method for sending HTTP requests.
-
Constructor Details
-
UserPortalFileDataBean
public UserPortalFileDataBean()
-
-
Method Details
-
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(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
-