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.
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.
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.
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!