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
2 answers

How to list the names and size of all folders and files in alfresco? (Oracle 11g database)

I need to fetch information from alfresco database : all folder name all file name size Can someone give me the SQL query for that ?( if possible to get them in hierarchical order) I am using oracle 11g Thanks
user3331349
  • 49
  • 1
  • 7
1
vote
2 answers

how to prevent site A member from seeing other site member alfresco community

I am using Alfresco community 5.0.d. I am looking for a way to prevent Site A member's to search for Site B member's & vice-versa followed with other details of 2 different site's. For instance, siteA members, they should be able to view and select…
nikhil84
  • 3,235
  • 4
  • 22
  • 43
1
vote
1 answer

Passing multiple search arguments to Alfresco slingshot search Webscript

I'm using the below search Webscript in Alfresco one 5.1. http://localhost:8080/alfresco/service/slingshot/node/search?q=@name:somename&store=workspace://SpacesStore&lang=lucene It works fine with free text search & single named parameter. 1) Now…
Venkat
  • 1,264
  • 1
  • 12
  • 21
1
vote
1 answer

How to get more than 100 records from alfresco repository using CMIS

I wrote below Query in CMIS. Query= select * from cmis:document But it returns only first 100 results. Actually in Repository more than 100 results are there. So how can i get All results using same query? I wrote below CMIS Code-- Code= public…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
1
vote
1 answer

How to query All Types of document from Alfresco repository using CMIS

I have Multiple Custom content types, and based on individual type i am able to query documents. But my requirement is i want to get all types of document. I wrote query select * from hr:hrdoctype, Because my hr:hrdoctype is my parent type for all…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
1
vote
1 answer

Advanced Search in Alfresco Using CMIS

I am developing one HR web Application and it is connected to alfresco 5.0 repository, in my custom web application i need one Advanced search feature. Here want to get all Employee documents who have joined from xyz date to current date. I am…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
1
vote
1 answer

Alfresco PDF-Toolkit Javascript

i've recently installed Alfresco's PDF-Toolkit. My actual intension is to use it in a Javascript manner. This is because the value i need or want to watermark will be based on the Document's Property/Aspect. i failed to find any tutorial or guide…
TheQuestioner
  • 702
  • 10
  • 28
1
vote
1 answer

Alfresco email attachment came link not a file?

In Alfresco community edition-5.1.x email attachment using webscript script is execute successfully email received but attachment not working its show like this please refer image below, Please help any one to help make as separate attachment file…
Paul
  • 141
  • 1
  • 11
1
vote
1 answer

Search nodes using dbid in alfresco?

I have some Database ID's. I have tried to run query to find out the corresponding nodes but it's not working. Tell me how to write a correct query using Database ID?
1
vote
0 answers

Alfresco: display mltext in ftl -InvalidReferenceException - Expression res.getPropertyValueByQueryName('t.cm:title') is undefined

I have a *.get.js webscript which executes a cmis query and result is displayed in *.html.ftl. So far it works great with String/Date properties, such as cmis:name, or cmis:creationDate. But I'm not able to display title (cm:title) nor description…
streetturtle
  • 5,472
  • 2
  • 25
  • 43
1
vote
1 answer

Auto-Incrementing (Unique) ID in Alfresco

i am trying to extend alfresco's document management by running a script. So far, i have managed to create a Custom Model with a Custom Type and Property as seen below: the said Custom Type is under this Custom Model (never mind the Custom Aspect…
TheQuestioner
  • 702
  • 10
  • 28
1
vote
1 answer

How to add child associations in alfresco webscripts

I'm finding it really difficult to find useful documentation on this. Basically I have two custom types 'Concept' and 'ConceptScheme' defined in my alfresco content model. Concept scheme has an association to many child concepts. Like this: …
Andy
  • 3,228
  • 8
  • 40
  • 65
1
vote
2 answers

Alfresco webscript in edit-metadata

I've modified the behavior of edit-metadata to include some of custom aspect I've created, and everything works great. But when I was searching for the file, I saw that edit-metadata-mgr.get.js call the webscript…
Emilie
  • 49
  • 9
1
vote
1 answer

Alfresco workflow starting form options not available

I am using Alfresco community edition-5.1.x. I'm creating a custom workflow by using kickstart. But my start task does not have the assign part. How can i do assignation to group or individual ?
Paul
  • 141
  • 1
  • 11
1
vote
2 answers

how to call another webscript inside webscript in java controller if both are in same repository

how to call another webscript inside one webscript in java controller if both are in same repository. //hellowebscript public void execute(WebScriptRequest request, WebScriptResponse response) { //need to call another webscript }
user739115
  • 1,117
  • 5
  • 20
  • 41