Questions tagged [alfresco-webscripts]

Web scripts provide a way to write small extensions to Alfresco using JavaScript and FreeMarker.

Alfresco web scripts provide a unique way to programmatically interact with the Alfresco content application server. Unlike other interfaces exposed by Alfresco, web scripts offer a RESTful API for the content residing in the content repository. The REST (Representational State Transfer) web architecture is based on HTTP requests and responses, URIs (Uniform Resource Identifiers), and document types. Web scripts let you implement your own RESTful API without tooling or Java knowledge, requiring only a text editor. This approach to developing an Alfresco API means that web scripts offer many advantages over existing technologies, including ease and speed of development, and flexibility in API design. By focusing on the RESTful architectural style, web scripts let you build custom URI-identified and HTTP accessible content management web services backed by the Alfresco content application server.

Web scripts provide RESTful access to content held within your Alfresco content repository. You can place controls on your content to manage it and provide uniform access for a wide variety of client applications and services, such as a browser, portal, search engine, or custom application. Because of the inherent distributed nature of this interface, all Alfresco content repositories within the enterprise can resemble one logical collection of inter-related documents (like the web), letting you apply web technologies such as caching, authentication, proxies, and negotiation to your repository resources.

You can build your own RESTful interface using lightweight scripting technologies (such as JavaScript and FreeMarker), allowing you to arbitrarily map any content in the repository to resources on the web, or you can use out-of-the-box web scripts that already encapsulate many of the mappings. The Alfresco CMIS (Content Management Interoperability Services) AtomPub binding is implemented as a series of web scripts.

You can use web scripts for various solutions, such as:

  • Integrating Alfresco with third party systems Providing feeds
  • Developing data services Developing UI services such as portlets
  • Customizing search Acting as a back-end to client tools, such as
  • Orbeon Forms Integrating with Microsoft Office
  • Developing Facebook applications
  • Building UI components in Alfresco Surf

Source: http://docs.alfresco.com/5.1/concepts/ws-overview.html

352 questions
0
votes
0 answers

Setting a parameter request in alfresco webscript

In the source code below: @Override protected void execute(WebScriptRequest request, Map params, JSONObject resultat) throws Exception { String user = request.getParameter( PARAM_USER ); //Need to set the parameter here using instruction like …
aoulhent
  • 301
  • 1
  • 4
  • 18
0
votes
2 answers

How to retrieve versioned document's content in Alfresco by REST API?

Is there a way to retrieve versioned content of document? Possibly by native Alfresco's REST API.
Matteo Calò
  • 361
  • 1
  • 2
  • 15
0
votes
0 answers

Auto sync content from one alfresco to other and vice versa

I have two servers with alfresco installed. Now i want to sync the data from one alfresco to the other, automatically on timely basis. So that it becomes complete replica in case of server failure. How can i do that? Any web-scripts or similar…
Redone
  • 1,253
  • 5
  • 18
  • 37
0
votes
0 answers

import Excel sheet Data into Alfresco Datalist

I have more than 1000 records in excel sheet. now i want to add those records into data list in alfresco. But it seems to be very bad practice to copy those records one by one to data-list. so is there any way to import all records from excel to…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
0
votes
2 answers

Alfresco community 5.1.x workflow form add input fields dynamically

I am using Alfresco Community 5.1.x. I want to create a custom workflow using kickstart in that one of the forms I have + button when + button add text fields dynamically. Is this possible? How?
Paul
  • 141
  • 1
  • 11
0
votes
1 answer

Create Dependent Attributes based on some selection in alfresco for document property page

I have one property page in alfresco. In property page i have one drop-down list and below drop-down list some other text-fields are there. Now my requirement is that, based on selection i want to change below text-fields. Means i want to show or…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
0
votes
1 answer

Alfresco 5.0C advanced search Get slingshot search parameters

When you make an advanced search in Alfresco it returns a json response with results executing the script http://localhost:8080/share/proxy/alfresco/slingshot/search/?facetFields=.. I have add a button in the aikau advanced search results page and…
mr antoni
  • 595
  • 1
  • 6
  • 17
0
votes
1 answer

alfresco webscript not executing code

im trying to run a java based-webscript in alfresco. In my first step I just want to print "hello world" using the response output stream.The main problem I face is that the code is not being executed.I have tried to set breakpoints in the code but…
0
votes
1 answer

Extend OTB slingshot search Webscript Alfresco 5.0 C

I want to add a csv response template to the default slingshot/search? web script which is inside in a jar (Alfresco remote api). Already l have an ant script which build a jar inside Alfresco/tomcat/shared/lib Inside this jar l have define an…
mr antoni
  • 595
  • 1
  • 6
  • 17
0
votes
1 answer

Find user's favorites in Alfresco

I am using Alfresco 4.2 and trying to find some user's favorites but the webscript that I'm using returns the results only for the current user. The user that I am investigating exists, I am sure. What should I do? What am I doing wrong? Here is…
newzad
  • 706
  • 1
  • 14
  • 29
0
votes
1 answer

How to use cURL in Windows to upload a file to Alfresco?

I'm trying to upload a file to Alfresco WS restful, using a command as follow: C:\Users\user>curl -v -k -X POST --user admin:admin -F filedata=C:/temp/wpapper.pdf -F siteid=documents -F containerid=documentLibrary -F uploaddirectory=PUBLIC …
Fabricio
  • 366
  • 6
  • 20
0
votes
2 answers

Alfresco Community edition 5.1.x, how can I enable tooltips for text-field

I am using alfresco community edition5.1.x I have create workflow using kick-start in workflow form I need enable tooltips for some text-fields. How can I achieve this?
Paul
  • 141
  • 1
  • 11
0
votes
1 answer

Save profiles / files Alfresco

I want to uninstall Alfresco and re-install again, but I don't want to loose the accounts created in Alfresco and the other things. Is there any way to save this ? Thanks!!
PRVS
  • 1,612
  • 4
  • 38
  • 75
0
votes
1 answer

Alfresco workflow form Add two textbox values and display the sum in a third textbox automatically

I am new to alfresco i have create workflow using kickstart i deploy into alfresco share it is working fine ,In workflow form i need multiply two text-box values.I want the result of multiply to appear in the 3rd textbox,as soon as enter the values…
JohnPaul
  • 714
  • 5
  • 14
0
votes
2 answers

Calling custom method from core interface

I am extending a DbNodeServiceImpl class and try to Override a method named public void setProperty(NodeRef nodeRef, QName qname, Serializable value). When I am trying to call the method with the help of nodeService interface its calling the default…