Class DocumentProtectionManager
java.lang.Object
com.logicaldoc.gui.common.client.util.DocumentProtectionManager
Utility class for handling passwords on documents.
- Since:
- 7.6
- Author:
- Marco Meschieri - LogicalDOC
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interface
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaskForPassword(long docId, DocumentProtectionManager.DocumentProtectionHandler handler) Checks the document and asks the user for a password(if needed).static voidaskForPassword(GUIDocument document, DocumentProtectionManager.DocumentProtectionHandler handler) Checks the document and asks the user for a password(if needed).static booleanisUnprotected(long docId) 
- 
Method Details- 
isUnprotectedpublic static boolean isUnprotected(long docId) 
- 
askForPasswordpublic static void askForPassword(long docId, DocumentProtectionManager.DocumentProtectionHandler handler) Checks the document and asks the user for a password(if needed).- Parameters:
- docId- id of the document to check
- handler- Optional handler to react something when the document gets unlocked
 
- 
askForPasswordpublic static void askForPassword(GUIDocument document, DocumentProtectionManager.DocumentProtectionHandler handler) Checks the document and asks the user for a password(if needed).- Parameters:
- document- the document to check
- handler- Optional handler to react something when the document gets unlocked
 
 
-