Class AssociatedPDFManager

java.lang.Object
com.jalios.jcms.document.AssociatedPDFManager

public class AssociatedPDFManager extends Object
Provide method for Upload and attachment of a .pdf file to a FileDocument.
  • Field Details

  • 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 - if context is null
    • isPDFUploadAuthorized

      public static boolean isPDFUploadAuthorized(FileDocument doc)
      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