Documentation

Note
As of now AWPr only works with JBoss Portal 2.6.x and higher as well as Liferay Portal 5.2.x and 5.1.x. If you would like us to release a version that works with earlier versions of JBoss Portal or Liferay Portal please let us know by filing a new feature request on our jira.

AWPr / JBoss Portal / Liferay Portal / Alfresco Compatibility Matrix

Compatibility Matrix

Installation

Downloading and Installing AWPr

Liferay Portal

  1. Download the current AWPr version here and unpack it
  2. The downloads page includes an AMP which contains example Web scripts that we are providing to showcase AWPr
  3. If you choose to use the AMP, install it into Alfresco (see Alfresco wiki for instructions). You can find more detailed instructions on how to use the bundled Web script examples here.
  4. Download the STAr AMP from here and install it by following the instructions found here.
  5. Install a Liferay Portal 5.1.1+ or 5.2.2+ bundle from http://www.liferay.com/web/guest/downloads/portal(we will assume the Tomcat bundle is used).
  6. Copy awpr.war into your Liferay auto-deploy folder (default is USER_HOME/liferay/deploy)
  7. If you're running both Liferay Portal and Alfresco containers on the same machine, make sure they are not listening on the same port (both have the port 8080 as a default, so you'll need to change one of them)
  8. See 'Configuration' below to create a portlet instance of AWPr and configure it to expose a remote Alfresco Web script

JBoss Portal

  1. Download the current AWPr version here and unpack it
  2. The bundle includes an AMP which contains example Web scripts that we are providing to showcase AWPr
  3. If you choose to use the AMP, install it into Alfresco (see Alfresco wiki for instructions). You can find more detailed instructions on how to use the bundled Web script examples here.
  4. Download the STAr AMP from here and install it by following the instructions found here.
  5. Install a JBoss Portal 2.6.x or 2.7.x bundle from http://www.jboss.org/jbossportal/download/index.html
  6. Copy awpr.war into JBOSS_HOME/server/default/deploy (JBOSS_HOME is your JBoss AS root folder)
  7. If you're running both JBoss and Alfresco containers on the same machine, make sure they are not listening on the same port (both have the port 8080 as a default, so you'll need to change one of them)
  8. See 'Configuration' below to create a portlet instance of AWPr and configure it to expose a remote Alfresco Web script

Building and Running AWPr

Liferay Portal

  1. Install a Liferay Portal 5..1.1 or 5.2.2 or higher bundle to a local folder (we'll call it LPORTAL_HOME in this document).
  2. Install a Liferay 5.2.x plugin SDK to a local folder (we'll call it PLUGIN_SDK in this document)
  3. Checkout or copy the AWPr project to PLUGIN_SDK/portlets
  4. Run ant
  5. Start Liferay Portal and access http://localhost:8080
  6. Add an AWPr instance on a portal page
  7. Edit the portlet instance's preferences and save them
  8. You should see the Web script in the portlet

JBoss Portal

  1. Install a JBoss Portal 2.7.x bundle to a local folder (we'll call it JBOSS_HOME in this document).
  2. Create a file called deploy.<user>.properties in the AWPr source root folder, where <user> stands for the OS user name you are currently logged in as.
  3. Add the following line to the properties file:
        target_folder=JBOSS_HOME/server/default/deploy
    and replace JBOSS_HOME appropriately (look at step 1).
  4. In the AWPr project root run deploy.sh
  5. Start JBoss by running JBOSS_HOME/bin/run.sh
  6. Access http://localhost:8080/portal
  7. Create a portlet instance for the AWPr portlet
  8. Configure the preferences as shown in the Configuration section
  9. Add the portlet instance to a page

Alfresco AMP Installation

Download the AMPs here and inject them into Alfresco following the instructions here.

Configuration

When you create a portlet instance you will need to configure its preferences to point to an Alfresco Web script. For example, if you have a "What's New" Web script with the following definition:

<webscript>
    <shortname>What's New</shortname>
    <description>Documents modified during the last 14 days</description>
    <url format="html" template="/whatsnew"/>
    <authentication>user</authentication>
    <transaction>required</transaction>
</webscript>

and alfresco is running on http://localhost:8081/alfresco then the preferences for the portlet instance would be:

alfrescoHost = http://localhost:8081
alfrescoContextPath= /alfresco
httpMethod = GET
webscriptParams =
webscriptUrl = /whatsnew

STAr AMP

Click here for instructions on how to install and configure STAr (Secure Token Authentication rivet).

Example Web scripts

To read more about how to use the bundled example Web scripts click here.

Known Issues

Check here for known issues.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.