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

get Alfresco.util.Ajax.request response.json data from external function

I have an alfresco webscript who return a json response. I have a js function getWorkflowRepositoryContent() who call this webscript and get the data retuned in the response. I store the response.json in an array list. All works fine for me, but…
nmalloul
  • 83
  • 1
  • 11
1
vote
1 answer

Adding custom properties in workflow task at "workflow I have started " page alfresco share

I need to add custom properties in task row at the "workflow I have started" page.By default one task bar/row contains properties such as due,description,type and started.How to customize to add our custom properties along/instead of these…
1
vote
0 answers

Change email templates workflow notifications

I'm trying to change the mail template of workflow notifications, and I also can change the template with the file wf-email.html.ftl of Data Dictionary. But the subject "You have been assigned a task", I don't know how can I change this. How can I…
PRVS
  • 1,612
  • 4
  • 38
  • 75
1
vote
3 answers

Alfresco - Want to Change Content store path

I want to change the existing content store path of my Alfresco instance just because it is about to get full. One solution is to move existing content store at another location and change the path in alfresco.global.properties but I want to write…
Sanjay
  • 2,481
  • 1
  • 13
  • 28
1
vote
1 answer

How to get custom type properties and custom aspect properties using CMIS(java)

I am querying alfresco repository documents from alfresco 4.2. and I am getting the document object successfully. But now I want fetch all the metadata associated with that document. I have some custom content types and some custom aspects Are…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
1
vote
1 answer

How to migrate content from one alfresco repository to other using Open CMIS

I want to migrate all alfresco repository contents from one repository to other. but i don't want the existing folder structure. while migrating i have to validate the content according to some business requirement, and based on content type i have…
1
vote
0 answers

why am i reciving No such content frame exception?

I am trying to auto fill the username and password text field to auto login in to my institution provided account the python script is as followed from selenium import webdriver from selenium.webdriver.support import ui from…
Vidhyanshu jain
  • 341
  • 1
  • 4
  • 16
1
vote
1 answer

After calling alfresco webcsript, Getting HTTP ERROR 504 on production but not on local and DEV

I wrote one Java Backed webscript in alfresco to traverse all documents in one site and check some properties. But After calling that webcsript on Production, I am Getting HTTP ERROR 504 But Same webscript is working on DEV and Local. The reason…
1
vote
1 answer

people method is not working in pickerchildren.get.js Alfresco Community

Using alfresco community 5.0.d. I am suddenly getting below error for people methods in pickerchildren.get.js file. Can't find method org.alfresco.repo.jscript.People.getContainerGroups(org.mozilla.javascript.Undefined).…
nikhil84
  • 3,235
  • 4
  • 22
  • 43
1
vote
1 answer

insert string array in text box alligned row and column wise in alfresco workflow share form

I am setting array of strings(strings dynamic values)in custom property (text box) at alfresco form share.but I need to allign them in proper rows and columns.How to allign dynamic array values in the proper table(inside text box) //Task Script :-…
1
vote
1 answer

show document lib. action for custom type only for particular site specific site alfresco

I need to show doc lib action for specific type (qwe:customtype). change to be reflected at particular site and non site areas(Myfiles/Repository) only. alfrescoShare-slingshot-application-context.xml
k10ml
  • 116
  • 9
1
vote
1 answer

Some Zip files are not extracting properly in alfresco through java code

I wrote java code to extract zip file in alfresco. But through that code some zip files are not getting extracted properly. And i have one more observation, that if i manually unzip that file and again manually create zip file then its working fine…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
1
vote
1 answer

Failed to execute script in Alfresco community 5.0.d

I am using Alfresco Community 5.0.d and facing below error. LuceneQueryParserException with findSites() org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 00180032 at…
1
vote
3 answers

Modify live search in Alfresco Commmunity 5.0.d

I am using Alfresco Community 5.0.d and trying to find the files related to live search. I would like to remove or modify the people finder in live search. Please let me know the files or way to achieve it. Share-header.get.js info is below: if…
nikhil84
  • 3,235
  • 4
  • 22
  • 43
1
vote
1 answer

Alfresco FTS - why first digit of folder's name should be escaped?

I have a question regarding the alfresco FTS/lucene search. It is known that in the search query some special characters have to be escaped, like space (by _x0020_). But it turned out that if folder's name first chatacter is a digit, it should also…
streetturtle
  • 5,472
  • 2
  • 25
  • 43