cancel
Showing results for 
Search instead for 
Did you mean: 

How to list programeticly list of files

yasir_mahmood
Champ in-the-making
Champ in-the-making
Hi,
I have to program a task (method) that displays the list of files that a user can read/Write. I am very new to Alfresco World. I have tried to run and study SDK Samples. But I could not find any example to perform the above task. I will use this list to allow the user to select and then do the operation (open, edit, etc.) on it.

Has any body done this before? I need help. please inform me about the helpful docs.Any code example that can help to start with.

Regards

Zulfi
6 REPLIES 6

sdavis
Champ in-the-making
Champ in-the-making
Not sure of an exact module offhand, but you can find more code under http://forge.alfresco.com/

jpfi
Champ in-the-making
Champ in-the-making
Hi,
which way do you want to access the alfresco repository? If you're in the same java vm process, you could directly use the alfresco Foundation services API (a plain java api based on the alfresco spring service beans like nodeService and contentService).
If your aren't in the same java vm process you should use the WebServices API (SOAP) or the more lightweight WebScript API (RESTful Services) instead.
Use this page at your starting point: http://wiki.alfresco.com/wiki/Developer_Guide
and perhaps take a look at jeff potts famous developer article series: http://ecmarchitect.com/alfresco-developer-series
Cheers, Jan

yasir_mahmood
Champ in-the-making
Champ in-the-making
Thanks for your help. I tried the Develper series. First I had to get rid of al lot of errors to run the examples. Lator on I was able to run SomeCoDataCreator ( I have passed the argumnets admin admin sample_folder doc FileName) and others  but there was exception

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
   {http://www.alfresco.org/ws/service/repository/1.0}RepositoryFault:<ns1:errorCode>0</ns1:errorCode><ns1:message>java.lang.IllegalArgumentException: Class {http://www.someco.com/model/content/1.0}doc has not been defined in the data dictionary</ns1:message>
   {http://xml.apache.org/axis/}exceptionNameSmiley Surprisedrg.alfresco.repo.webservice.repository.RepositoryFault
   {http://xml.apache.org/axis/}stackTrace:
………………..
……………….
………………

at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.update(RepositoryServiceSoapBindingStub.java:986)
   at org.alfresco.sample.webservice.SomeCoDataCreator.create(SomeCoDataCreator.java:77)
   at org.alfresco.sample.webservice.SomeCoDataCreator.main(SomeCoDataCreator.java:40)


Please do help me to solve the problem. I will be gratefull to you.
Regards
Yasir Mahmood

jpfi
Champ in-the-making
Champ in-the-making
Hi,
it seems that you haven't registered your content Model:
{http://www.someco.com/model/content/1.0}doc
Cheers, Jan

yasir_mahmood
Champ in-the-making
Champ in-the-making
How to register content Model. I am new to Alfreco,I don't know these basic tasks. Will you please tellme how to register the content model?
Thanks

Yasir Mahmood

jpfi
Champ in-the-making
Champ in-the-making