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

web-script Alfresco for getting list of noderef with given aspect

Alfresco 5.1 Enterprise. I have JS-script: var def = { query: 'ASPECT:"cont:overdue" AND ASPECT:"cont:subject"', language: "fts-alfresco" }; var nodes = search.query(def); for each(var node in nodes) { print(node.nodeRef); } It…
0
votes
0 answers

Find list of unencrypted nodes from Alfresco Content store

I have tried to query my DB to find nodes that are unencrypted that are not in alf_content_url_encryption. Due to the large volume of data (in the millions) it has returned an error. I am looking to create a Java Backend to do this but am unsure on…
0
votes
0 answers

Is it possible to copy the version history of NodeRef in Alfresco?

I am new in Alfresco, hope someone could explain to me some open questions that I have. Imagine that we have one base NodeRef. What if I create a duplicates (copies) of that base Node. Can we copy all the versions from version history from that base…
Mike1988B
  • 57
  • 5
0
votes
1 answer

How to get NodeRef of specific folder in Alfresco share using javascript?

I am working on Alfresco project for some time. This is my first time facing Alfresco, so the help will be useful. I need to get a nodeRef of specific folder from one site using JavaScript. I have not prepare any code, sorry for that, but I haven't…
0
votes
0 answers

How to solve Invalid property value in Alfresco

I have introduced two new fields inside Alfresco using Model manager, those fields are List of values. After I run the application, and try to edit a file that contains those fields I get this: The reason is not familiar to me, because this is not…
0
votes
1 answer

How can I wrap parameter value in URL to include parameter separator

I am working on project in alfresco, and need to send a value as a keyword to do the search. Now, my question is, can I wrap that value somehow to include & separator also? My URL looks…
Mike1988B
  • 57
  • 5
0
votes
1 answer

How to connect to alfresco using Alfresco api?

I'm following this tutorial: https://www.alfresco.com/abn/adf/docs/tutorials/working-with-data-table/ here is my mydatatable.component.ts import { Component, OnInit } from '@angular/core'; import { AlfrescoApiService } from…
0
votes
0 answers

Alfresco CC'd email recipient never added with MailActionExecuter (Java workflow webscript and ActionService)

I'm trying to determine where the error may be with my current attempt at sending emails from an Alfresco Java workflow task (TaskCreateListener). It all seems to work fine, however when adding a CC recipient the email never arrives*. Also when the…
StephenL
  • 122
  • 1
  • 11
0
votes
1 answer

Alfresco Document download url not working

I have a fresh-installed Alfresco Community v6.1.1. I need to be able to share a folder (and its files). I understand no such feature is available stock from Alfresco Share, and thus, I downloaded and installed a folder-sharing extension I found on…
0
votes
1 answer

Alfresco V5.2 - How to get current page url in a live search webscript

In the search part, I need the search to be limited only to the current directory or location of the user. Suppose, if I am in a directory on a specific site, just search from there down the directory tree. To which I am trying to modify the…
0
votes
2 answers

Alfresco REST Core API update Version metadatas

I want to update the metadata of a specific version of a file in Alfresco. How can I update node version metadatas using Alfresco REST API ? In This endPoint : [ base url: /alfresco/api/-default-/public/alfresco/versions/1 , api version: 1 ] I can't…
CHHIBI AMOR
  • 1,186
  • 2
  • 13
  • 27
0
votes
2 answers

companyhome not defined error in bundle service *.post.js file in Alfresco Share

I have a custom service /hayts the processes file uploads and metadata. the same files work when following the MultiPart Forms Tutorial. However, when I bundle the files into My Share application. I can load the form submit it to upload the file. …
Raystorm
  • 6,180
  • 4
  • 35
  • 62
0
votes
1 answer

Custom Alfresco Model with UUID default value

I want to add a new property to the alfresco model which will have the node-uuid as default value. Dossier Nemo cm:folder
0
votes
1 answer

Alfresco folder rule to create publicly sharable link for the children

I am using Enterprise Alfresco. I want to have a rule on my folder that will create a publicly shareable link whenever a new document created in the folder. The sharable should be the same as what we can create using the share ui. Any help will be…
Sam
  • 2,972
  • 6
  • 34
  • 62
0
votes
1 answer

How to access document properties from a webscript in Alfresco?

I am using Alfresco Enterprise 6.2. I want to restrict a document upload and display a pop up message if a document title contain a certain text. I have looked at upload.post.js and could not see document properties containing titlr, description…
SkyBlue
  • 267
  • 1
  • 4
  • 15