Book Image

Alfresco Developer Guide

Book Image

Alfresco Developer Guide

Overview of this book

Table of Contents (17 chapters)
Alfresco Developer Guide
Credits
About the Author
About the Reviewers
Preface
Index

Working with Content Programmatically


Now the repository has a custom model and that model has been exposed to the Alfresco web client. For simple document management solutions, this may be enough. But often, code will also be required as a part of your implementation. It might be code in a web application that needs to work with the repository, code that implements custom behavior for custom content types, code that implements Alfresco web client customizations, or code that implements a controller for a web script.

As mentioned in Chapter 1, there are several APIs available depending on what you want to do. Let's learn how to use code to create content, create associations between content, search for content, and delete content. You'll see a JavaScript example, several examples using the Web Services API with Java, and one example showing the API with PHP. Additional API examples can be found in the Appendix.

Step-by-Step: Creating Content with JavaScript

The first example shows how to...