[Yanel-commits] rev 32528 - in
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor:
client public
michi at wyona.com
michi at wyona.com
Tue Feb 26 22:33:40 CET 2008
Author: michi
Date: 2008-02-26 22:33:39 +0100 (Tue, 26 Feb 2008)
New Revision: 32528
Modified:
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AccessPolicyEditor.java
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html
Log:
save and cancel URL introduced
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AccessPolicyEditor.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AccessPolicyEditor.java 2008-02-26 21:28:38 UTC (rev 32527)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AccessPolicyEditor.java 2008-02-26 21:33:39 UTC (rev 32528)
@@ -52,18 +52,24 @@
*/
public void onModuleLoad() {
String identitiesURL = "DEFAULT-identities-and-usecases.xml";
- String policyURL = "DEFAULT-policy.xml";
+ String readPolicyURL = "DEFAULT-policy.xml";
+ String cancelURL = "DEFAULT-cancel.html";
+ String savePolicyURL = "DEFAULT-save-policy.xml";
// Get URLs from host/html page
try {
Dictionary dict = Dictionary.getDictionary("getURLs");
identitiesURL = dict.get("identities-url");
- policyURL = dict.get("policy-url");
+ readPolicyURL = dict.get("policy-url");
+ cancelURL = dict.get("cancel-url");
+ savePolicyURL = dict.get("save-url");
} catch (java.util.MissingResourceException e) {
Window.alert("Exception: " + e.getMessage());
}
+ Window.alert("Cancel URL: " + cancelURL);
+ Window.alert("Save policy URL: " + savePolicyURL);
// Get data from server
- getPolicy(policyURL);
+ getPolicy(readPolicyURL);
getIdentitiesAndRights(identitiesURL); // TODO: Subtract policy identities!
// Setup GUI
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html 2008-02-26 21:28:38 UTC (rev 32527)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html 2008-02-26 21:33:39 UTC (rev 32528)
@@ -8,7 +8,7 @@
<h1>Test Access Policy Editor</h1>
<p>
<script language="javascript">
- var getURLs = {"identities-url": "sample-identities-and-usecases.xml", "policy-url": "sample-policy.xml"};
+ var getURLs = {"identities-url": "sample-identities-and-usecases.xml", "policy-url": "sample-policy.xml", "cancel-url": "http://yanel.wyona.org", "save-url": "save-policy.xml"};
//window.alert(getURLs);
</script>
More information about the Yanel-commits
mailing list