cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Web Script Portlet rivet

rivetlogic
Champ on-the-rise
Champ on-the-rise
AWPr

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
125 REPLIES 125

rivetlogic
Champ on-the-rise
Champ on-the-rise
You're welcome  Smiley Happy
I'm glad you found the solution.

Cheers,

–Alaaeldin

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

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

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi everyone,

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

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hello Everyone,

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

icarrara
Champ in-the-making
Champ in-the-making
Hi all!

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

icarrara
Champ in-the-making
Champ in-the-making
STOP …..  I found …. was a my mistake!!

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!!!   Smiley Surprised 

Ciao,
Ivano

rivetlogic
Champ on-the-rise
Champ on-the-rise
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

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

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:

Hope this helps,

–Alaaeldin

rivetlogic
Champ on-the-rise
Champ on-the-rise
When you log in to Alfresco directly with the same username you're using to login to JBoss Portal, can you access the files in other user home spaces?

–Alaaeldin

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Please try this WAR in JBoss Portal and let me know if it fixes your problem.

Thanks,

–Alaaeldin