02-03-2015 10:46 AM
/app:company_home/st:sites/cm:mysite/cm:documentLibrary/cm:mydoc.pdf
/app:company_home/st:sites/cm:mysite/cm:documentLibrary
PATH:"/app:company_home/st:sites/cm:mysite/cm:documentLibrary//*" AND + @cm\:name:"someOtherNodeName"
02-03-2015 01:20 PM
02-05-2015 05:44 PM
package org.example;
import java.util.HashMap;
import java.util.Map;
import org.alfresco.repo.model.Repository;
import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
import org.springframework.extensions.webscripts.Cache;
import org.springframework.extensions.webscripts.DeclarativeWebScript;
import org.alfresco.service.cmr.repository.Path;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.extensions.webscripts.Status;
import org.springframework.extensions.webscripts.WebScriptException;
import org.springframework.extensions.webscripts.WebScriptRequest;
public class JavaDir extends DeclarativeWebScript
{
private Repository repository;
private NodeService nodeservice;
public void setRepository(Repository repository)
{
this.repository = repository;
}
public void setNodeService(NodeService nodeService)
{
this.nodeservice = nodeService;
}
protected Map<String, Object> executeImpl(WebScriptRequest req,
Status status, Cache cache)
{
model.put("nodeservice", nodeservice);
return model;
}
}
02-05-2015 06:40 PM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN 2.0//EN'
'http://www.springframework.org/dtd/spring-beans-2.0.dtd'>
<beans>
<bean id="webscript.org.example.javadir.get"
class="org.example.JavaDir" parent="webscript">
<property name="repository" ref="repositoryHelper"/>
<property name="nodeService"><ref bean="NodeService"/></property>
</bean>
</beans>
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.