Remapping of UI webscripts (portlets) to /ui/servicename style URL mapping.

All portlet webscripts tested in My Alfresco Dashboard and Liferay portal.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6141 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-07-03 11:13:44 +00:00
parent 67c98df8d3
commit f963fdb54d
15 changed files with 23 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
<webscript> <webscript>
<shortname>Document List</shortname> <shortname>Document List</shortname>
<description>Generate the Document list portlet page</description> <description>Generate the Document list portlet page</description>
<url>/doclist?f={filter?}&amp;p={path?}&amp;q={query?}</url> <url>/ui/doclist?f={filter?}&amp;p={path?}&amp;q={query?}</url>
<url>/doclist.atom?f={filter?}&amp;p={path?}&amp;q={query?}</url> <url>/ui/doclist.atom?f={filter?}&amp;p={path?}&amp;q={query?}</url>
<authentication>user</authentication> <authentication>user</authentication>
<transaction>required</transaction> <transaction>required</transaction>
</webscript> </webscript>

View File

@@ -1,7 +1,7 @@
<webscript> <webscript>
<shortname>Document List Panel</shortname> <shortname>Document List Panel</shortname>
<description>Generate the inner panel for the Document List portlet page</description> <description>Generate the inner panel for the Document List portlet page</description>
<url>/doclistpanel?f={filter}&amp;p={path}&amp;h={home};q={query?}</url> <url>/ui/doclistpanel?f={filter}&amp;p={path}&amp;h={home};q={query?}</url>
<authentication>user</authentication> <authentication>user</authentication>
<transaction>required</transaction> <transaction>required</transaction>
</webscript> </webscript>

View File

@@ -1,7 +1,7 @@
<webscript> <webscript>
<shortname>My Spaces</shortname> <shortname>My Spaces</shortname>
<description>Generate the My Spaces portlet page</description> <description>Generate the My Spaces portlet page</description>
<url>/myspaces?f={filter?}&amp;p={path?}</url> <url>/ui/myspaces?f={filter?}&amp;p={path?}</url>
<authentication>user</authentication> <authentication>user</authentication>
<transaction>required</transaction> <transaction>required</transaction>
</webscript> </webscript>

View File

@@ -1,7 +1,7 @@
<webscript> <webscript>
<shortname>My Spaces Panel</shortname> <shortname>My Spaces Panel</shortname>
<description>Generate the inner panel for the My Spaces portlet page</description> <description>Generate the inner panel for the My Spaces portlet page</description>
<url>/myspacespanel?f={filter}&amp;p={path}&amp;h={home}</url> <url>/ui/myspacespanel?f={filter}&amp;p={path}&amp;h={home}</url>
<authentication>user</authentication> <authentication>user</authentication>
<transaction>required</transaction> <transaction>required</transaction>
</webscript> </webscript>

View File

@@ -1,7 +1,7 @@
<webscript> <webscript>
<shortname>My Tasks</shortname> <shortname>My Tasks</shortname>
<description>Generate the My Tasks portlet page</description> <description>Generate the My Tasks portlet page</description>
<url>/mytasks?f={filter?}</url> <url>/ui/mytasks?f={filter?}</url>
<authentication>user</authentication> <authentication>user</authentication>
<transaction>required</transaction> <transaction>required</transaction>
</webscript> </webscript>

View File

@@ -1,7 +1,7 @@
<webscript> <webscript>
<shortname>My Tasks Panel</shortname> <shortname>My Tasks Panel</shortname>
<description>Generate the Generate the inner panel for the My Tasks portlet page</description> <description>Generate the Generate the inner panel for the My Tasks portlet page</description>
<url>/mytaskspanel?f={filter?}</url> <url>/ui/mytaskspanel?f={filter?}</url>
<authentication>user</authentication> <authentication>user</authentication>
<transaction>required</transaction> <transaction>required</transaction>
</webscript> </webscript>

View File

@@ -1,7 +1,7 @@
<webscript> <webscript>
<shortname>My Web Forms</shortname> <shortname>My Web Forms</shortname>
<description>Generate the My Web Forms portlet page</description> <description>Generate the My Web Forms portlet page</description>
<url>/mywebforms</url> <url>/ui/mywebforms</url>
<authentication>user</authentication> <authentication>user</authentication>
<transaction>required</transaction> <transaction>required</transaction>
</webscript> </webscript>

View File

@@ -33,7 +33,7 @@
</init-param> </init-param>
<init-param> <init-param>
<name>scriptUrl</name> <name>scriptUrl</name>
<value>/alfresco/168s/mytasks</value> <value>/alfresco/168s/ui/mytasks</value>
</init-param> </init-param>
<supports> <supports>
@@ -58,7 +58,7 @@
</init-param> </init-param>
<init-param> <init-param>
<name>scriptUrl</name> <name>scriptUrl</name>
<value>/alfresco/168s/doclist</value> <value>/alfresco/168s/ui/doclist</value>
</init-param> </init-param>
<supports> <supports>
@@ -83,7 +83,7 @@
</init-param> </init-param>
<init-param> <init-param>
<name>scriptUrl</name> <name>scriptUrl</name>
<value>/alfresco/168s/myspaces</value> <value>/alfresco/168s/ui/myspaces</value>
</init-param> </init-param>
<supports> <supports>
@@ -108,7 +108,7 @@
</init-param> </init-param>
<init-param> <init-param>
<name>scriptUrl</name> <name>scriptUrl</name>
<value>/alfresco/168s/mywebforms</value> <value>/alfresco/168s/ui/mywebforms</value>
</init-param> </init-param>
<supports> <supports>
@@ -122,4 +122,8 @@
</portlet-info> </portlet-info>
</portlet> </portlet>
<user-attribute>
<name>user.home-info.online.email</name>
</user-attribute>
</portlet-app> </portlet-app>

View File

@@ -24,4 +24,4 @@
--%> --%>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<r:webScript scriptUrl="/wcs/doclist" /> <r:webScript scriptUrl="/wcs/ui/doclist" />

View File

@@ -24,4 +24,4 @@
--%> --%>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<r:webScript scriptUrl="/wcs/myspaces" /> <r:webScript scriptUrl="/wcs/ui/myspaces" />

View File

@@ -24,4 +24,4 @@
--%> --%>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<r:webScript scriptUrl="/wcs/mytasks" /> <r:webScript scriptUrl="/wcs/ui/mytasks" />

View File

@@ -24,4 +24,4 @@
--%> --%>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<r:webScript scriptUrl="/wcs/mywebforms" /> <r:webScript scriptUrl="/wcs/ui/mywebforms" />

View File

@@ -22,7 +22,7 @@ var MyDocs = {
// is responsible for rendering just the contents of the main panel div // is responsible for rendering just the contents of the main panel div
YAHOO.util.Connect.asyncRequest( YAHOO.util.Connect.asyncRequest(
"GET", "GET",
MyDocs.ServiceContext + '/doclistpanel?f='+MyDocs.Filter+'&h='+MyDocs.Home+'&q='+MyDocs.Query, MyDocs.ServiceContext + '/ui/doclistpanel?f='+MyDocs.Filter+'&h='+MyDocs.Home+'&q='+MyDocs.Query,
{ {
success: function(response) success: function(response)
{ {

View File

@@ -26,7 +26,7 @@ var MySpaces = {
// is responsible for rendering just the contents of the main panel div // is responsible for rendering just the contents of the main panel div
YAHOO.util.Connect.asyncRequest( YAHOO.util.Connect.asyncRequest(
"GET", "GET",
MySpaces.ServiceContext + '/myspacespanel?p='+MySpaces.Path+'&f='+MySpaces.Filter+'&h='+MySpaces.Home, MySpaces.ServiceContext + '/ui/myspacespanel?p='+MySpaces.Path+'&f='+MySpaces.Filter+'&h='+MySpaces.Home,
{ {
success: function(response) success: function(response)
{ {

View File

@@ -12,7 +12,7 @@ var MyTasks = {
// is responsible for rendering just the contents of the main panel div // is responsible for rendering just the contents of the main panel div
YAHOO.util.Connect.asyncRequest( YAHOO.util.Connect.asyncRequest(
"GET", "GET",
MyTasks.ServiceContext + '/mytaskspanel?f='+MyTasks.Filter, MyTasks.ServiceContext + '/ui/mytaskspanel?f='+MyTasks.Filter,
{ {
success: function(response) success: function(response)
{ {