Bug 58919

Summary: [PATCH] Utility method to check any restrict protected
Product: POI Reporter: Prasadu <dpbabu>
Component: XWPFAssignee: POI Developers List <dev>
Severity: enhancement Keywords: PatchAvailable
Priority: P2    
Version: 3.14-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Prasadu 2016-01-25 11:56:16 UTC
The current API will give four restrict options whether document is protected. If we want to test any protection is enabled, we need to write the code to check all four conditions like isEnforecedWithEdit || isEnforncedWithFormfill etc. A utility method is beneficial just to check any protection enforced
Comment 1 Prasadu 2016-01-25 11:57:37 UTC
I already added utility method.

Please refer https://github.com/apache/poi/pull/27 and merge into trunk
Comment 2 Dominik Stadler 2016-02-17 18:39:45 UTC
Applied as of r1730471, thanks for the patch.