cancel
Showing results for 
Search instead for 
Did you mean: 

How to manage a custom content type

manuelgentile
Champ in-the-making
Champ in-the-making
I want to use Alfresco to store, create, edit, search etc etc a specific content type.
I need help to undestand the right way, to do that.
In particular…
I have a specific xml schema …..
1) so to store this kind of xml data i have to define a custom model
2) the i have to create some java beans to allow the editing of this kind of xml data through jsf pages
right???
I try use Jaxb to create java beans from xml schema…and this work fine….

now i have some confusion about the right way to solve this kind of problem…

Moreovoer, I read a lot about future Alfresco Xforms features….


thanks for any suggestion!!!!!
3 REPLIES 3

manuelgentile
Champ in-the-making
Champ in-the-making
I need to implement a solution before the end of september…..

🙂

anweber
Champ in-the-making
Champ in-the-making
Hello Manuel,

    The "normal" way to define a custom type in Alfresco, is to extend the dataModel (see http://wiki.alfresco.com/wiki/Data_Dictionary_Guide).

   In your case, if you have to store XML instances, you could instead store it as content of simple files (or other Alfresco objects) and manage the serialization yourselves.  If you do that, you will lost some search capabilities on object's properties (because your data are not mapped to object's properties).  It could be a good solution if your XML structures are complex.  But if your data structures are simples, I think it should be better to use the extension of the Alfresco data model.

         Regards,

               Andre

manuelgentile
Champ in-the-making
Champ in-the-making
Thanks Andre
My strucutre is a bit complex…. but i don't wat to store xml file as a content file.
The Alfresco data model is not very useful for xml data yet,
it doesn't' support xml import if a model is not already defined for example.

I hope in a schemaToModel tool and in the xform features.
Hovewer I have a due date for september… Gavin, Kevin have you some advices?
What's the right way!?!?