Alfresco Web Script Portlet rivet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2009 10:57 AM
AWPr is a JSR-168 portlet that can be used to expose remote Alfresco Web scripts, including those that need user authentication. With the help of a custom Alfresco authentication component that we wrote the portlet can carry the user credentials from the portal to Alfresco, authenticate the user in Alfresco and retrieve a ticket that can be used during all subsequent interactions between the end-user, the portlet and ultimately the Alfresco Web script itself.
Motivation for AWPr
When integrating Alfresco Web scripts with JBoss Portal or Liferay Portal AWPr alleviates the need for having to deploy all of Alfresco inside the portal as is the case when using Alfresco's OOTB (out-of-the-box) Web script portlet for Alfresco/Portal integration.
AWPr is also highly configurable. Through the use of portlet preferences you can create multiple instances of AWPr and configure each one with a different Web script URL and a set of parameters with default values if needed. The instance will then RESTfully fetch the result of the Web script's render phase and carry that over to the portlet finally rendering it on the screen within the confines of the portlet window.
It is hence possible to run two instances of AWPr on a single portal page where each instance is exposing a different Web script even if those Web scripts are hosted on two different Alfresco servers regardless of their geographic location.
AWPr lives here:
http://wiki.rivetlogic.org/display/AWPr/
Feel free to ask questions about AWPr in this thread.
–Alaaeldin
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2009 11:02 AM

I'm glad you found the solution.
Cheers,
–Alaaeldin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2009 03:56 PM
The current/latest version of AWPr does not support uploading files into Alfresco through the AWPr portlet. Please add it as an improvement request to AWPr's jira.
Thanks,
–Alaaeldin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2009 11:41 AM
I've created a New Feature request in AWPr's Jira. If you want us to implement this feature please vote for it in Jira. Here's the link:
http://issues.rivetlogic.com/browse/AWPR-7
Cheers,
–Alaaeldin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2010 09:49 AM
I wanted to inform those of you who are trying to use AWPr/STAr with Alfresco 3.2 that we have released a new STAr AMP (version 1.2.0) that works with Alfresco 3.2r2. There was really no need to release a new AMP but we had to since for some reason Alfresco 3.2r2 is not picking up the STAr authentication context XML file when it's placed in the extension folder on the shared classpath, but when it's inside the Alfresco WAR file it's working fine. So we added those files to the STAr AMP.
For details and installation/configuration instructions please visit AWPr's wiki space.
Cheers,
–Alaaeldin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2010 04:26 AM
I found AWPr and it is a very useful portlet.
My environment is Liferay 5.1x and Alfresco 3.2r2, the two deployed on the same Tomcat instance, the version 5.5.26.
After installed the last STAr 1.2.0 I'm able to validate the portal user in the AWPrMySpaces webscript using the AWSPr portlet BUT only the UI is rendered, and no content is displayed.
The same problem when in the past I tried to use the original Alfresco's webscript MySpaces deployed as portlets, that never worked!! :cry:
Note that I don't use Apache Web Server since my URLs are:
Liferay: http://localhost:80
Alfresco: http://localhost:80/alfresco
Trying to use AWPrMySpaces I see the Web script in AWPr but there is an AJAX loader (hourglass) that spins forever and I don't see the documents. I don't think this is related to the cross-domain security, since Alfresco and Liferay are on the same JVM, Tomcat instance, domain name (localhost), TCP port (80).
Please, anyone can help me?
Thank you in advance!
Ivano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2010 04:52 AM
In the portlet's preferences I used "localhost" in the host name but I have to use the real domain name!!!
Now the AWSPr is running very well!!!
I noticed that is not possible to upload new contents…. please, anyone can tell me if and when this operations is implemented?
Thank you very much for the good work to Rivet's people!! Since Alfresco 2.1 and Liferay 4.3, this is the first time that I can see some Alfresco activities inside a Liferay's portlet!!!

Ciao,
Ivano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2010 12:23 PM
I noticed that is not possible to upload new contents…. please, anyone can tell me if and when this operations is implemented?
It seems there was a bug in awprmyspace.js that broke uploads from the AWPrMySpaces Web Script. It's fixed now in the new release of the AWPr example Web Scripts AMP (1.6.0). You can download it here.
Hope this helps,
–Alaaeldin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2010 11:09 AM
It looks like you're hitting a cross-domain security issue.
Your config shows that Alfresco is running on http://192.X.X.X/alfresco. To avoid the cross-domain security issue you can do one of two things:
- Proxy Alresco and JBoss Portal so they both run on http://192.X.X.X (using the same port number for both) - http://192.X.X.X/alfresco and http://192.X.X.X/portal
- Create a corss-domain Flash policy file. A quick google search yielded this how-to.
–Alaaeldin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2010 12:19 PM
–Alaaeldin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2010 03:51 PM
