How to list programeticly list of files

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 12:55 AM
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
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
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2008 05:20 AM
Not sure of an exact module offhand, but you can find more code under http://forge.alfresco.com/

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2008 11:35 AM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2008 02:48 AM
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/}exceptionName
rg.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
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/}exceptionName

{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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2008 03:31 AM
Hi,
it seems that you haven't registered your content Model:
it seems that you haven't registered your content Model:
{http://www.someco.com/model/content/1.0}doc
Cheers, Jan

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2008 05:56 AM
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
Thanks
Yasir Mahmood

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2008 06:13 AM
Hi,
take a look here: http://ecmarchitect.com/archives/2007/06/09/756
and here: http://wiki.alfresco.com/wiki/Developer_Guide#Creating_new_Content_Models
Cheers, Jan
take a look here: http://ecmarchitect.com/archives/2007/06/09/756
and here: http://wiki.alfresco.com/wiki/Developer_Guide#Creating_new_Content_Models
Cheers, Jan
