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

Changing the default page for a custom site type in Alfresco Share

I want to change the default page for a site of a custom type that I've defined, I know that the default page in defined in the slingshot.site.configuration.xml but it changes the default page to all sites, is there any way to customize this for my…
Basil
  • 845
  • 9
  • 24
2
votes
1 answer

Overriding an OOTB component in Share

I'm trying to override one of the OOTB components in alfresco to modify some of its behavior, where should I place my files in the alfresco SDK2.0 project? I placed them is the web/ folder but it didn't override the default one. To give more…
Basil
  • 845
  • 9
  • 24
2
votes
1 answer

Get document path and ticket from action button of Alfresco

I'm writting a custom action button and I want to get in my javascript: (function() { YAHOO.Bubbling.fire("registerAction", { actionName: "onActionVerify", fn: function JSC_onActionVerify(record) { var ticket =…
PRVS
  • 1,612
  • 4
  • 38
  • 75
2
votes
1 answer

POST refused - Alfresco

I'm making a POST inside workflows, but if I have a login with admin, the post is made. But if I make a post with another login of another user, I get this error: { "status" : { "code" : 403, "name" : "Forbidden", "description" :…
PRVS
  • 1,612
  • 4
  • 38
  • 75
2
votes
2 answers

Alfresco - Java based Webscript - Sending response Asynchronously

We are creating a web script in Alfresco (Java based one). At certain interval this webscript should download files (lots of files) from a remote system and process them and version the files in Alfresco. Now, this web script will be triggered from…
sabtharishi
  • 3,141
  • 5
  • 24
  • 27
2
votes
1 answer

Alfresco webscript - 401 anuthorized

I have a problem with executing wbesciptr in alfresco. I don't know what is going on, but every time i run my webscript written in java I got 401 error code. I have simmilar webscript in javascript and it runs ok.…
2
votes
1 answer

Is it possible to extend an Alfresco 5 web-script for the post method?

I'm trying to add some extra functionality to the site creation form of Alfresco 5 by creating a web script. I'm creating a jar file containing the module extension. I have successfully modified the actual site creation for by adding a new site type…
vane
  • 2,125
  • 1
  • 21
  • 40
2
votes
1 answer

How do I properly implement a POST webscript in Alfresco 5 without causing a CSRF exception?

I've created a module extension to use with Alfresco 5 Community Edition. Everything works great, I have my .get methods taken care of and they display properly. On the page I have a button which posts back to the server to display a result (right…
vane
  • 2,125
  • 1
  • 21
  • 40
2
votes
0 answers

Obtaining Group Name in Alfresco 4

I am executing a script from a workflow to compile names from a "select group" (docWorkflow_selectgroup) cm:authorityContainer for mail.parameters.to_many. In Alfresco 5.0, I can use the following code: groupArr[0] =…
Alan
  • 506
  • 7
  • 24
2
votes
0 answers

Alfresco: Email document link to multiple people and groups

I have created a custom workflow that is to be started from a document, which is designed to run an email script to send the recipients a link to the document in share. Users can send the file to multiple people, groups, or both. The workflow…
Alan
  • 506
  • 7
  • 24
2
votes
0 answers

Redirect after file upload

I created Java Backed WebScript that allows clients to upload files via POST. I can successfully upload files, that's all working as expected. But I want to navigate away, to redirect to document-details page of the uploaded document, as soon as…
Jana
  • 67
  • 1
  • 5
2
votes
1 answer

Add custom aspect without indexing in Alfresco 4.1.6

I'm thinking how to do this: I have a java backed webscript and need to upload documents. Some of them will be full indexed (content and metadata) and others only index the metadata. I have read this way to add a custom aspect on model.xml
Jordi
  • 43
  • 8
2
votes
2 answers

Alfresco Login with google credentials

I want to login into Alfresco Dashboard with google credentials. I have seen a sample application below. https://github.com/gdepourtales/share-oauth-sso but it is not working for me. I am using Alfresco 5.0 enterprise version. I have downloaded the…
1
vote
0 answers

Alfresco content search inside current folders or it's childs

I want to customize Alfresco share in such a way, where I can search contents from specific folder or it's child folders only. If I am searching document inside XYZ folder of particular site the it should search documents within that XYZ folder or…
1
vote
1 answer

Dockerized Alfresco CORS filter

I have a dockerized Alfresco 6.2 community version, clean for now, up and running correctly in my AWS server. I can use it ang log in into share. Now I want to add my custom app, writtein in Vue.js, which is dockerized too, and make calls to the…
Fjordo
  • 768
  • 3
  • 18
  • 40
1 2
3
23 24