Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Alfresco One 5.x Developer???s Guide

You're reading from   Alfresco One 5.x Developer???s Guide Discover what it means to be an expert developer by exploring the latest features available to you in Alfresco One 5.x

Arrow left icon
Product type Paperback
Published in Feb 2017
Publisher Packt
ISBN-13 9781787128163
Length 528 pages
Edition 2nd Edition
Languages
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Benjamin Chevallereau Benjamin Chevallereau
Author Profile Icon Benjamin Chevallereau
Benjamin Chevallereau
Jeff Potts Jeff Potts
Author Profile Icon Jeff Potts
Jeff Potts
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. The Alfresco Platform FREE CHAPTER 2. Getting Started with Alfresco 3. Working with Content Models 4. Handling Content Automatically with Actions, Behaviors, Transformers, and Extractors 5. Customizing Alfresco Share 6. Creating an Angular Application 7. Exposing Content through a RESTful API with Web Scripts 8. Advanced Workflow 9. Amazing Extensions 10. Security

Summary

This chapter gave you an introduction to the Alfresco Web Script Framework. You began with a very simple Hello World script and then gradually moved to more complex examples culminating in a REST API for retrieving whitepapers, getting the average rating for a specific whitepaper, posting new ratings for a given whitepaper, and deleting all ratings for a specific whitepaper.

The SomeCo website was able to leverage the web scripts to add a whitepaper list along with a graphical ratings widget. The widget, the web scripts, and the backend model are generic enough to be used for other types of content as well.

Other takeaways from this chapter include the following:

  • Web scripts are mainly composed of an XML descriptor, one or more FreeMarker templates (one for each response format), and, optionally, a controller.
  • Controllers can be implemented as JavaScript or Java, and have full access to the Alfresco API. Controllers share data with the view via the model, which is essentially a HashMap...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime