cancel
Showing results for 
Search instead for 
Did you mean: 

Content model approach

alexv
Champ in-the-making
Champ in-the-making
Hi,

Problem:
There is Java Domain model, which consists of several independent components, composed of several nested objects (not just properties of primitive types). What I need, is to store it in Alfresco in
1) the most appropriate and efficient way (performance matters);
2) content could be easily maintained;
3) search can be done by any property of any object.

I have to approaches:

1. Create new content type per each object in Domain model, where metadata will contain all objects' data, which can be potentially used for search.
Advantages:
It is easy to perform indexed search. (3 is ok)
Disadvantages:
Versioning becomes unobvious thing, since all objects of the component should be versioned synchronously. (1 and 2 is not ok)

2. Store all the content in XML, with separate XML per each independent component.
Advantages:
No need to create new vast content alfresco data model. Easy versioning as a result. (1 and 2 ok)
Disadvantages:
Content is not so applicable for indexed search as metadata is. (3 is doubtful)

Personally I tend to use Approach #2.

So here us the question:
Is it possible to store content in XML, but make a flexible search within content (e.g. xpath) and extract the part of data on demand?

Appreciate any thoughts and ideas about this.

Thanks for help,
Alex.
3 REPLIES 3

rogier_oudshoor
Champ in-the-making
Champ in-the-making
If you don't mind going low-level, you can probably achieve your results by using the AVM store. Unlike the regular store, which versions each item seperately, AVM versions as a store (much like SVN does). It does mean you'll have to code everything in JAVA and that it's only visible in the Web Client as a WCM site … but it'll show up in CIFS & Flex Spaces.

alexv
Champ in-the-making
Champ in-the-making
If you don't mind going low-level, you can probably achieve your results by using the AVM store. Unlike the regular store, which versions each item seperately, AVM versions as a store (much like SVN does). It does mean you'll have to code everything in JAVA and that it's only visible in the Web Client as a WCM site … but it'll show up in CIFS & Flex Spaces.

Thanks for you reply!

I'm going to access repository using Web Services API (and java-web-services-client) and Web Scripts.
I couldn't find any Web Service for AVM access. Or am I missing something about it and it is enough to use Repository+Content+Authoring Web Services only?

rv_a_sharma
Champ in-the-making
Champ in-the-making
Hello,

I am looking for something very similar to this. I need to do a metamodel for the Enterprise Search ?

Any suggestions on the technique we should use for this.

Regards,
Ravi Sharma