Book description
Learn a powerful way to successfully implement unique integration solutions with Alfresco
In Detail
Alfresco web scripts is a key feature of the Alfresco enterprise content management system that enables other applications to interact with the Alfresco repository in a secure way. This book will help you understand everything you need to know about web scripts so that you can practically apply them to your own projects.
You will begin by learning the basics of Alfresco web scripts, giving you a clear idea about how web scripts are a useful solution to your business problems. Moving on, you will delve into the powerful web script framework and then get a complete walk-through of all the components required to build web scripts. Later in this book, you will discover various ways to execute web scripts. You will learn about useful JavaScript APIs in Alfresco that you can leverage when building business solutions with web scripts. Moving further, you will learn about deployment, debugging, and troubleshooting web scripts, and find instructions to develop web scripts in a Maven project that will help you learn how to build web scripts in a real development environment.
What You Will Learn
- Implement web scripts in Alfresco and learn about their fundamentals
- Understand the end-to-end execution flow with core details and get an insight into the robust web script framework
- Gain extensive knowledge about the building components of web scripts
- Explore different options to invoke Alfresco web scripts
- Leverage the power of useful JavaScript APIs in web script implementation
- Understand various deployment options, debugging techniques, and troubleshooting pointers
- Learn about extension capabilities to extend the web script framework
Publisher resources
Table of contents
-
Learning Alfresco Web Scripts
- Table of Contents
- Learning Alfresco Web Scripts
- Credits
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Getting Familiar with Web Scripts
-
2. It's Time for the First Web Script
- Creating your first web script in Alfresco
- Understanding the web script URI
- Adding arguments to a web script
- Extending the first web script to use the controller
- Behind the scenes of web script execution
- Important things for any web script
- Summary
- 3. Understanding the Web Script Framework
-
4. Building Blocks of Web Scripts
- The description document – it's a must!
- Controller implementation – not mandatory!
- Response templates – yes, they are required!
- I18N for a web script – it's optional
- Configuration document – it's optional
- Naming conventions – the most important thing
- Summary
-
5. Invoking Web Scripts
- Invoking a web script from a web browser
- Executing a web script using web browser plugins
- Executing a web script from standalone Java program
- Calling web scripts from Spring-based services
- Invoking a web script from Alfresco Share
- Calling a web script from JSR-168 portals and the JSF page
- Dealing with client limitations
- Summary
-
6. Creating Java-backed Web Scripts
- Use case scenario
- Web script functionality at a high level
- Getting ready
- Creating a description document
- Creating a response template
- Creating a Java controller
- Configuring the controller for the web script
- Deploying the web script
- Testing the web script
- DeclarativeWebScript versus AbstractWebScript
- Using controllers smartly
- Summary
-
7. Understanding JavaScript-based Web Scripts in Detail
- Understanding what you can do with the JavaScript API
- JavaScript APIs in Alfresco
- A must-know ScriptNode API
- Code examples
- Creating your own root object
- Summary
- 8. Deployment, Debugging, and Troubleshooting Web Scripts
-
9. Mavenizing Web Scripts
- Setting up your environment
- Creating the default project structure for AMP
- Generating AMP from the default project
- Setting up a development environment with Eclipse
- Understanding the default project structure
- Extending your default project to create web scripts
- Applying AMP to the Alfresco WAR for testing
- Summary
- 10. Extending the Web Script Framework
- Index
Product information
- Title: Learning Alfresco Web Scripts
- Author(s):
- Release date: November 2014
- Publisher(s): Packt Publishing
- ISBN: 9781784390600
You might also like
book
Alfresco One 5.x Developer's Guide - second edition
Discover what it means to be an expert developer by exploring the latest features available to …
book
Liferay Portal 6.2 Enterprise Intranets
A practical guide to adopting portal development best practices in an Enterprise world About This Book …
book
PHP for the Web: Visual QuickStart Guide, Fourth Edition
With PHP for the World Wide Web, Fourth Edition: Visual QuickStart Guide, readers can start from …
book
Spring MVC Blueprints
Design and implement real-world web-based applications using the Spring Framework 4.x specification based on technical documentation …