Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Alfresco Web Scripts
  • Toc
  • feedback
Learning Alfresco Web Scripts

Learning Alfresco Web Scripts

By : Ramesh Chauhan
4.5 (4)
close
Learning Alfresco Web Scripts

Learning Alfresco Web Scripts

4.5 (4)
By: Ramesh Chauhan

Overview of this book

If you are an Alfresco developer who has no experience with web scripts and you want to start developing Alfresco web scripts, then this book is definitely for you.
Table of Contents (12 chapters)
close
11
Index

Configuring the controller for the web script


Once the Java controller is ready, it needs to be configured for the web script so that the web script framework in Alfresco can get to know that this Java class is the controller for the contentlocation web script. This can be done by creating a spring context file and adding the entry for the Java class in it.

Create a file custom-example-webscripts-context.xml that has the following content:

<?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.example.contentlocation.get" class="com.example.content.ContentLocationWebScript" parent="webscript">
      <property name="nodeService" ref="nodeService" />
      <property name="permissionService" ref="permissionService" />
  </bean>
</beans>

We created a spring context file to associate the Java controller with the contentlocation web...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete