[rfc][icedtea-web] PolicyEditor

Andrew Azores aazores at redhat.com
Wed Feb 12 09:23:13 PST 2014


Hi all,

Attached is a patch introducing a new, simplified Policy Editor. This is 
to go along with the PolicyPanel patch from a while back. It provides a 
much simpler interface for editing user-level policy files, and also 
doesn't do anything evil like calling System.exit() as the existing 
PolicyTool does.

Functionality-wise, the PolicyEditor class-level Javadoc explains some 
of the less obvious details. Everything should hopefully be straight 
forward and intuitive, though. I'm definitely open to suggestions on the 
visuals and layout, etc.

ChangeLog:
Adding PolicyEditor
* netx/net/sourceforge/jnlp/controlpanel/PolicyPanel.java: added button
for PolicyEditor (Simple Editor), changed button labels to Simple Editor
and Advanced Editor (policytool). (OpenFileResult,
testDirectoryPermssions, testFilePermissions, showReadOnlyDialog,
showCouldNotOpenFileDialog) moved into FileUtils
* netx/net/sourceforge/jnlp/resources/Messages.properties: added messages
for PolicyEditor
* netx/net/sourceforge/jnlp/util/FileUtils.java: (OpenFileResult,
testDirectoryPermssions, testFilePermissions, showReadOnlyDialog,
showCouldNotOpenFileDialog) moved out of PolicyPanel
* netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: new
class. Editor for policy files
* 
netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java:
new enum. Models for PolicyEditor permissions
* 
tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissionsTest.java:
new tests
* 
tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PolicyEditorTest.java:
new tests

Thanks,

-- 
Andrew A

-------------- next part --------------
A non-text attachment was scrubbed...
Name: policy-editor.patch
Type: text/x-patch
Size: 72785 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140212/880c8009/policy-editor-0001.patch 


More information about the distro-pkg-dev mailing list