cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Aspect on the FLY

nirvanvjain
Champ on-the-rise
Champ on-the-rise
Hi Alfresco Folks,

As far I have knowledge of Alfresco, Alfresco doesn't support dynamic (on fly) changes of/in content model. Infact any JAVA/J2EE base application do not support XML changes on fly as till server reastart it won't be reflacted in your application.

There is one requirement in our module that adding aspect dynamically based on the values come from front end create dynamic aspect and apply to the node and check-In the document. Is this anyhow possible in Alfresco? or my understanding is correct .!

Please guide.

Regards,
Nirvan
2 REPLIES 2

sujaypillai
Confirmed Champ
Confirmed Champ
Hello Nirvan,

If you look at this url http://localhost:8080/alfresco/faces/jsp/admin/repoadmin-console.jsp you may find many options to deploy a model file without restarting Alfresco. So my understanding is that with some custom java class that can be achieved.

Please refer to RepoAdminService.java  from SVN at path - root\projects\repository\source\java\org\alfresco\service\cmr\admin


Hope so that helps you!!!

Thanks,

nirvanvjain
Champ on-the-rise
Champ on-the-rise
Hi Sujaypillai,

Thanks for your such a valuable answer.

I really appreaciate your support for adding some "value-add" to my alfresco knowledge.

I went through that repoadminconsole.jsp in the moring through Dynamic model link of wiki but the problem is we have created around 15-16 aspect for particular specific content type as in we would apply one of the aspect from those 16 aspects to only specific content type's document.

Now that aspect number can be increased in future so client wants us to make it flexible and dynamic model like

Is there another flexible content modeling option to support this requirements with no fixed number of max aspect?

Adding a content model dynamically its completely fine or  we can do by getting some downtime but
how to add dynamic aspect or properties or constraint to a deployed particular content model say xyzModel.xml ??

Is this possible ?

Request you to please let me know if more information on this is required from myside.

Thanks!
-Nirvan