Bug 58919 - [PATCH] Utility method to check any restrict protected
Summary: [PATCH] Utility method to check any restrict protected
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.14-dev
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
Keywords: PatchAvailable
Depends on:
Reported: 2016-01-25 11:56 UTC by Prasadu
Modified: 2016-02-17 18:39 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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.