cancel
Showing results for 
Search instead for 
Did you mean: 

Separate Content model For Tenants

shibasis
Champ in-the-making
Champ in-the-making
HI,

I am working on alfresco 4.2c community version.
I have enabled multi tenancy & that is working Fine.
All the content stores data working Fine.

Now My issue is I want to create separate custom metadata for each tenants.
So that  Tenant Company A will have some metadata fields &
Tenant Company B will another set.

Currently due to one DB its happening.. Any solution to this..

Please Guide???????????????

Regards
Shibasis

4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator
Hello,

separate content models for tenants are pretty easy to achieve. There are two options to achieve this.
The first is by using the Data Dictionary of a tenant to store your content model. Only tenant of that Data Dictionary will have access to models stored there.
The second would require you to implement a custom dictionary bootstrap which only bootstrap content models when a specific tenant is being enabled / activated (onDictionaryInit() callback).

Regards
Axel

shibasis
Champ in-the-making
Champ in-the-making
Many Many Thanks For your reply..
I have taken first approach
1. Uploaded my Model tenantModelAspect-context.xml in Data Dictionary Model space.
2. Uploaded my web-client-custom-config.xml in corresponding data dictionary
3. reload option in alfresco explorer UI

refered http://wiki.alfresco.com/wiki/Dynamic_Models

But still i am not able to view the changes..
Any specific procedure do i have to follow.

Thanks
Shibasis

afaust
Legendary Innovator
Legendary Innovator
Oh, you're still developing for the Explorer? I have no practical experience regarding tenant-specific dynamic configuration there. For Share I usually use the Surf extensibility feature to include a module with an evaluator that checks for a specific tenant identifier in the user name to include UI configuration specific to a tenant.

Regards
Axel

shibasis
Champ in-the-making
Champ in-the-making
Dear Axel,

Sorry for confusion, I am using Share UI only.

Steps:
1. Created Multi tenancy(A pvt Ltd, B pvt Ltd).admin@abc.com
2. Uploaded my Model with Aspects in Data Dictionary>>Model
3. Uploaded Config in Web Client Extension Folder in Data dictionary
4.Added properties Files in Messages Folder in Data Dictionary
5.log out
6. test..

my changes are not getting reflected.
Am I doing any mistake.

Regards
Shibasis