[Yanel-commits] rev 32350 - public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client

michi at wyona.com michi at wyona.com
Fri Feb 22 00:31:06 CET 2008


Author: michi
Date: 2008-02-22 00:31:05 +0100 (Fri, 22 Feb 2008)
New Revision: 32350

Added:
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java
Log:
identities and rights getter started

Added: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java	2008-02-21 23:31:05 UTC (rev 32350)
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2008 Wyona
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.wyona.yanel.gwt.accesspolicyeditor.client;
+
+import org.wyona.yanel.gwt.client.AsynchronousAgent;
+
+import com.google.gwt.http.client.Request;
+import com.google.gwt.http.client.Response;
+
+import java.util.Vector;
+
+/**
+ *
+ */
+public class AsynchronousIdentitiesAndRightsGetter extends AsynchronousAgent {
+
+    Vector users = new Vector();
+
+    /**
+     *
+     */
+    public AsynchronousIdentitiesAndRightsGetter(String url) {
+        super(url);
+    }
+
+    /**
+     * See src/gallery/src/java/org/wyona/yanel/gwt/client/ui/gallery/AsynchronousGalleryBuilder.java
+     * Also see src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/sample-identities-and-usecases.xml
+     */
+    public void onResponseReceived(final Request request, final Response response) {
+        // TODO
+        users.add("dz");
+    }
+
+    /**
+     * Get users
+     */
+    public String[] getUsers() {
+        String[] u = new String[2];
+        u[0] = "dz";
+        u[0] = "ep";
+        return u;
+    }
+}



More information about the Yanel-commits mailing list