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

Alfresco - Start Replication Job as User (from Dashlet)

I created a Dashlet in Alfresco Share with an Overwiew of the Replication Jobs. I changed the permissions in the Replication Definition Webscripts from admin to user. As Admin i can start the Replication Job from the Dashlet. Is it possible to…
0
votes
2 answers

Access solr api using java class

Can any on tell me how to access solr api using java class. i want to access https://localhost:8443/solr4/alfresco/afts?q=DOC_TYPE:UnindexedNode api using java class.but the problem is that when i am calling with java class its giving…
0
votes
1 answer

Alfresco 5.1.x community edition created process using activiti

I am new to alfresco i have created processalfresco activiti using eclipse in the process i used service task task option in properties task type provide 3 types 1 .java class, 2.expression, 3.java delegates which one is better to use call external…
JohnPaul
  • 714
  • 5
  • 14
0
votes
0 answers

Alfresco: Cannot find many users

I have a problem with Alfresco 4.2.e. If i try: http://127.0.0.1:8080/alfresco/wcs/api/people/testuser I can find all users, no problem. But if i use: http://127.0.0.1:8080/alfresco/wcs/api/people?filter=testuser I can't find many users. For…
Tino2000
  • 3
  • 4
0
votes
0 answers

Alfresco 5.1.x community edition integration with PHP Application

I am new to alfresco i created workflow process using eclipse acitiviti kickstart in the workflow i need to pass value to external PHP application get response from PHP Application append into workflow form is this possible? and how ?
JohnPaul
  • 714
  • 5
  • 14
0
votes
1 answer

Error in loading items in Alfresco YUI datatable

I am using alfresco 5.0.d version needs to populate the custom model properties in YUI datatable and in response I am getting the JSON as below. { "agency" : [ { "agencyname": "1212", "agencycode": "1212", …
vicky
  • 19
  • 5
0
votes
4 answers

Get property of person Alfresco in JAVA

I'm using Alfresco 5.1 Community, and i'm trying to get a property value of a current person logged for example, in the user I have: "{http://www.someco.org/model/people/1.0}customProperty" How can I obtain this in java? Is a custom property, so,…
Petter S
  • 49
  • 8
0
votes
1 answer

All-in-one extension - Actions doesn't work

I'm using Alfresco 5.1 Community and SDK 2.2. I migrate my project to All-in-one extension to make a Rapid Application Development (RAD) . I have two custom document library actions, that works without the all-in-one extension, but here, doesn't…
PRVS
  • 1,612
  • 4
  • 38
  • 75
0
votes
1 answer

Args webscript Alfresco share tier

I make an Aikau page, and I open this page through a custom action document library. I give the nodeRef through the query of the Aikau page. In the javascript code of the webscript in Share, I tried args["nodeRef"] and page.url.args["nodeRef"], but…
PRVS
  • 1,612
  • 4
  • 38
  • 75
0
votes
1 answer

Issue in retrieving the custom node properties as well as deleteing the node in alfresco

I have using alfresco 5.0.d version for the past 3 weeks.I have created the node as agency and type as agencyType as well as created the properties such as name,code and createdDate and able to save the data in node properties.In search option,will…
user1707942
  • 15
  • 2
  • 9
0
votes
1 answer

Reindex a file in alfresco 5.0

I just want to re-indexed a file,I am using this api "https://localhost:8443/solr4/admin/cores?action=REINDEX&nodeid=983" but i could not re-indexed.Can any one tell how can i re-indexed a file ? I am using alfresco 5.0.
Sachin Singh
  • 99
  • 12
0
votes
1 answer

Handle file name duplication when creating files in alfresco

I have a Java-backed webscript in repo tier that creates files (with given name) in a given folder in Alfresco. To handle the file name duplication issue I wrote this code: NodeRef node = null; try { node = createNode(fullName,…
skywards
  • 79
  • 1
  • 8
0
votes
0 answers

Overriding java backed webscripts and changing the WebScriptRequest req-param

@Override public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException { SiteInfo site = siteService.getSite(req.getParameter(PARAM_SITE)); //Making sure that the site exists if(site!=null){ //Making sure…
Michael Bui
  • 190
  • 2
  • 12
0
votes
1 answer

Close session CMIS

I'm trying to access a web service that communicates with Alfresco through CMIS. I'm accessing this link: http://localhost:8080/Changes/ChangesPDF?filePath=/Documentos/examplepdf.pdf&ticket=TICKET_1dd4951f5d97c72232db40bdc8dceeb7be70aaed When I…
PRVS
  • 1,612
  • 4
  • 38
  • 75
0
votes
1 answer

why my http://127.0.0.1:8080/alfresco/service/api/people returning blank people json object?

I have a list of user in my alfresco share, which i can access by login to alfresco, but while accessing the list of people through IP given below 127.0.0.1:8080/alfresco/service/API/people I am getting the output { "people" : [ ] } what…
Varun Chawla
  • 303
  • 1
  • 6
  • 19