cancel
Showing results for 
Search instead for 
Did you mean: 

How to make database calls from Alfresco webscripts

anwar501pasha
Champ in-the-making
Champ in-the-making
Hi All,

I have a business requirement where I need to make the database calls from my Webscripts.

Please can anyone provide me with the link or the solution how this can be achieved.

Thanks & Regards,
Anwar
5 REPLIES 5

norgan
Champ in-the-making
Champ in-the-making
Hi there,
What do you mean by "database access" ? You mean "bypassing the apis" ?
Or how to retrieve data from the repository ? In the second case, start reading the wiki "developement" section about the available APIs, they are almost all about accessing the data.

Norgan

anwar501pasha
Champ in-the-making
Champ in-the-making
Hi,

From webscripts I need to write Jdbc program which will make the database calls.

Thanks & Regards,
Anwar

rogier_oudshoor
Champ in-the-making
Champ in-the-making
Under normal circumstances, you should NEVER call Alfresco DB directly - use the Alfresco Java API. That's why we have it Smiley Wink

norgan
Champ in-the-making
Champ in-the-making
Under normal circumstances, you should NEVER call Alfresco DB directly - use the Alfresco Java API. That's why we have it Smiley Wink

Three things come to mind : Yes, Yes and … Yes

Its like allowing your enduser to edit your schema & metadata fields after production start … it might work (for a while), but might render your system almost useless with the next update/patch.

Norgan

shamabbas
Champ in-the-making
Champ in-the-making
Hi guys,
I want to get my uploaded files name and whenever later want to can retrieve too.

Please let me know how to write query to get the file in webscripts?
I'm really a new bee so please help as soon as possible.

Thanks :?