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
2
votes
1 answer

How to assign workflow task by searching user site wise on alfresco?

How can a workflow initiator assign a task to user by selecting particular site in alfresco?currently it lists all users registered in alfresco ECM, i want it to list the current site users or a provision to select site first and search user…
Faiz
  • 31
  • 3
2
votes
1 answer

Alfresco get data from template

I am using Alfresco Community 5.1, have this freemarker template datatable-property.ftl that contains a table in which some information about the user is displayed as shown in this picture. my question is how can i get that data and display it…
2
votes
1 answer

Can we use Crawler in alfresco repository to find content with specific aspect or property?

I want to fine All content with specific aspect and property value in alfresco. I am trying to traverse All contents in alfresco repository. But Its taking to much time because there are huge number of contents in repository. So I am thinking to use…
2
votes
1 answer

Create and Consume Collections in solr4

Someone suggest me to create multiple collections in solr (lucene) to get faster response from the solr.I am new in this era so can anyone please help me how to create collections in solr and how alfresco can consume those collections. Note- i am…
Sachin Singh
  • 201
  • 4
  • 11
2
votes
1 answer

ProviderNotFoundException when calling Java WebScript

I want to get all the properties of the type cm:person and display it in the table. For this I have Java WebScript. But when I call it I get an exception: net.sf.acegisecurity.providers.ProviderNotFoundException: No authentication provider for …
user1134181
2
votes
1 answer

How to get the ID of the process instance in the controller?

My environment: Alfresco Share v5.2.d (r134641-b15, Aikau 1.0.101.3, Spring Surf 5.2.d, Spring WebScripts 6.13, Freemarker 2.3.20-alfresco-patched, Rhino 1.7R4-alfresco-patched, Yui 2.9.0-alfresco-20141223) Alfresco Community v5.2.0 (r134428-b13)…
user1134181
2
votes
1 answer

cmis or web scripts use?

I want to build a JavaEE GED application using alfresco and activiti Workflow engine which manages and monitors the mail of an organization (Letter, Fax, mail etc.). Since I am new with alfresco I want to know the best way to communicate with…
Wassim Makni
  • 471
  • 2
  • 9
  • 21
2
votes
2 answers

How to Increase Document delete time-out period in alfresco 5.0.d

I am trying to delete some documents from alfresco repository. But its giving time-out Exception. So is there any configuration to increase that time-out period. Or is there any other way to delete documents, in that i will not get read time-out …
Deepak Talape
  • 997
  • 1
  • 9
  • 35
2
votes
2 answers

Alfresco community to listen to https

I am using alfresco community 5.0.d and its installed on AWS. I am able to use it via http but I am not able to use it via https. I have added security listener to https in AWS and also modified alfresco-global.properties as…
nikhil84
  • 3,235
  • 4
  • 22
  • 43
2
votes
0 answers

Retrieve all documents version list in alfresco

Need to fetch list of all documents version. Is there a way to do this with SQL. Also , In a folder , can we find which subfolders have versioned documents in them ? Thanks
user3331349
  • 49
  • 1
  • 7
2
votes
1 answer

How to Update Document properties using CMIS

I have one external web application through that i connected to alfresco repository using CMIS. I am already able to upload document in to repository or able to download n view document. Now my requirement is, I have to Update Specific Documents…
2
votes
1 answer

Alfresco Aikau Login with existing ticket

I have a webscript to upload and list files which I authenticate via alf_ticket generated using login api of alfresco. I redirect my existing webscript to another webscript which is created using Aikau framework and is a stanalone Aikau Client app…
2
votes
2 answers

How to get rendition copy of word document from alfresco repository using CMIS

I created one custom web application. through that i am uploading some document to alfresco repository. i also created one PDF viewer to view document in UI. Now the problem is, i am only able to view PDF type of document, but i am uploading…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
2
votes
2 answers

Alfresco Community edition-5.1 in workflow form text field show and hide for conditions

I am using Alfresco Community Edition 5.1.x. I have created a workflow using kick-start where I have used drop-down list. When selecting the drop-down value, text-field should be enabled based on conditions otherwise the text-field is not showing in…
Paul
  • 141
  • 1
  • 11
2
votes
4 answers

Task edit document preview component Alfresco

First question: I want to implement a preview of the document in the form of the task-edit of the workflows... How can I do this? I try to adapt the document-details.xml and document-details.ftl to workflow-details.xml and workflow-details.ftl but…
1
2
3
23 24