mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merge Web Scripts from BRANCHES/DEV/DAVE
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5362 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
var nodes = search.luceneSearch("PATH:\"/cm:generalclassifiable//cm:" + args.c + "//member\"");
|
||||
model.resultset = nodes;
|
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<generator version="${server.version}">Alfresco (${server.edition})</generator>
|
||||
<title>Category search: ${args.c}</title>
|
||||
<updated>${xmldate(date)}</updated>
|
||||
<icon>${absurl(url.context)}/images/logo/AlfrescoLogo16.ico</icon>
|
||||
<#list resultset as node>
|
||||
<entry>
|
||||
<title>${node.name}</title>
|
||||
<link rel="alternate" href="${absurl(url.context)}${node.url}"/>
|
||||
<icon>${absurl(url.context)}${node.icon16}</icon>
|
||||
<id>urn:uuid:${node.id}</id>
|
||||
<updated>${xmldate(node.properties.modified)}</updated>
|
||||
<summary>${node.properties.description!""}</summary>
|
||||
<author>
|
||||
<name>${node.properties.creator}</name>
|
||||
</author>
|
||||
</entry>
|
||||
</#list>
|
||||
</feed>
|
@@ -0,0 +1,8 @@
|
||||
<webscript>
|
||||
<shortname>Category Search</shortname>
|
||||
<description>Find all blog entries tagged with specified categories</description>
|
||||
<url format="html" template="/blog/category?c={category}"/>
|
||||
<url format="atom" template="/blog/category?c={category}&format=atom"/>
|
||||
<authentication>guest</authentication>
|
||||
<transaction>required</transaction>
|
||||
</webscript>
|
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<img src="${url.context}/images/logo/AlfrescoLogo32.png" alt="Alfresco" />
|
||||
Category search: ${args.c}
|
||||
<br>
|
||||
<table>
|
||||
<#list resultset as node>
|
||||
<tr>
|
||||
<td><img src="${url.context}${node.icon16}"/>
|
||||
<td><a href="${url.context}${node.url}">${node.name}</a>
|
||||
</tr>
|
||||
</#list>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
1
config/alfresco/bootstrap/webscripts/readme.html
Normal file
1
config/alfresco/bootstrap/webscripts/readme.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1>Web Scripts </h1><p>Documentation on how to develop a Web Script may be found <a href="http://wiki.alfresco.com/wiki/Web_Scripts">here</a>. </p><p>Web Scripts allow you to bind new Alfresco-based functionality to a HTTP method and custom URL. A library of URLs may be built up to provide a complete API accessible via HTTP. They are ideal for building data access & update APIs and simple UI components such as Portlets. Development of Web Scripts may be performed within Alfresco. Knowledge of Java is <em><strong>not</strong></em> required.<br /> </p><p>For example, you could create the following API for your particular application... </p> <dl><dt><strong>Execute a search</strong> </dt></dl> <p>GET http://<host>:<port>/alfresco/service/blog/category?c=Web20 </p> <dl><dt><strong>Retrieve meta-data for an item in the repository</strong> </dt></dl> <p>GET http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release </p> <dl><dt><strong>Update meta-data for an item in the repository</strong> </dt></dl> <p>POST http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release?status=Draft </p> <dl><dt><strong>Delete an item in the repository</strong> </dt></dl> <p>DELETE http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release </p>
|
Reference in New Issue
Block a user