Learning Alfresco Web Scripts

Learn a powerful way to successfully implement unique integration solutions with Alfresco

Learning Alfresco Web Scripts

This ebook is included in a Mapt subscription
Ramesh Chauhan

1 customer reviews
Learn a powerful way to successfully implement unique integration solutions with Alfresco
$0.00
$17.99
$29.99
$29.99p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784390600
Paperback182 pages

Book Description

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.

Table of Contents

Chapter 1: Getting Familiar with Web Scripts
Understanding web scripts
Reasons to use web scripts
Understanding when to use a web script
Understanding where web scripts can be used
Understanding how web scripts work
Types of web scripts
Summary
Chapter 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
Chapter 3: Understanding the Web Script Framework
Execution flow of web scripts
Components of the web script framework
Deployment architecture
Summary
Chapter 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
Chapter 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
Chapter 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
Chapter 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
Chapter 8: Deployment, Debugging, and Troubleshooting Web Scripts
Deployment options
Debugging web scripts
Troubleshooting pointers
Web scripts on a production server
Summary
Chapter 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
Chapter 10: Extending the Web Script Framework
Custom implementation of the web script runtime
The custom implementation of a web script container
Custom authenticator implementation
Custom script processor implementation
Custom template processor implementation
Customizing formats
Summary

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

Authors

Table of Contents

Chapter 1: Getting Familiar with Web Scripts
Understanding web scripts
Reasons to use web scripts
Understanding when to use a web script
Understanding where web scripts can be used
Understanding how web scripts work
Types of web scripts
Summary
Chapter 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
Chapter 3: Understanding the Web Script Framework
Execution flow of web scripts
Components of the web script framework
Deployment architecture
Summary
Chapter 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
Chapter 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
Chapter 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
Chapter 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
Chapter 8: Deployment, Debugging, and Troubleshooting Web Scripts
Deployment options
Debugging web scripts
Troubleshooting pointers
Web scripts on a production server
Summary
Chapter 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
Chapter 10: Extending the Web Script Framework
Custom implementation of the web script runtime
The custom implementation of a web script container
Custom authenticator implementation
Custom script processor implementation
Custom template processor implementation
Customizing formats
Summary

Book Details

ISBN 139781784390600
Paperback182 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You