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

alfresco files thumbnail view not appearing

Hi I am new to alfresco and trying to fix a prod issue, all of a sudden files(mostly jpeg/png) uploaded earlier(before 1 months) cannot be viewed under folder and it is showing as empty folder. but when i click on download it is downloading the full…
0
votes
1 answer

How do I setup/edit Alfresco Source Code from the Github Repo

im completely new to working with open-source software and at the moment I am very lost. I understand that the source code is located in the Alfresco repo on Github(https://github.com/Alfresco). What I'm trying to do is aquring Alfresco Community…
0
votes
1 answer

Site and Object mapping is not working after Salesforce and Alfresco integration

I have integrated Alfresco with Salesforce using Salesforce content connector app, and I am also able to see all Alfresco repository contents in Salesforce, but I am not able to do Site and Object mapping in Salesforce. I am able to see all alfresco…
0
votes
1 answer

How to attach a file to emails? Alfresco

How do I attach files (for example, workflow packageItems files) to an email? I tried to use this code, but the files are not being attached. What am I doing wrong? How to attach a file to the email? 1.SendEmailDelegate …
Gercio_J
  • 32
  • 7
0
votes
0 answers

How to limit the Alfresco query result set to Top-N rows only

I need how to get 20 records out of 100 from alfresco in java. Query: +@cm\:categories:"*categoryId*"+TYPE:"{http://www.alfresco.org/model/content/1.0}content Here In this categoryId 100 records in alfresco. But I need top 20 records. Please help…
0
votes
1 answer

Is there any way to configure the QR code scan & store it's data in alfresco repository

Is alfresco content service provides support to scan the QR code in share or via any third-party tool support for it? If yes then please share some steps to achieve it. Thanks in advance.
0
votes
1 answer

Alfresco - Aikau Custom Action

I want add custom action in alfresco aikau search page. I have created extension module. Custom Action In Search Result Page true 1.0
Sanjay
  • 2,481
  • 1
  • 13
  • 28
0
votes
1 answer

Assigning content store using JAVA API

I had posting in alfresco hub , couldnt get solution yet. I was trying to convert javascript API code to java API which move files to different content store(' storeB'). We have storeB defined in - 'content-store-selector-context.xml'. …
0
votes
1 answer

Bulk export of Alfresco content

We are planning to large amount of folders (sites) within Alfresco into a local disk. I have been going through a lot of similar questions and tutorials but can't seem to understand how to initiate a download using the REST API. This is my first…
0
votes
1 answer

Setting the value of protection days for jobs 'ContentStoreCleanerTrigger' and 'NodeServiceCleanupTrigger' in Alfresco 5.1?

I have Alfresco 5.1 server with some unused content in repository and old workflow instances. I'm going to remove this content with UI Alfresco Share/scripts. The clean repo will used as template of database Alfresco (it's catalog data + db). I…
0
votes
1 answer

Upload file size limit with custom webscript on Alfresco Community 5.2

I need help to upload document content back in Alfresco Community 5.2 though a share javascript. The destination noderef is already existing, I upload a new version of a document. I can't use the api/upload web service because I also need to do some…
Fjordo
  • 768
  • 3
  • 18
  • 40
0
votes
1 answer

Email Template Custom Parameter for template property

I'm implementing a simple mail triggering service to notify about workflow tasks to user. I have used the following code under user task and the mail is getting trigerred as expected, but is there a way to access template from S3 bucket URL/link…
Am Novice
  • 325
  • 2
  • 9
  • 21
0
votes
2 answers

alfresco start workflow directly from document library

I use ALfresco 5.2 community edition and I need to start a custom workflow directly from the document details page, though a custom button/action. I've already searched the web and Stackoverflow community, the nearest thing I've found is this but I…
Fjordo
  • 768
  • 3
  • 18
  • 40
0
votes
1 answer

How to create dependent drop-down list in Alfresco process service form?

I have added some values in 2 drop-down lists through options. but they currently there is no any dependency. i want to select second drop-down list values based on first drop-down value selection. What will be the best approach to achieve this in…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
0
votes
2 answers

How can i display content atributes using .ftl? Alfresco

I want to get attributes of a content using an ftl. Does anyone have an example or idea of ​​how to do it. thank you Content Props Workflow Form