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

Alfresco 5.0 Community formprocessor does not support the method GET

I have added a new action to the Document Library. My java class extends ActionExecuterAbstractBase . Inside code I make an HttpsURLConnection and read response like this : URL url = new…
mr antoni
  • 595
  • 1
  • 6
  • 17
0
votes
1 answer

alfresco workflow webscript permissions

The "task-instances" webscript uses the current users permission to show those task which they are entitled to see. The "ALFRESCO_ADMINISTRATORS" are able to see all the tasks for all users. I was hoping to display all task to all users and don't…
user1398017
  • 149
  • 1
  • 1
  • 4
0
votes
1 answer

How to checkout and checkin any document outside alfresco using rest API?

I have created one Web Application using Servlets and JSP. Through that I have connected to alfresco repository. I am also able be to upload document in Alfresco and view document in external web application. Now my requirement is, I have to give…
0
votes
0 answers

Alfresco share how can i create own control of button

Alfresco community edition need to create custom own control button field in share \tomcat\webapps\share\WEB-INF\classes\alfres‌​co\site-webscripts\o‌​rg\alfresco\componen‌​ts\form\controls Anyone tell me the how we can create own…
Paul
  • 141
  • 1
  • 11
0
votes
0 answers

Is this possible make button or link inside workflow form?

Am using alfresco community edition-5.1.x, created custom workflow in workflow form i need to create button or link is this possible? by default activiti eclipse not available button or link please help me out?
Paul
  • 141
  • 1
  • 11
0
votes
1 answer

Permission Issue while getting node Ref using dbid

I am facing the issue while using NodeRef nodeRef=nodeService.getNodeRef(longNodeRef); This function to get the node Refrence using dbid. i am passing admin alf_ticket its giving this exception You do not have the appropriate permissions to…
Sachin Singh
  • 99
  • 12
0
votes
1 answer

How to increase the size of Solr apis response Result

I am using the Following apis to find out the failed indexed files and unindexed files https://localhost:8443/solr4/alfresco/afts?q=DOC_TYPE:ErrorNode https://localhost:8443/solr4/alfresco/afts?q=DOC_TYPE:UnindexedNode Its giving only 10 results…
Sachin Singh
  • 99
  • 12
0
votes
1 answer

Difference between Index error count and Index unindexed count

I am little bit confuse in solr report terminology can anyone help me.I am using https://localhost:8443/solr4/admin/cores?action=REPORT&wt=xml to generate the report in this report i am confuse in two tags one is name="Index error count" and another…
Sachin Singh
  • 99
  • 12
0
votes
1 answer

What is the alias name of Alfresco Certificate?

i want to add alfresco certificate(browser.p12) into my keystore( /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/security/cacerts) for that i am converting my browser.p12 file into browser.pem file and try to add into my keystore but its telling…
Sachin Singh
  • 99
  • 12
0
votes
1 answer

how can i update an alfresco share site?

I am trying to update a website (just change its name) I have created with the Share script in Alfresco, but I am getting a 401 response. I'm sure my login and password are correct. Code: s = requests.Session() data = {'username':"admin",…
0
votes
1 answer

Document Preview configuration with Alfresco webscript

I have a javascript based webscript using which user can upload files, create folders and retrieve uploaded files and their respective metadata. Now I want to enable a functionality for user to preview the uploaded files in Document Preview Pane of…
0
votes
1 answer

Alfresco webscript post parameters from client sidejavascript file?

I have created webscripts for creating new start workflow using javascript,I want to post the parameter value to webscripts from client side java script is this possible?
Paul
  • 141
  • 1
  • 11
0
votes
1 answer

Alfresco 5.1 document root object

my workflow.get.js file var workflow = actions.create("start-workflow"); workflow.parameters.workflowName = "activiti$TrainerEmpanelment"; workflow.parameters["bpm:assignee"] =…
0
votes
2 answers

Alfresco community edition-5.1.x how can i start workflow using webscript (java or javascript)?

Alfresco community 5.1.x, i have create custom workflow i need to trigger via webscripts (java or javascript) is possible? Please help me with steps because of am new to alfresco?
Paul
  • 141
  • 1
  • 11
0
votes
2 answers

Can we make Alfresco Java webscript thread safe?

I have a webscript for which i don't want multiple calls at same time. If i get multiple calls at same time, i want to execute the webscript one after the other. Can we do that? If yes please explain the process. Thanks in advance!