O'Reilly logo

Alfresco 3 Business Solutions by Martin Bergljung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bootstrap APIs

There are several ways to bootstrap the system with custom functionality or new content.

Patches

We can create our own patches and plug them into the system by creating a class that implements the org.alfresco.repo.admin.patch.Patch interface. The easiest way to do this is to extend the org.alfresco.repo.admin.patch.AbstractPatch class that implements this interface and comes with member variables and setters and getters for common services:

public class MyPatch extends AbstractPatch { private ImporterBootstrap importerBootstrap; public void setImporterBootstrap( ImporterBootstrap importerBootstrap) { this.importerBootstrap = importerBootstrap; } @Override protected String applyInternal() throws Exception { StoreRef storeRef = importerBootstrap.getStoreRef(); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required