02-20-2009 09:46 AM
<h1>${title!"No Title"}</h1>
<webscript>
<shortname>Unlock Website</shortname>
<description>Unlocks all files in website.</description>
<url>/webtools/unlock/{path}</url>
<authentication>guest</authentication>
</webscript>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="webscript.webtools.unlock.get" class="com.centrom.webscripts.Unlock" parent="webscript">
</bean>
</beans>
package com.centrom.webscripts;
import java.io.*;
import java.util.*;
import org.alfresco.web.scripts.*;
import org.apache.log4j.Logger;
public class Unlock extends DeclarativeWebScript {
static Logger logger = Logger.getLogger(Unlock.class);
static {
if (logger != null) {
logger.error("Initiating webscript");
}
}
protected Map<String, Object> executeImpl(WebScriptRequest req, WebScriptResponse res) throws IOException {
logger.error("Called executeImpl web script Unlock");
Map<String,Object> model = new HashMap<String, Object>();
model.put("title", "Hello World");
model.put("count", 1);
model.put("response", "Success");
return model;
}
}
Web Script: webtools/unlock.get
Alfresco Enterprise Network v2.2.1 (233)
Generated from /alfresco/wcservice/script/webtools/unlock.get on 20-Feb-2009 14:38:43
Script Properties
Id: webtools/unlock.get
Short Name: Unlock Website
Description: Unlocks all files in website.
Authentication: guest
Transaction: required
Method: GET
URL Template: /webtools/unlock/{path}
Format Style: any
Default Format: html
Implementation: class com.centrom.webscripts.Unlock
Store: workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts
[No implementation files]
Store: workspace://SpacesStore/app:company_home/app:dictionary/cm:webscripts
File: webtools/unlock.get.desc.xml
<webscript>
<shortname>Unlock Website</shortname>
<description>Unlocks all files in website.</description>
<url>/webtools/unlock/{path}</url>
<authentication>guest</authentication>
</webscript>
File: webtools/unlock.get.html.ftl
<h1>${title!"No Title"}</h1>
Store: classpath:/alfresco/templates/webscripts
[No implementation files]
02-20-2009 02:55 PM
02-21-2009 06:43 AM
02-23-2009 04:52 AM
02-23-2009 05:46 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.