Class UserPortalConfigFileBean
java.lang.Object
de.xima.fc.gui.bean.portal.UserPortalConfigFileBean
Bean for handling files in the user portal backend UI. In particular, used for streaming
GraphicImage.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencodeDynamicResourceParams(UserPortalFileViewModel model, String type) Encodes the parameters needed to serve the given file.org.primefaces.model.StreamedContentgetFile()Serves a file from a project or portal entity.
-
Constructor Details
-
UserPortalConfigFileBean
public UserPortalConfigFileBean()
-
-
Method Details
-
encodeDynamicResourceParams
Encodes the parameters needed to serve the given file. Encrypts the parameters so that we do not, for example, expose the file path- Parameters:
model- The file to encode.type- The type of the file, either 'project', or 'portal'.- Returns:
- The encoded parameters.
-
getFile
public org.primefaces.model.StreamedContent getFile()Serves a file from a project or portal entity.- Returns:
- The file data.
-