|Support Status||Full Support|
|Architecture Information||Platform Architecture|
|Description||Multi-tenancy is supported by the Alfresco repository. Read more about it here. The TenantService
is used by Alfresco repository code to rewrite NodeRefs,
StoreRefs etc so they include a tenant domain when running in a
multi tenant environment, which makes it possible to handle multiple tenants in
When you use the TenantService in a single tenant environment the methods are either NOOP, return what you pass in, or return empty domain for domain related methods.
|Deployment - App Server||It is not likely that you will deploy Java extensions directly into a Tomcat application server as classes and Spring context files. Use an SDK build project instead.|
|Deployment All-in-One SDK project.||
|Java API||Java API documentation|
The following code shows an example of how a NodeRef and a StoreRef can be rewritten to be multi-tenant aware:
NodeRef nodeRef = "some node reference that needs to be rewritten for a specific tenant domain"; NodeRef tenantNodeRef = serviceRegistry.getTenantService().getName(nodeRef); String store = "some repository store that needs to be rewritten for a specific tenant domain"; StoreRef storeRef = serviceRegistry.getTenantService().getName(new StoreRef(store));
In a single tenant environment these getName operations would have no effect.