Class UploadVerificationBean
- java.lang.Object
-
- de.xima.fc.user_portal.integration.security.UploadVerificationBean
-
- All Implemented Interfaces:
IUploadVerificationBean
@Named @RequestScoped public class UploadVerificationBean extends Object implements IUploadVerificationBean
Default implementation of theIUploadVerificationBean
interface
-
-
Constructor Summary
Constructors Constructor Description UploadVerificationBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUnsafe(org.primefaces.model.file.UploadedFile uploadedFile, UserPortalViewContext userPortalViewCtx, FormRecordModel formRecordModel)
Checks whether the provided upload file has been classified as 'unsafe' by upstream checks (e.g.
-
-
-
Method Detail
-
isUnsafe
public boolean isUnsafe(org.primefaces.model.file.UploadedFile uploadedFile, UserPortalViewContext userPortalViewCtx, FormRecordModel formRecordModel)
Checks whether the provided upload file has been classified as 'unsafe' by upstream checks (e.g. malware detection or content type verification). As usual, unsafe uploads are logged (Mandant protocol).- Specified by:
isUnsafe
in interfaceIUploadVerificationBean
- Parameters:
uploadedFile
- the uploaded file to be checkeduserPortalViewCtx
- the user portal's view contextformRecordModel
- the related form record data- Returns:
true
if the upload file is not safe, otherwisefalse
.
-
-