Class DocumentProtectionManager


  • public class DocumentProtectionManager
    extends Object
    Utility class for handling passords on documents.
    Since:
    7.6
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • DocumentProtectionManager

        public DocumentProtectionManager()
    • Method Detail

      • isUnprotected

        public static boolean isUnprotected​(long docId)
      • askForPassword

        public static void askForPassword​(Long docId,
                                          DocumentProtectionManager.DocumentProtectionHandler handler)
        Controls the document and asks the user for a password(if needed).
        Parameters:
        docId - identifier of the document
        handler - Optional handler to react something when the documents gets unlocked