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

Not able to select a tag in Alfresco Community 5.0.d

I am using Alfresco Community 5.0.d and when I go to edit properties then click on select tag, I get below error in view. org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 00170047 Below is error in console. "status": { "code":…
nikhil84
  • 3,235
  • 4
  • 22
  • 43
0
votes
1 answer

Context initialization failed in alfresco community

I'm using alfresco community 5.0.d and suddenly I'm getting below error in catalina.out while logging in to http://127.0.0.1:8080/share/page/ where else http://127.0.0.1:8080/alfresco is not opening and showing page not found error (404). Error in…
nikhil84
  • 3,235
  • 4
  • 22
  • 43
0
votes
1 answer

Alfresco - Transform Doc to pdf and download custom action

I have created one custom action to convert document to pdf. It worked fine but I want to download converted pdf on click of same custom action , I mean I want to convert and download document on clicking of custom action.How can do that? I…
Sanjay
  • 2,481
  • 1
  • 13
  • 28
0
votes
2 answers

Not able to login to localhost:8080/share and getting error for localhost:8080/alfresco

I have been following tutorials and documentation from alfresco for development and deployment but not able to login. I have all in one sdk and it works fine if I run the ./run.sh file followed with login and other screens popping as normal follow.…
nikhil84
  • 3,235
  • 4
  • 22
  • 43
0
votes
1 answer

Alfresco batch loading service for nodes metadata

In our project we are using Alfresco 4.2-c for content store. We need web service for nodes metadata loading. The required properties that should included in the result are createdOn or modifiedOn. We have the ids of the nodes, which dates should be…
0
votes
1 answer

i want to add attachment file from my computer in alfresco?

enter image description herewhile clicking attachments select button in adding new item in custom data list, I want to add files from windows explorer in client side instead of from server. abve image is adding attachments from server i dont want…
0
votes
2 answers

How to auto-generate a mail with the password created after clicking on "Create User" button in Alfresco New User page?

How can we auto-generate a mail with the new user's password as soon as we click on the create user button in Alfresco New User page. Do we need to create any webscript or action which can redirect to create user action and a corresponding mail will…
APM
  • 29
  • 1
  • 9
0
votes
2 answers

Alfresco : Java delegate how can i all details from DB using acvitit Intance Id

Alfresco DB I have created one column called tid whenever user create workflow the tid generate one key , I want get tid from DB using activitiIntance id ,Is this possible ? Please help out with reference
Paul
  • 141
  • 1
  • 11
0
votes
1 answer

Alfresco : How to get value from Postgresql DB show to workflow from dropdown list?

I have created advanced workflow(Example:- Client name, client code,employees) ,User use the workflow store data's into alfresco database,Now I want get all stored from alfresco once get the data i need use the another workflow drop-down control
Paul
  • 141
  • 1
  • 11
0
votes
1 answer

Connecting to Alfresco Repository using Chemistry cmis without using port

I have a requirement where i need to connect to Alfresco Repository using the below atompuburl https://www.myalfresco.com/alfresco/api/-default-/public/cmis/versions/1.1/atom where www.myalfresco.com is my aws alfresco url. I use the below snippet…
user2361591
  • 153
  • 1
  • 14
0
votes
1 answer

Alfresco : How can I get file from Sites/test/documentLibrary dynamically?

I am uploading an Alfresco file, I need get the file from documentLibrary dynamically, how can I do this? .bpm20.xml is possible. var dest= companyhome.childByNamePath("Sites/test/documentLibrary/"+${trainername}); …
Paul
  • 141
  • 1
  • 11
0
votes
0 answers

File attach to workflow from local machine?

I am using Alfresco community edition-5.1.x,I need to upload file during a workflow. File saved in local machine from the local machine i need attached file to workflow, Please help me Thanks in advance.
Paul
  • 141
  • 1
  • 11
0
votes
1 answer

How to use external AMP in alfresco Maven Project

I'm trying to use the alfresco-pdf-toolkit addon in my Alfresco Maven project, is there anyway to include the amp in the pom.xml file of my project?
Basil
  • 845
  • 9
  • 24
0
votes
2 answers

Alfresco webscripts run from non-admin users getting 401-Unauthorized

I have created webscript in alfresco community edition-5.1.x , When non-admin users run the scripts not working I am getting 401-Unauthorized when run from admin users its working fine, Can any help me how can I run webscript from non-admin users.
Paul
  • 141
  • 1
  • 11
0
votes
2 answers

How to Do Mass Update in Alfresco Using CMIS

Is it possible to do mass update using CMIS in alfresco. I have Different Documents Types and Every Document type is having multiple documents in alfresco repository. Now my requirement is, If i will Update any single property of any document, then…
Deepak Talape
  • 997
  • 1
  • 9
  • 35