Class DocumentProtectionManager
- java.lang.Object
 - 
- com.logicaldoc.gui.common.client.util.DocumentProtectionManager
 
 
- 
public class DocumentProtectionManager extends Object
Utility class for handling passords on documents.- Since:
 - 7.6
 - Author:
 - Marco Meschieri - LogicalDOC
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentProtectionManager.DocumentProtectionHandler 
- 
Constructor Summary
Constructors Constructor Description DocumentProtectionManager() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaskForPassword(Long docId, DocumentProtectionManager.DocumentProtectionHandler handler)Controls the document and asks the user for a password(if needed).static booleanisUnprotected(long docId) 
 - 
 
- 
- 
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 documenthandler- Optional handler to react something when the documents gets unlocked
 
 - 
 
 -