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

Get children of a node faster with Alfresco Api

I'm using the alfresco api on my Java backed webscript. I have an uuid, and I do a new NodeRef with this uuid and then I use getChildAssoc from NodeService to obtain all the direct child nodes. But on folders with more than 100 subfolders it takes…
Jordi
  • 43
  • 8
0
votes
0 answers

Alfresco Java backed webscript for creating folders does not create folders

I am working on a Java backed webscript for Alfresco that needs to create a folder structure based on the path that is sent to it. Some of the folders that have been sent may already exist and some may not. This is the code I've got: for( int i = 0;…
Loshmeey
  • 341
  • 1
  • 5
  • 18
0
votes
1 answer

Alfresco - How to create a Share web script that uses a Repository web script?

I'm trying to make a webscript on Alfresco Share (and potentially a dashlet) that uses/calls a webscript on the Repository tier. I know I need a description XML file, a javascript and a result page being HTML or JSON. My question is what should be…
Teysz
  • 741
  • 9
  • 33
-1
votes
1 answer

Cannot WebScrape text from image link

I cannot able to webscrape rating percentage from amazon product page. I am getting only null values. Here is my code from typing import Text from bs4 import BeautifulSoup import requests import pandas as pd from datetime import date import…
-1
votes
1 answer

Alfresco Dictionary add a lot of data using javascript

I have a dictionary nodeRef that i know. I need to fill this dictionary with a lot of values, this values have to be imported by hand or using javascript console. Is there a way using javascript console to import this values? For example: var…
john2994
  • 393
  • 1
  • 3
  • 15
-1
votes
1 answer

Logger configuration in Alfresco

Is there a specific onfiguration for logger to print log.info() message ? I have action classes extended quatz class as shown below . but the log is not printing out in log file - alfresco.log . I can see system.out.println in tomcat log…
-1
votes
2 answers

How to find all the files of a particular model in Alfresco

Good morning. I have a task to make a request that would find all the documents of a certain type. After receiving the result, I need to display the fields of all found documents in the table. How can I do that? Thanks for answers.
Kun Aguero
  • 25
  • 3
-1
votes
1 answer

how to implement alfresco custom login component

I'm Following This Tutorial On Alfresco's Platforme and I'm Stuck at this point You would typically connect to the remote authentication mechanism to verify username/pwd... this link to the tuto : Authentication
-1
votes
2 answers

How to use Web Script in Alfresco as a developer?

I am new to Alfresco and using Alfresco 5.2. I started learning it as an ECM and now I can understand the Share interface to some extent. But I need to master Alfresco as a developer, for which I have to nail Web Script. But I am not sure how to…
-1
votes
1 answer

How to add folders in the main folder in webscripts

i need your help, I have created in Share a new type folder, called "TanFolder". it's on documentLibrary. I would like, when i create this folder, three other folders will be created automatically within it Example: every time i create a…
M.Lola
  • 1
-1
votes
3 answers

Access Denied while using nodeService.getParentAssocs() in alfresco

I am getting this error when i am using nodeService.getParentAssocs() in alfresco any idea? > Access Denied. You do not have the appropriate permissions to perform this operation.
Sachin Singh
  • 99
  • 12
-1
votes
2 answers

Alfresco webscript to get the list of all files and folder with their size

Need a js based alfresco webscript to get the list of all folders and files recursively alond with their size.
-1
votes
1 answer

Alfresco: How can I check if a value already exists in DB save new values?

Alfresco In workflow form one fields values. I need to check values already exist in DB or not if exists don't save if not save different values. Is this possible?
Paul
  • 141
  • 1
  • 11
-1
votes
1 answer

Find Out the content of the pdf is indexed or not?

How can i find-out whether the content of a file is indexed or not in alfresco? I am using alfresco-5.0.d.
Sachin Singh
  • 99
  • 12
-1
votes
2 answers

Connection with alfresco cmis

I am trying to connect alfresco using config parameters but i am getting error: Config: sessionParameters.put(SessionParameter.USER, "admin"); sessionParameters.put(SessionParameter.PASSWORD, "admin"); …
1 2 3
23
24