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:
  • 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

      public byte[] getFileData(Path file)