Book Image

Alfresco 3 Cookbook

Book Image

Alfresco 3 Cookbook

Overview of this book

Alfresco is the renowned and multiple award winning open source Enterprise content management system which allows you to build, design, and implement your very own ECM solutions.You have read a number of tutorials, blogs, and books on Alfresco. Now you're in the real world, trying to use Alfresco, but you’re running into problems with it. This is the book you want. Packed full of solutions that can be instantly applied, this cookbook with its practical based recipes and minimal explanation meets that demand.This Alfresco 3 cookbook boasts a comprehensive selection of recipes covering everything from the basics to the advanced. The book has recipes for quickly installing Alfresco in Windows and Linux and helping you use custom content model, rules, and search. There is also a collection of recipes focused on creating Scripts, Freemarker templates, Web Scripts, and new workflow definitions. Steps to integrate Alfresco with other systems like MS-Office are also included. You will be able to use Alfresco’s File and Email servers. Finally, step-by-step recipes are presented to create an Alfresco build environment and compile the source code. This Alfresco 3 Cookbook is perfect for developers looking to start working on Alfresco quickly, gain complete understanding, write custom implementations, and achieve expertise very easily.
Table of Contents (21 chapters)
Alfresco 3 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

Alfresco is the renowned and multiple award-winning open source Enterprise content management system which allows you to build, design, and implement your very own ECM solutions.

You have read a number of tutorials, blogs, and books on Alfresco. Now you're in the real world, trying to use Alfresco, but you're running into problems with it. This is the book you want, packed full of solutions that can be instantly applied to this cookbook with its practical-based recipes and minimal explanation meets that demand.

This Alfresco 3 Cookbook boasts a comprehensive selection of recipes covering everything from the basics to the advanced. The book has recipes for quickly installing Alfresco in Windows and Linux and helping you use custom content model, rules, and search. There is also a collection of recipes focused on creating Scripts, Freemarker templates, Web Scripts, and new workflow definitions. Steps to integrate Alfresco with other systems like MS-Office are also included. You will be able to use Alfresco's File and e-mail servers. Finally, step-by-step recipes are presented to create an Alfresco build environment and compile the source code. This Alfresco 3 Cookbook is perfect for developers looking to start working on Alfresco quickly, gain complete understanding, write custom implementations, and achieve expertise very easily.

What this book covers

Chapter 1, Getting Started: It introduces Alfresco with brief demonstration of the Alfresco Explorer application. Get Alfresco downloaded and installed on your machine, and finally be acquainted with the default distribution and architecture of Alfresco.

Chapter 2, Creating and Organizing Contents: It explains how to use Alfresco as Content Management System, how to upload or create contents, how to apply tagging or categorization of content, understand content metadata, use the document versioning capability of Alfresco.

Chapter 3, Securing and Searching Contents: It is about another important aspect of the Content Management System—Security. It helps you understand how to secure your contents and folders. How to create users and user groups—and assign permissions for who can do what. You will also know about the search capabilities offered by Alfresco, how to search contents and how search works in Alfresco.

Chapter 4, Rules—the Smart Spaces: It will help you learn how to make your Alfresco repository dynamic, how to implement your business requirements that works automatically in the repository. You will understand how to create and apply rules in the repository; you will also be familiar with different actions that can be performed via a rule.

Chapter 5, Administering Alfresco: It contains recipes for administering Alfresco, demonstrating how to manage users, user groups, create taxonomies, manage content categories. You will also be aware of how to use the Alfresco Node Browser to view and search contents stored in the repository. You will also know how to manage your Alfresco explorer dashboard.

Chapter 6, Customizing Alfresco Web Client: Alfresco offers customization of the Web Client application via a number of XML configuration files. This chapter elaborates various recipes for changing the view and appearance of the web client, customizing the application as per your requirements, and so on.

Chapter 7, Alfresco Content Model: Designing and modeling the content properties and architecture is one of the most important requirements in a content management system. Alfresco offers dynamic capabilities for designing the content models. Using these recipes you will be able to understand the core architecture of Alfresco content models, create your own custom content models, use your custom models in the Alfresco explorer application.

Chapter 8, Alfresco JavaScript API: Alfresco offers the repository functionalities in form of JavaScript APIs. In this chapter, you will understand the API structure and features offered. Several example recipes help you implement various functionalities. You will also learn how to write, execute, and debug scripts written using the APIs.

Chapter 9, Freemarker Templates: Freemarker Template is the presentation layer technology used in Alfresco applications. The recipes of this chapter would help you understand the technologies and model behind the Freemarker templates in Alfresco. Several template examples are included for commonly-used functions such as displaying folder contents, showing workflow tasks, showing contents recursively, displaying content properties and details, and so on.

Chapter 10, Web Scripts : Alfresco Web Scripts provide RESTful APIs of the repository services and functions. The chapter elaborates all related concepts, knowledge and how-to do it recipes that would help you write, deploy and debug web scripts. You will also understand the usage of default web scripts library that come with Alfresco. Several sample web scripts are included, for example sending e-mails using templates, searching and displaying documents, and so on.

Chapter 11, Working with Workflows: Workflow implementation is one of the major requirements in a content management system in a business. This chapter would help you understand the Alfresco business process engine in detail. You will understand how the workflows are implemented in Alfresco repository along with various components of the workflow engine. Several detailed examples and recipes are included to guide you create custom workflows, custom task models, specific resource bundles, customizing the web client to render the custom tasks and workflows properly. You will also be able to use the Alfresco workflow console interface which is useful for debugging the task execution within the BPM engine.

Chapter 12, Integrating with MS Outlook and MS Office : Alfresco can be used from several other applications and interfaces. Being a content management system, it is quite important to have the Alfresco repository accessibility from some popular content authoring applications such as Microsoft Office. This chapter helps you integrate the Alfresco repository with MS Word, Excel, and PowerPoint. Recipes are also included for communicating with repository directly from any standard e-mail client application such as MS Outlook.

Chapter 13, Configuring Alfresco E-mail and File Servers: The Alfresco repository can act has file servers as well and you can expose the repository using several other standard protocols such as FTP, CIFS, WebDAV, and so on. These recipes are a step-by-step guide to configure these protocols and using the content repository from different systems. From this chapter, you will also be able to use Alfresco as e-mail server, and e-mails sent to some specific address will land directly into the repository.

Chapter 14, Building Alfresco: Until now you have used Alfresco as the binary bundle provided and downloaded. Now you can compile and build Alfresco source code also. Recipes in this chapter will guide you to get the source from Alfresco source code repository, compile and build the source code. You can modify Alfresco source code as your will; of course as per Alfresco license, you should contribute your changes back to Alfresco community.

What you need for this book

The software list for this book is as follows:

  • Tomcat server

  • MySQL server, MySQL Workbench, MYSQL GUI Tools, SQLYog

  • JDK

  • WinZIP or WinRAR

  • OpenOffice

  • MS Office, MS Outlook

  • ImageMagick

  • PDF2SWF

  • Subversion Client—TortoiseSVN

  • Apache Ant

  • Alfresco software

Who this book is for

If you are a software developer interested in content management systems, who wants to work with Alfresco or is already experienced in Alfresco, this cookbook will get you up and running quickly. If you want rapid implementation of Alfresco's most important and effective features then this is the cookbook for you.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We choose our InfoAxon folder for this operation."

A block of code is set as follows:

<imports>
<!-- Import Alfresco Dictionary Definitions -->
<import uri="http://www.alfresco.org/model/dictionary/1.0"
prefix="d"/>
<!-- Import Alfresco Content Domain Model Definitions -->
<import uri="http://www.alfresco.org/model/content/1.0"
prefix="cm"/>
</imports>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<content-types>
<type name="iabook:Product"/>
</content-types>

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Go to Company Home and try to add a new Content.".

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.