cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing WCM Content through Java backed Web Scripts

himanshu
Champ in-the-making
Champ in-the-making
Hi,
How do I access contents stored in a web project by using Java backed web script?

The things i need to achieve are:
1) Get a list of all the files in a particular folder/space in a web project.
2) Search for a particular file in the web project using its file name and not its reference.

Please help…

Thanks in advance

Regards

Himanshu
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
Do you really need a Java Backed web script?  We at Alfresco are finding that script backed web scripts are the way to go for most requirements.

If you really want a Java implementation look at the RemoteStore class which does what you are looking for.       Please note that in my opinion this class needs rework or replacing,  but it does the job.

Alfresco 3 already has the web scripts you are looking for and Alfresco 3.1 should have more scripts in this area.

mrogers
Star Contributor
Star Contributor
Addition to above posting, look at the subclass AVMRemoteStore as well as RemoteStore.

himanshu
Champ in-the-making
Champ in-the-making
Hi,

Thanks again mrogers for the guidance and showing me the way.

I have tried to document the way i was able to achieve this task in the form of a blog at :
http://blog.intelligrape.com/?p=25

This may not be the best way for retrieving contents.

Your feedback and  suggestions are welcome.

Regards
~~Himanshu Seth~~

http://www.IntelliGrape.com

mrogers
Star Contributor
Star Contributor
I took a look at your document, it looks O.K, and is a good document.    I'm glad you managed to sort out your requirement. Smiley Happy

You may also be interested in taking a look at the next version of Alfresco which has new interfaces to work with WCM, they are on HEAD now.    And your feedback and suggestions are welcome too!