Package com.jalios.jcms.document
Class AssociatedPDFManager
java.lang.Object
com.jalios.jcms.document.AssociatedPDFManager
Provide method for Upload and attachment of a .pdf file to a FileDocument.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ControllerStatusCheck if associated PDF upload can be performed and do it if possible.static booleanCheck if the PDF upload should be proposed for the specified document kind.
-
Field Details
-
MIMETYPE_PDF
- See Also:
-
-
Constructor Details
-
AssociatedPDFManager
public AssociatedPDFManager()
-
-
Method Details
-
checkAndPerformPDFUpload
public static ControllerStatus checkAndPerformPDFUpload(AssociatedPDFManager.PDFUploadContext context) Check if associated PDF upload can be performed and do it if possible.- Parameters:
context- must not be null- Returns:
- a ControllerStatus indicating if operation was successfull or not
- Throws:
NullPointerException- ifcontextisnull
-
isPDFUploadAuthorized
Check if the PDF upload should be proposed for the specified document kind.This method does not check member authorization.
- Parameters:
doc- the FileDocument to check- Returns:
- true if PDF upload can be proposed, false otherwise
-