You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2005/06/13 18:46:59 UTC

svn commit: r190424 - in /portals/jetspeed-2/trunk/portal/src/webapp/ajax: ./ portlet_apps.ajax portlet_definitions.ajax portlet_entities.ajax portlet_entity.ajax

Author: weaver
Date: Mon Jun 13 09:46:58 2005
New Revision: 190424

URL: http://svn.apache.org/viewcvs?rev=190424&view=rev
Log:
JS2-283:  These are the velocity templates that generate the XML for the services

Added:
    portals/jetspeed-2/trunk/portal/src/webapp/ajax/
    portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_apps.ajax
    portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_definitions.ajax
    portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entities.ajax
    portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entity.ajax

Added: portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_apps.ajax
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_apps.ajax?rev=190424&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_apps.ajax (added)
+++ portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_apps.ajax Mon Jun 13 09:46:58 2005
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portletApps>
+#foreach($app in $result)
+  <portletApp>
+    <id>$app.id</id>
+    <name>$app.name</name>
+  </portletApp>
+#end
+</portletApps>
\ No newline at end of file

Added: portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_definitions.ajax
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_definitions.ajax?rev=190424&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_definitions.ajax (added)
+++ portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_definitions.ajax Mon Jun 13 09:46:58 2005
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portletDefinitions>
+#foreach($portlet in $result.portletDefinitions)
+	<portletDefinition>
+		<id>$portlet.id</id>
+		<name>$portlet.name</name>
+	</portletDefinition>
+#end
+</portletDefinitions>
+
+

Added: portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entities.ajax
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entities.ajax?rev=190424&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entities.ajax (added)
+++ portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entities.ajax Mon Jun 13 09:46:58 2005
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portletEntities>
+#foreach($entity in $result)
+	<portletEntity>
+		<id>$entity.id</id>
+	</portletEntity>
+#end
+</portletEntities>
\ No newline at end of file

Added: portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entity.ajax
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entity.ajax?rev=190424&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entity.ajax (added)
+++ portals/jetspeed-2/trunk/portal/src/webapp/ajax/portlet_entity.ajax Mon Jun 13 09:46:58 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portletEntity>
+  <id>$result.id</id>
+
+  #foreach($pref in $result.preferenceSet.iterator())
+   #if($pref.readOnly)
+	#set($readOnly = "true") 
+   #else 
+	#set($readOnly = "false")
+   #end  
+   <preference readOnly="${readOnly}">
+     <name>$pref.name</name>
+   #foreach($value in $pref.values)
+	 <value>$value</value>
+   #end
+   </preference>
+  #end
+</portletEntity>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org