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

How to create a search Action in Alfresco

I am using Alfresco Enterprise 6.2. Similar to the live search, I am creating a search Action for folders that I have in document library. I have updated the custom-actions.js as follows: onActionSearch: function dla_onActionSearch(record){ …
4
votes
3 answers

Find reason why a file fails to get indexed?

How to find a reason why a file failed to get indexed in Alfresco?
Sachin Singh
  • 99
  • 12
4
votes
2 answers

Email template changes in Alfresco

I'm trying to edit the link of the task-edit of the e-mail that is sent to the assignees of the task. I see that in the file wf-emails.html.ftl but in Data Dictionary -> Email Templates -> Workflow Notification inside Alfresco admin account. How can…
PRVS
  • 1,612
  • 4
  • 38
  • 75
4
votes
1 answer

How to Track deleted file in alfresco

I do not know this question is common or not. I want to track record of those files that is deleted in trashcan.I just read that after deletion it will go in content-store.Deleted so from where how can i get the details of deleted files.
Sachin Singh
  • 99
  • 12
4
votes
1 answer

Alfresco - Approve task in a workflow

I'm integrating an applet on a workflow in the Alfresco. I created a new button org/alfresco/components/form/controls/workflow/activiti-transitions.ftl here ...
PRVS
  • 1,612
  • 4
  • 38
  • 75
4
votes
2 answers

How to Migrate data from D2 documentum to alfresco?

I have some content in D2 Documentum. and i want to migrate all those content with meta-data in alfresco. can any one help me. how can i achieve this in alfresco. Thanks in advance.
Deepak Talape
  • 997
  • 1
  • 9
  • 35
3
votes
1 answer

Alfresco - Context Initialization Failed at startup process

I have Alfresco Community Edition 5.2 I am getting the following error at catalina.out file, after computer restart ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed…
3
votes
3 answers

I need to create a model like a sql table on alfresco

I need to create a model for cities that contains only the fields id, city name, like a sql table but without creating a file that is not inheriting any Alfresco model (content, folder, etc). I can do that? or it is obligatory to inherit from the…
yussenn
  • 577
  • 1
  • 7
  • 11
3
votes
1 answer

How to get Aspect specific properties using Open CMIS

I am doing content migration activity. in that i am able to migrate actual content from one repository to other. but i also want to migrate meta-date for same. I have some aspect's associated with my content and every aspect is having some…
3
votes
2 answers

How to get more than 1000 Documents By Using CMIS Query

By using CMIS Query i am only able to fetch 1000 documents. But i want to fetch all the documents available in the repository. I read some solution regarding this, that we can make some configuration in repository.properties file and get the…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
3
votes
1 answer

Alfresco Aikau - creating list for view

I have been working through the Aikau tutorials on Github but can't work out how to create a list that I can pass on to a view. The requirement is to select all workflow tasks for all users and display the results. I have added the following widgets…
user1398017
  • 149
  • 1
  • 1
  • 4
3
votes
2 answers

Alfresco Restful API to get custom metadata

We are moving to Alfresco Content Management system and there is no direct documentation for retrieving custom metadata. Is there a way to get custom metadata/ custom properties that I have added to Record category in Alfresco Records Management…
Jenny
  • 345
  • 3
  • 5
  • 15
2
votes
1 answer

Alfresco search by xpath in the javascript console

I've trouble starting to learn how to perform queries in alfresco xpath. I'm working in the alfresco javascript console as a prototipization and for proof of concept. The final goal is to find all children of a node of a certain type (in my case,…
2
votes
2 answers

How to get all the documents uploaded by the user in alfresco

I am new to alfresco. Is it possible to get list of all the documents created and uploaded by the user and populating these values in a custom dashlet?
2
votes
0 answers

Disable Alfresco rest api basic auth popup

I am using Angular Version 6 & Alfresco community version 5.2 "@alfresco/adf-content-services": "2.6.1", "@alfresco/adf-core": "2.6.1", Is there any way to disable alfresco rest api basic auth popup? I am calling alfresco webscripts from…
1
2 3
23 24