Class 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 Detail

      • UserPortalFileDataBean

        public UserPortalFileDataBean()
    • Method Detail

      • getFileData

        public byte[] getFileData​(Path file)
        Get the binary data of a file on the file system as a byte array.
        Parameters:
        file - The file for which to get the binary data.
        Returns:
        The binary data of the file as a byte array.
      • 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.UserPortalFileResource 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.