cancel
Showing results for 
Search instead for 
Did you mean: 

API for changing content model?

karel1980
Champ in-the-making
Champ in-the-making
2 beginner questions:
* Is there a way to change the content model at runtime?
* is there a API for changing the content model?

So far I have only found this wiki page about content modeling: http://wiki.alfresco.com/wiki/Data_Dictionary_Guide
perhaps I just haven't found the right documentation.
1 REPLY 1

janv
Employee
Employee
Dynamic models can be changed at runtime (please refer to http://wiki.alfresco.com/wiki/Dynamic_Models) using Share and/or Explorer UI. They can also be updated via RepoAdminService API albeit by updating the complete XML model.

FYI, the DOD5015 module also introduces the RecordsManagementAdminService API for certain specific model updates within the context of RM, eg. to add a custom property or to change list of values. If you're interested in the implementation then take a look at RecordsManagementAdminServiceImpl.java (readCustomModel / writeCustomModel).

Regards,
Jan