[Yanel-commits] rev 31315 - in public/yanel/contributions/ajax-components: . src src/access-policy-editor src/access-policy-editor/java src/access-policy-editor/java/org src/access-policy-editor/java/org/wyona src/access-policy-editor/java/org/wyona/yanel src/access-policy-editor/java/org/wyona/yanel/gwt src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public src/hello-world src/hello-world/java src/hello-world/java/org src/hello-world/java/org/wyona src/hello-world/java/org/wyona/yanel src/hello-world/java/org/wyona/yanel/gwt src/hello-world/java/org/wyona/yanel/gwt/helloworld src/hello-world/java/org/wyona/yanel/gwt/helloworld/client src/hello-world/java/org/wyona/yanel/gwt/helloworld/public

michi at wyona.com michi at wyona.com
Wed Feb 6 15:11:35 CET 2008


Author: michi
Date: 2008-02-06 15:11:34 +0100 (Wed, 06 Feb 2008)
New Revision: 31315

Added:
   public/yanel/contributions/ajax-components/src/
   public/yanel/contributions/ajax-components/src/access-policy-editor/
   public/yanel/contributions/ajax-components/src/access-policy-editor/build.xml
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/AccessPolicyEditor.gwt.xml
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/
   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/
   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/sample-identities-and-usecases.xml
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/sample-policy.xml
   public/yanel/contributions/ajax-components/src/hello-world/
   public/yanel/contributions/ajax-components/src/hello-world/build.xml
   public/yanel/contributions/ajax-components/src/hello-world/java/
   public/yanel/contributions/ajax-components/src/hello-world/java/org/
   public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/
   public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/
   public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/
   public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/
   public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/HelloWorld.gwt.xml
   public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/client/
   public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/client/HelloWorld.java
   public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/public/
   public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/public/TestHelloWorld.html
Log:
src dir added

Added: public/yanel/contributions/ajax-components/src/access-policy-editor/build.xml
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/build.xml	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/build.xml	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+
+<project default="google.compile">
+
+	<!-- Canonical name of the GWT module -->
+	<property name="module.name" value="org.wyona.yanel.gwt.accesspolicyeditor.AccessPolicyEditor"/>
+
+	<target name="init" description="Initialize build properties">
+	    <echo>Initializinig build...</echo>
+	    <dirname property="component.home.dir" file="${ant.file}"/>
+	    <echo>Component home directory: ${component.home.dir}</echo>
+		
+		<!-- Property files -->
+	    <property file="${component.home.dir}/src/build/local.build.properties"/>
+	    <property file="${component.home.dir}/src/build/build.properties"/>
+
+            <!-- Global properties -->
+            <property file="${component.home.dir}/../../local.build.properties"/>
+            <property file="${component.home.dir}/../../build.properties"/>
+
+	    <property name="component.build.dir" value="${component.home.dir}/build"/>
+	    <property name="component.java.dir" value="${component.home.dir}/java"/>
+		
+		<!-- GWT uses this to translate from JAVA into JavaScript -->
+		<path id="google.compile.classpath">
+			<fileset dir="${gwt.home}">
+				<include name="gwt-user.jar" />
+				<include name="${gwt.dev.lib}" />
+			</fileset>
+			
+			<!-- Sources need to be in the class path -->
+			
+			<!-- Core component sources-->
+			<pathelement path="${component.home.dir}/../../core/src/java" />
+			
+			<!-- This component sources -->
+			<pathelement path="${component.java.dir}/" />
+		</path>
+		
+		<echo>Component initialized</echo>
+	</target>
+	
+	<target name="clean" depends="init" description="Remove previous build">
+		<delete dir="${component.build.dir}"/>
+		<echo>Cleaned</echo>
+	</target>
+
+	<target name="google.compile" depends="clean">
+		<echo>Converting *.java to *.js (${module.name}) ...</echo>
+		
+		<java classname="com.google.gwt.dev.GWTCompiler" fork="yes">
+			<classpath refid="google.compile.classpath" />
+			<arg value="-out" />
+			<arg value="${component.build.dir}" />
+			<arg value="-style" />
+			<arg value="OBF" />
+			<arg value="${module.name}" />
+		</java>
+	</target>
+</project>

Added: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/AccessPolicyEditor.gwt.xml
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/AccessPolicyEditor.gwt.xml	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/AccessPolicyEditor.gwt.xml	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,18 @@
+<!--                                                                        -->
+<!-- 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   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.user.User"/>
+  <entry-point class="org.wyona.yanel.gwt.accesspolicyeditor.client.AccessPolicyEditor"/>
+</module>

Added: 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	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AccessPolicyEditor.java	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,39 @@
+/*
+ * 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 com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.ui.ClickListener;
+import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.Widget;
+
+/**
+ * Access Policy Editor
+ */
+public class AccessPolicyEditor implements EntryPoint {
+
+  public void onModuleLoad() {
+    Button b = new Button("Click me", new ClickListener() {
+      public void onClick(Widget sender) {
+        Window.alert("Hello, Access Policy Editor");
+      }
+    });
+
+    RootPanel.get().add(b);
+  }
+}

Added: 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	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,8 @@
+<html>
+  <head>
+    <title>Access Policy Editor</title>
+  </head>
+  <body bgcolor="white"> 
+    <script language="javascript" src="org.wyona.yanel.gwt.accesspolicyeditor.AccessPolicyEditor.nocache.js"></script>
+  </body>
+</html>

Added: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/sample-identities-and-usecases.xml
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/sample-identities-and-usecases.xml	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/sample-identities-and-usecases.xml	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+
+<access-control xmlns="http://www.wyona.org/security/1.0">
+  <users>
+    <user id="michi">Michael Wechner</user>
+    <user id="http://michaelwechner.livejournal.com/"/>
+  </users>
+
+  <groups>
+    <group id="login">All registered users</group>
+  </groups>
+
+  <usecases>
+    <usecase id="view">Read</group>
+    <usecase id="write">Write</group>
+  </usecases>
+</access-control>

Added: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/sample-policy.xml
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/sample-policy.xml	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/sample-policy.xml	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+
+<policy xmlns="http://www.wyona.org/security/1.0">
+
+  <usecase id="view">
+    <world permission="true"/>
+  </usecase>
+
+  <usecase id="introspection">
+    <world permission="true"/>
+  </usecase>
+
+  <usecase id="open">
+    <group id="login" permission="true"/>
+    <user id="http://michaelwechner.livejournal.com/" permission="true"/>
+  </usecase>
+
+  <usecase id="write">
+    <group id="login" permission="true"/>
+    <user id="http://michaelwechner.livejournal.com/" permission="true"/>
+  </usecase>
+
+  <usecase id="toolbar">
+    <group id="login" permission="true"/>
+    <user id="http://michaelwechner.livejournal.com/" permission="true"/>
+  </usecase>
+
+  <usecase id="policy.read">
+    <group id="login" permission="true"/>
+    <user id="http://michaelwechner.livejournal.com/" permission="true"/>
+  </usecase>
+
+  <usecase id="policy.create">
+    <group id="login" permission="true"/>
+    <user id="http://michaelwechner.livejournal.com/" permission="true"/>
+  </usecase>
+
+</policy>

Added: public/yanel/contributions/ajax-components/src/hello-world/build.xml
===================================================================
--- public/yanel/contributions/ajax-components/src/hello-world/build.xml	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/hello-world/build.xml	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+
+<project default="google.compile">
+
+	<!-- Canonical name of the GWT module -->
+	<property name="module.name" value="org.wyona.yanel.gwt.helloworld.HelloWorld"/>
+
+	<target name="init" description="Initialize build properties">
+	    <echo>Initializinig build...</echo>
+	    <dirname property="component.home.dir" file="${ant.file}"/>
+	    <echo>Component home directory: ${component.home.dir}</echo>
+		
+		<!-- Property files -->
+	    <property file="${component.home.dir}/src/build/local.build.properties"/>
+	    <property file="${component.home.dir}/src/build/build.properties"/>
+
+            <!-- Global properties -->
+            <property file="${component.home.dir}/../../local.build.properties"/>
+            <property file="${component.home.dir}/../../build.properties"/>
+
+	    <property name="component.build.dir" value="${component.home.dir}/build"/>
+	    <property name="component.java.dir" value="${component.home.dir}/java"/>
+		
+		<!-- GWT uses this to translate from JAVA into JavaScript -->
+		<path id="google.compile.classpath">
+			<fileset dir="${gwt.home}">
+				<include name="gwt-user.jar" />
+				<include name="${gwt.dev.lib}" />
+			</fileset>
+			
+			<!-- Sources need to be in the class path -->
+			
+			<!-- Core component sources-->
+			<pathelement path="${component.home.dir}/../../core/src/java" />
+			
+			<!-- This component sources -->
+			<pathelement path="${component.java.dir}/" />
+		</path>
+		
+		<echo>Component initialized</echo>
+	</target>
+	
+	<target name="clean" depends="init" description="Remove previous build">
+		<delete dir="${component.build.dir}"/>
+		<echo>Cleaned</echo>
+	</target>
+
+	<target name="google.compile" depends="clean">
+		<echo>Converting *.java to *.js (${module.name}) ...</echo>
+		
+		<java classname="com.google.gwt.dev.GWTCompiler" fork="yes">
+			<classpath refid="google.compile.classpath" />
+			<arg value="-out" />
+			<arg value="${component.build.dir}" />
+			<arg value="-style" />
+			<arg value="OBF" />
+			<arg value="${module.name}" />
+		</java>
+	</target>
+</project>

Added: public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/HelloWorld.gwt.xml
===================================================================
--- public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/HelloWorld.gwt.xml	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/HelloWorld.gwt.xml	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,18 @@
+<!--                                                                        -->
+<!-- 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   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.user.User"/>
+  <entry-point class="org.wyona.yanel.gwt.helloworld.client.HelloWorld"/>
+</module>

Added: public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/client/HelloWorld.java
===================================================================
--- public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/client/HelloWorld.java	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/client/HelloWorld.java	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,39 @@
+/*
+ * 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.helloworld.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.ui.ClickListener;
+import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.Widget;
+
+/**
+ * Hello World
+ */
+public class HelloWorld implements EntryPoint {
+
+  public void onModuleLoad() {
+    Button b = new Button("Click me", new ClickListener() {
+      public void onClick(Widget sender) {
+        Window.alert("Hello, World");
+      }
+    });
+
+    RootPanel.get().add(b);
+  }
+}

Added: public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/public/TestHelloWorld.html
===================================================================
--- public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/public/TestHelloWorld.html	                        (rev 0)
+++ public/yanel/contributions/ajax-components/src/hello-world/java/org/wyona/yanel/gwt/helloworld/public/TestHelloWorld.html	2008-02-06 14:11:34 UTC (rev 31315)
@@ -0,0 +1,8 @@
+<html>
+  <head>
+    <title>Access Policy Editor</title>
+  </head>
+  <body bgcolor="white"> 
+    <script language="javascript" src="org.wyona.yanel.gwt.helloworld.HelloWorld.nocache.js"></script>
+  </body>
+</html>



More information about the Yanel-commits mailing list