06-20-2009 09:44 AM
06-24-2009 01:29 PM
06-24-2009 04:54 PM
Ok,
I got the problem.
I have to implement a web application that let me make the login(and it's not a problem) and let me show to the final user (in a jsp) all the files in a specified alfresco's folder AND IN ALL OF ITS SUBFOLDER.
For example, if i have a folders' structure like this:
Folder1
|
|——–Folder2
| |
| |—–Folder3
|
|——–Folder4
| |
| |—–Folder5
| |
| |———Folder6
|
|——–Folder7
if I click on the link corresponding to the Folder1, I have to make a query to alfresco and list all the file contained in Folder1, Folder2, Folder3, Folder4, Folder5, Folder6, Folder7.
I think that I have to use Web Services and WebScript.
Can u please tell me which methods I have to use and which the right logic to make the trick?
Thanks a lot.
06-25-2009 08:00 AM
Ok,
I got the problem.
I have to implement a web application that let me make the login(and it's not a problem) and let me show to the final user (in a jsp) all the files in a specified alfresco's folder AND IN ALL OF ITS SUBFOLDER.
For example, if i have a folders' structure like this:
Folder1
|
|——–Folder2
| |
| |—–Folder3
|
|——–Folder4
| |
| |—–Folder5
| |
| |———Folder6
|
|——–Folder7
if I click on the link corresponding to the Folder1, I have to make a query to alfresco and list all the file contained in Folder1, Folder2, Folder3, Folder4, Folder5, Folder6, Folder7.
I think that I have to use Web Services and WebScript.
Can u please tell me which methods I have to use and which the right logic to make the trick?
Thanks a lot.
Hi,
For getting the files contained in the folder, you'll probably need to create your own webscript that "searches" for the files contained. What you need to do is get the NodeRef ID of the folders and pass it in to the webscript (the one you'll make) and in that webscript you write use something like search.luceneSearch. You can then pass the results via freemarker back to your customed UI side.
Question:
Can you tell me how does your Login work? Were you able to call Alfresco webscripts after logging in (without having to log in again, meaning the ticket remains)?
Thanks
06-25-2009 04:27 PM
06-26-2009 05:02 AM
http://localhost:8080/alfresco/service/sample/folder/Company%20Home
This webscript is deployed here (from JSF Client):Content Retrieval (getContent)
GET /alfresco/service/api/node/content{property}/{store_type}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/path/content{property}/{store_type}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/avmpath/content{property}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/content{property}?a={attach?}
GET /alfresco/service/api/path/{store_type}/{store_id}/{id}/content{property}?a={attach?}
Hope this helps.
06-29-2009 09:06 AM
Alfresco WebScript use Foundation Services API and then all the contents that users see are profiled correctly according to Alfresco permission and roles.
You can take a look at Folder Webscript, this is a sample webscript that you can use to create your own webscript:This webscript is deployed here (from JSF Client):http://localhost:8080/alfresco/service/sample/folder/Company%20Home
/Company Home/Data Dictionary/Webscripts/org/alfresco/sample
If you want to get a content you can use one of these urls that are based in an unique webscript:Hope this helps.Content Retrieval (getContent)
GET /alfresco/service/api/node/content{property}/{store_type}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/path/content{property}/{store_type}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/avmpath/content{property}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/content{property}?a={attach?}
GET /alfresco/service/api/path/{store_type}/{store_id}/{id}/content{property}?a={attach?}
company_home/folderX/folderY/folderZ
which lines of code i have to write to have a reference to the folderZ?06-29-2009 11:54 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.